stf92 |
06-01-2018 07:42 PM |
I say vi's default behavior in what respects to the backspace key is weird. The name of the key implies its function: go back one space. But vi does not seem to agree. If you edit a new file (with vi), type some letters (except Enter), save and quit. Then reedit it and press A (that will send the cursor to the end of the line) and you now press the backspace key, you'll see nothing happens! It is this behavior that keeps people away from vi and throus them in the arms of vim.
I have read many posts regarding this strange default behavior of the backspace key but none of them has ever been of any use to me. I think it would be intelligent on the part of the developers (if vi is still being maintained) to make the default behavior of the backspace key that which it has in vim (which on the other hand is logical) and, if someone wants to make it do those strange things, then write the appropriate line in its config file which, by the way, I don't know which it is (I mean, has vi a cofiguration file like .vimrc in vim?).
One thing is still odder. I have vi installed by default in Debian 9. Then I installed vim and wrote this ~/.bashrc:
Code:
semoi@debian:~$ cat .vimrc
set backspace=indent,eol,start
fixdel
semoi@debian:~$
Now I ran vi and found the backspace key behaved as in vim (normal behavior). Excelent I said, and uninstalled vim. But then vi reverted to its old behavior. Does this mean when I installed vim vi became a link to vim?
|