Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-28-2016, 11:29 PM
|
#1
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
How To Transfer VIM To An External SD Card?
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-28-2016 at 11:40 PM.
|
|
|
12-29-2016, 12:17 AM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
You do: to find the files you need.
|
|
|
12-29-2016, 12:29 AM
|
#3
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Original Poster
Rep:
|
Thanks for sharing that command, I totally forgot I can also do that with dpkg or apt...
|
|
|
12-29-2016, 01:15 AM
|
#4
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Original Poster
Rep:
|
Heres the output of dpkg --listfiles vim (this lists the files that were installed with the package)
/.
/usr
/usr/share
/usr/share/doc
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/vim
/usr/share/bug
/usr/share/bug/vim
/usr/share/bug/vim/script
/usr/share/bug/vim/presubj
/usr/bin
/usr/bin/vim.basic
/usr/share/doc/vim
And the output of apt-cache depends vim (this lists what vim depends on to run)
vim
Depends: vim-common
Depends: vim-runtime
Depends: libacl1
Depends: libc6
Depends: libgpm2
Depends: libpython3.5
Depends: libselinux1
Depends: libtinfo5
Suggests: <ctags>
exuberant-ctags:i386
exuberant-ctags
Suggests: vim-doc
Suggests: vim-scripts
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 01:32 AM.
|
|
|
12-29-2016, 08:55 AM
|
#5
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Original Poster
Rep:
|
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 09:16 AM.
|
|
|
12-30-2016, 08:09 AM
|
#6
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
COLORS with VIM
https://www.linux.com/learn/weekend-...s-color-scheme
and
https://www.cyberciti.biz/faq/turn-o...-in-vi-or-vim/
with this
Quote:
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.
Last edited by BW-userx; 12-30-2016 at 08:15 AM.
|
|
1 members found this post helpful.
|
12-30-2016, 09:07 AM
|
#7
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Original Poster
Rep:
|
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 09:14 AM.
|
|
|
All times are GMT -5. The time now is 08:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|