LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-29-2016, 12:29 AM   #1
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
Question 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-29-2016 at 12:40 AM.
 
Old 12-29-2016, 01:17 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,480

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
You do:
Code:
$ ldd /usr/bin/vim
to find the files you need.
 
Old 12-29-2016, 01:29 AM   #3
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Original Poster
Rep: Reputation: Disabled
Thanks for sharing that command, I totally forgot I can also do that with dpkg or apt...
 
Old 12-29-2016, 02:15 AM   #4
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Original Poster
Rep: Reputation: Disabled
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 02:32 AM.
 
Old 12-29-2016, 09:55 AM   #5
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-30-2016, 09:09 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro / Parrot
Posts: 7,175

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
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 09:15 AM.
 
1 members found this post helpful.
Old 12-30-2016, 10:07 AM   #7
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate transfer speed from PC to external HDD linustalman Linux - Software 3 09-04-2013 10:57 AM
need to transfer files from CentOS to WD external HD normantomalin Linux - Newbie 2 10-31-2008 09:16 PM
LXer: Vim tips: Working with external commands LXer Syndicated Linux News 0 10-25-2006 04:21 PM
vim: Piping through multiple external commands tragos Linux - Software 2 03-19-2005 02:09 PM
How to get the USB 2.0 transfer to/from the external hdd? baronlynx Linux - Newbie 4 01-19-2004 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration