1 filetype indent plugin on
10 set backspace=eol,start,indent
11 set whichwrap+=<,>,h,l
26 set listchars=tab:►\ ,eol:¬,trail:˽,precedes:˻,extends:˼
28 " Source the vimrc while editing
29 autocmd! bufwritepost .vimrc source %
37 " Search results stay in middle of screen
41 " Unmap the arrow keys!!!
42 for prefix in ['i', 'n', 'v']
43 for key in ['<Up>', '<Down>', '<Left>', '<Right>']
44 exe prefix . "noremap " . key . " <Nop>"
48 " Load all the skeletons for newfiles
49 for i in split(globpath('~/.vim/skel/', './*'), '\n')
50 let extension = split(i, "/")[-1]
51 exe "au BufNewFile *." . extension . " 0r ~/.vim/skel/" . extension