[SOLVED] How To Transfer VIM To An External SD Card?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey guys and gals I have a slight problem I need to solve. I'm trying to export the Vim text editor program to an external SD card, from a live CD environment (if that matters any). Currently I have Vim installed in RAM, but I would preferably like to run Vim straight from the SD card (if that's possible). However I am willing keep exporting the Vim program files from SD to the live CD if thats what it takes, as I need to do my editing in a live environment.. The problem is im not sure what I need to copy over.. Do I use locate and copy ALL those files, or would a simple whereis be sufficent?
Last edited by linux4evr5581; 12-29-2016 at 12:40 AM.
Do I just save the files from dpkg --listfiles vim, then do dpkg -i vim to install the package so the configuartion file gets setup? (note i dont mess with the config file ever manually)
Last edited by linux4evr5581; 12-29-2016 at 02:32 AM.
UPDATE: I got it working and i'm somewhat "satisfied" but theres no color which is not a huge deal, but the annoying thing is everytime time I type vim myfile it says:
Error detected while processing /usr/share/vim/vimrc
line 20:
E484: Can't open file /usr/share/vim/vim74/syntax/syntax.vim
Press ENTER or type command to continue
But as far as I can tell it works, all I did was throw everything from the output of whereis vim into /usr/bin.. It's just I have to always press enter everytime I vim a file cause of that error.. If anyone knows what I can do to get rid of the error that'll be much appreciated. (also there's no vimdiff or online help)
Last edited by linux4evr5581; 12-29-2016 at 10:16 AM.
Error detected while processing /usr/share/vim/vimrc
line 20:
E484: Can't open file /usr/share/vim/vim74/syntax/syntax.vim
Press ENTER or type command to continue
Go look in the VIM config using an editor that shows line numbers. VIM might work.
Goto line 20 and see what it is saying for vim to do, and I'd look for a file called syntax.vim from the system you pulled it from then put it on that External SD Card whereever it needs to be for VIM to find it.
VIM is looking for it in that path statment. The config file line 20 maybe telling it to look there, so you might just have to get that file in question put it on the SD Card then edit that config line to tell it where it is at to eliminate that warning/error.
Thanks BW-userx I think I know why now.. Line 20 is where it enables syntax highlighting, but im missing the files /syntax/syntax.vim... So I think I just have to redownload vim, get those files, and then transfer them over to /usr/share/vim/vim74/.. That should give me colors and solve the error.. Thanks for helping me troubleshoot!
Last edited by linux4evr5581; 12-30-2016 at 10:14 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.