This default was chosen for those people who want to use Vim just like Vi, and don't even (want to) know about the 'compatible' option. When a vimrc or gvimrc file is found while Vim is starting up, this option is switched off, and all options that have not been modified will be set to the Vim defaults. So rather than mucking around with termcap settings create an empty.Įffectively, this means that when a vimrc or gvimrc file exists, Vim will use the Vim defaults, otherwise it will use the Vi defaults. vimrc file first and see if the issue is resolved. Set t_kr= (now type Ctrl-V and press cursor right) Set t_kd= (now type Ctrl-V and press cursor down) Set t_ku= (now type Ctrl-V and press cursor up) Or, copy the default vimrc_example.vim to ~/.vimrc If not, try the termcap suggestions. Set t_kl= (now type Ctrl-V and press cursor left)īut the ^[ is actually a single escape character. That certainly works for me here (FreeBSD 6.1, ssh in from Mac OS). It also appears that it must be started as "vim" rather than "vi" in order to read the. I've added an alias to my bashrc scripts to take care of this. If you are using vi instead of vim, you need to update the above commands in. Since alias makes you to work in vim, even you type vi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |