SlackwareThis Forum is for the discussion of Slackware Linux.
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.
ok, when i type say "vi /home/*user*/newdoc.txt"
or when i edit an already made file
it will come up with a blank or already full VI window, right?
so then I pres "i" for insert mode I am able to insert text as normal but anyways, if I press "backspace" the cursor will moove backwards but wont delete anything, if i press "delete" immeadetly after pressing "backspace", it will change the case of the leter the cursor is over, then if i "delete" it again it might moove foward and change the case of the next letter, or it might just do nothing and the comp will beep. if i press "delete" without having recently presed "backspace" nothing will hapen and the computer will beep. (this problem is hard to describe cause it changes alot, but is always on the basic line of what i have said here)
i have the same problem is gvim, and in xedit the delete key works the same as the backspace key, it just removes the character to the left of the cursor.
when im typing in mozilla, or GAIM, i dont have these problems and delete and backspace work as normal, does anyone know what is hapening or how to fix it?
By default in Slackware 9.1, vi actually links to elvis, so when you run vi you are actually running elvis not vi. I don't recall if gvim is the same way or not, but it sounds like it from what you're describing. Anyway, have a look in the /usr/bin directory. You'll see the link like so:
Code:
root@slack:~# ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 3 Oct 26 03:13 /usr/bin/vi -> elvis*
Redo the link so that it points to vim instead of elvis. You'll also need setup .vimrc files for your users if you want color and etc. Maybe stick a default one in /etc/skel/ as well, so they get created when you create new users.
you were right about the link to elvis, so i changed that, now my delete key works as it should, but the backsapce key still just mooves the cursor backwards without deleting stuf.
plus if i press "i" and then try to navigate around the document using the aarows on the keyboard it will do the fallowing; if i press "up" it will make a new line above the line I'm currently in and type out capital "A" if i press doun it will make a new line and type out a capital "B", right: same thing and "C", left is "D"
Is the --INSERT-- coming up at the bottom of the screen when type "i"? Are you sure you made the new link correctly? It should look like this:
Code:
root@slack:~$ ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 3 Oct 26 03:13 /usr/bin/vi -> vim*
Or like this, if you are in the /usr/bin directory:
Code:
root@slack:/usr/bin$ ls -l vi
lrwxrwxrwx 1 root root 3 Oct 26 03:13 vi -> vim*
If not, then you can make it by removing the old link first, then remaking it. Like so:
Code:
root@slack:~# cd /usr/bin
root@slack:/usr/bin# mv vi vi.old
root@slack:/usr/bin# ln -s vim vi
Then make sure it's there:
root@slack:/usr/bin# ls -l vi
lrwxrwxrwx 1 root root 3 Nov 9 14:57 vi -> vim*
I did a mv "move" instead of a rm "remove" above, simply out of habit. Once you've confirmed everything is as it should be, then you can go back and "rm vi.old". Test it by simply typing "vi", no quotes. You should see the vim screen come up that looks like so:
Code:
~ VIM - Vi IMproved
~
~ version 6.2.98
~ by Bram Moolenaar et al.
~ Vim is open source and freely distributable
~
~ Help poor children in Uganda!
~ type :help iccf<Enter> for information
~
~ type :q<Enter> to exit
~ type :help<Enter> or <F1> for on-line help
~ type :help version6<Enter> for version info
Make clear that there are modes in vi/vim
switch between mode is toggled by "ESC"
after vim is started u r on command mode, to insert press i then u r on insert mode
the key binding on insert mode r diffent than in command mode.
the best to begin with vim is learnign by doing like u do now, but
it helps to read some doc, see /usr/share/vim/vim62/{doc,tutor}
It used to be some tutorial for "vi", try a googling ..
It is kinda harder to begin with vi, but it allows fast navigation
through the text once one get confortable with vi/vim. Vi is the
editor with high availability on unix platforms. So once u got to
edit something with the "slack rescue disk", vi is the only editor.
Vim is alot advanced than other vi-clones.
If u still get used to notepad scene, try gvim, it is abit easier bcoz
u can do something with mouse (copy,pasta..).
Are you running VI in an Xterm (aterm,eterm,rxvt,...) or do you have this problem on the command line? It could be that your terminal settings aren't correct.
I had the same problem. I have always used RedHat, and the VIM in slack is different, or more likely the VIM in RedHat is not VIM. Use this as your .vimrc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.