View Full Version : Could Someone Help?! (VIM)
uNtouched
02-05-2006, 11:49 PM
I can't, for the life of me, figure out how I'm supposed to install and use this...I'm better than the rookie in linux cli...but I'm not a super linux user. Maybe a dummy how to?
aflegg
02-06-2006, 05:49 AM
To install VIM:
Open http://www.bleb.org/software/770/#vim on the 770's Opera.
Click on the download link.
In the resulting dialogue box, click Open
The Application Installer will start and ask you to confirm the install. Click OK.
Repeat the process for the XTerm package from http://770.fs-security.com/xterm/
To start vim:
Open X Terminal Emulator from the Extras menu.
Type:
LD_LIBRARY_PATH=/var/lib/install/usr/lib /var/lib/install/usr/bin/vim
There are various enhancements and suggestions to simplify the command, and improve the experience (including setting up a .vimrc and .profile file).
If you could explain what's confusing about installing vim compared with other packages, which I don't make clear on the vim (http://www.bleb.org/software/770/#vim) page, that'd be helpful.
HTH,
Andrew
llywrch
02-06-2006, 01:59 PM
The chief problem I have with vim is that I keep trying to invoke it as "vi". (I admit to being a little stuck in my ways.)
However, I admit the best solution is to create a symbolic link between vi & vim. Whether that should be done as part of the install process depends on whether one wants to make vi accessible to the less experienced. :)
Geoff
uNtouched
02-06-2006, 02:39 PM
I'm sorry, you're right I should have given a bit more detail as to what I found difficult. I was figuring that you can just type in "vim blah blah blah" and edit blah. I should have done my job as well and done a little research before hand.
A different question on vim-tiny:
Is it possible to reflow text with vim-tiny? My usual method of gqap seems to have no effect.
Alternatively, what would be involved in installing a more complete version of vim?
aflegg
02-23-2006, 05:33 AM
"gq<down>" is what I usually use and that works ok. As for vim-big, that's probably as easy to repackage as vim-tiny was.
uNtouched
02-26-2006, 02:37 PM
I got it. What I did is this.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/install/usr/lib
and
PATH=$PATH:/var/lib/install/usr/sbin
for both user and root...now I can run it fine by typing vim <filename>
msaunby
02-26-2006, 03:36 PM
The chief problem I have with vim is that I keep trying to invoke it as "vi". (I admit to being a little stuck in my ways.)
However, I admit the best solution is to create a symbolic link between vi & vim. Whether that should be done as part of the install process depends on whether one wants to make vi accessible to the less experienced. :)
Geoff
It works as vi for me, but then I've set vi as an alias. You could do this in your .profile, but you'll have to reboot for it to take effect. Or you could create a .shrc as I suggest in the wiki page on using xterm.
timbu
02-26-2006, 05:27 PM
I have a question about key mappings in vim. While in insert mode, the return key does not insert a line feed to put the cursor in the next line, instead there is an "M" appearing on the preceding line.
Thanks.
To install VIM:
Open http://www.bleb.org/software/770/#vim on the 770's Opera.
Click on the download link.
In the resulting dialogue box, click Open
The Application Installer will start and ask you to confirm the install. Click OK.
Repeat the process for the XTerm package from http://770.fs-security.com/xterm/
To start vim:
Open X Terminal Emulator from the Extras menu.
Type:
LD_LIBRARY_PATH=/var/lib/install/usr/lib /var/lib/install/usr/bin/vim
There are various enhancements and suggestions to simplify the command, and improve the experience (including setting up a .vimrc and .profile file).
If you could explain what's confusing about installing vim compared with other packages, which I don't make clear on the vim (http://www.bleb.org/software/770/#vim) page, that'd be helpful.
HTH,
Andrew
aflegg
02-27-2006, 05:44 AM
From http://bleb.org/software/770/#vim
To ensure the cursor keys work correctly when using vim, put the following in /home/user/.vimrc:
set nocompatible
HTH,
Andrew
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.