Is there any way to customize vi editor keys in solaris unix?

link|improve this question
Why would you want to do that? If you find it too hard/alien to use, try a different editor. Changing the defaults will be a pain whenever you work on a vanilla solaris! – lexu Apr 1 '10 at 7:45
feedback

migrated from stackoverflow.com Apr 1 '10 at 10:44

This question came from our site for professional and enthusiast programmers.

2 Answers

Solaris uses vi; customization setting go in your ~/.exrc file and are read on startup.

You can map editor keys with the map command (:map <key> <command>). You can remap keys that are already used for other things, so be careful not to disable something you'll need. Note that there are frequently other layers (e.g., X) that can map keys, so look out for conflict there as well.

link|improve this answer
feedback

You can remap keys using http://vimdoc.sourceforge.net/htmldoc/map.html

place these commands in you .vimrc or /etc/vim/vimrc to take effect everytime you use vim. (I hope this applies to solaris as well)

link|improve this answer
1  
it applies to vim, but not necessarily vi. vim is often but not always used as a replacement for vi. – quack quixote May 13 '10 at 14:23
feedback

Your Answer

 
or
required, but never shown