" Startup file for vim editor (save this as .vimrc in your home directory) " written by Guido Socher " version 4.0 "set expandtab "set shiftwidth=4 "set smartindent set ignorecase set ruler set showmatch set visualbell set timeoutlen=400 set nowrapscan "incremental search is really cool! You terminate it with return set incsearch syntax on " enable vim: set ....: syntax set modeline set modelines=3 set nobackup "set shell=/bin/sh " show non printable char when running: :set list "set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< "------------------------- "M-x can also be used as ESC map! " some keyboards have the F1 key where the Esc key is expected: map imap " when jumping back to a label I always confuse ` and ': map ' ` "iabbrev _C_ /* vim: set sw=4 ts=4 si et: */ "iabbrev _CC_ /* vim: set sw=8 ts=8 si noet: */ "abbr _P_ # vim: set sw=4 ts=4 si et: "disable mouse support: set mouse= set ttymouse= "disable mouse wheel scroll support: set t_ti= t_te= "disable system clipboard set clipboard= " Have Vim jump to the last position when reopening a file, creates .viminfo file in your home-dir if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal! g'\"" | endif endif " end of .vimrc file