" ### 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		<f2>	<esc>:confirm w<cr>i
" should we map c-s to save too? (Comments can't be after map lines)
noremap!	<f2>	<esc>:confirm w<cr>i
noremap	<f10>	<esc>:confirm q<cr>
" should we map c-q to quit?
noremap!	<f10>	<esc>:confirm q<cr>

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 p<cr>r<cr>... problem
" Keys were found by presssing c-k + key in vim
noremap <esc>Op	0
noremap <esc>Oq	1
noremap <esc>Or	2
noremap	<esc>Os	3
noremap	<esc>Ot	4
noremap	<esc>Ou	5
noremap	<esc>Ov	6
noremap	<esc>Ow	7
noremap	<esc>Ox	8
noremap	<esc>Oy 9
noremap	<esc>Ow	7
noremap <esc>Oo	/
noremap	<esc>Oj	*
noremap	<esc>Om	-
noremap	<esc>Ok	+
noremap	<esc>OM	<cr>
noremap!	<esc>Op	0
noremap!	<esc>Oq	1
noremap!	<esc>Or	2
noremap!	<esc>Os	3
noremap!	<esc>Ot	4
noremap!	<esc>Ou	5
noremap!	<esc>Ov	6
noremap!	<esc>Ow	7
noremap!	<esc>Ox	8
noremap!	<esc>Oy 9
noremap!	<esc>Ow	7
noremap!	<esc>Oo	/
noremap!	<esc>Oj	*
noremap!	<esc>Om	-
noremap!	<esc>Ok	+
noremap!	<esc>OM	<cr>
" End of gnome-terminal numpad fix

" ### Extras ### Not needed by a casual user
noremap		<c-d>	<esc>:wq<cr>
noremap!	<c-d>   <esc>:wq<cr>

" To see where your distribution actually has system 
" wide configuration, try: vim -V3
"(c)2002 Tero Karvinen tero . karvinen @ iki . fi
