syntax enable filetype indent plugin on autocmd! bufwritepost .vimrc source % set encoding=utf-8 set history=1000 set number set ruler set backspace=eol,start,indent set whichwrap+=<,>,h,l set incsearch set noerrorbells set novisualbell set nobackup set nowb set noswapfile set shiftwidth=2 set tabstop=2 set cc=80 set textwidth=79 map l l map h h map j j map k k nnoremap n nzzzv nnoremap N Nzzzv for prefix in ['i', 'n', 'v'] for key in ['', '', ''] exe prefix . "noremap " . key . " " endfor endfor