Tip #175: how to make VIM as ur default editor even without root ac.
tip karma |
Rating -1/17, Viewed by 772
|
created: |
|
December 6, 2001 10:53 |
|
complexity: |
|
basic |
author: |
|
bhaskar |
|
as of Vim: |
|
5.7 |
hi,
if u have installed vim in your home directory somewhere
and u don't have a root account, and you want to
make VIM the default editor for anything u do.
i.e if ur using SQLplus and want to edit a sql command.
normally typing edit brings up the vi editor and not vim editor.
to solve this problem.
define these three variables in your .profile
VIM=<base directory where vim executable is placed>
VIMRUNTIME=<base direcoty where vim runtimes are kept>
EDITOR=$VIM/vim
note if u have installed vim with another name, say vim.exe then
change EDITOR=$VIM/vim to EDITOR=$VIM/vim.exe
source the .profile and viola. next time u start an editor from any
program u have the vim editor.
Njoy.
<<Footnotes |
Autocheckout from perforce >>
Additional Notes
|