" ### Vintuitive 0.5 ### Easy & Intuitive " Copy this to $HOME/.vimrc to make vim very easy to use " For system wide setup, copy this to /etc/vimrc " on redhat, ln -s /etc/vimrc /usr/share/vim/vim61/marcros/vimrc " Vim is propably installed on your system, " but you can also download it from www.vim.org " (c) 2002 Tero Karvinen tero . karvinen @ iki . fi " http://iki.fi/karvinen/vintuitive " License: GPL - GNU General Public Licence startinsert " Start in INSERT mode without disabling NORMAL command mode " Right arrow at the end of line goes to beginning of next line (arrows, backspace) set whichwrap=<,>,[,],b,s set noshowmode "defaults to yes in redhat. showmode hides command response in save set confirm " All commands ask ie ":q" becomes ":confirm q" " Save and quit (mc-like). Same for normal beep mode and insert noremap :confirm wi " should we map c-s to save too? (Comments can't be after map lines) noremap! :confirm wi noremap :confirm q " should we map c-q to quit? noremap! :confirm q set laststatus=2 " Always show statusline set statusline=[F2-Save]\ [F10-Quit]%=%F\ %3l\,%2c " Search - some params like web search engines set ignorecase " Ignore case in search, see smartcase set smartcase " Override 'ignorecase' when pattern has upper case characters set incsearch " Search while you are typing set showcmd " Show partial commands, eg d when you are going to delete something " Needed only in normal mode. syntax on " Default on in Redhat " TODO: "COMMAND MODE, press i to continue writing" " TODO: copy-paste - F3 or shift-arrow mark, ctrl-x, ctrl-c, ctrl-v cut copy paste " TODO: undo ctrl-z " TODO: search " WISHLIST: replace " WISHLIST: ctrl-x no selection cut line " WISHLIST: ctrl-K and ctrl-U like in pico " WISHLIST: F1 help F3 select " Fix for gnome-terminal "numpad 0123456789/*-+ not give pr... problem " Keys were found by presssing c-k + key in vim noremap Op 0 noremap Oq 1 noremap Or 2 noremap Os 3 noremap Ot 4 noremap Ou 5 noremap Ov 6 noremap Ow 7 noremap Ox 8 noremap Oy 9 noremap Ow 7 noremap Oo / noremap Oj * noremap Om - noremap Ok + noremap OM noremap! Op 0 noremap! Oq 1 noremap! Or 2 noremap! Os 3 noremap! Ot 4 noremap! Ou 5 noremap! Ov 6 noremap! Ow 7 noremap! Ox 8 noremap! Oy 9 noremap! Ow 7 noremap! Oo / noremap! Oj * noremap! Om - noremap! Ok + noremap! OM " End of gnome-terminal numpad fix " ### Extras ### Not needed by a casual user noremap :wq noremap! :wq " To see where your distribution actually has system " wide configuration, try: vim -V3 "(c)2002 Tero Karvinen tero . karvinen @ iki . fi