1 " Automaticly source some files after writing
2 autocmd! bufwritepost .vimrc source %
6 filetype indent plugin on
14 set backspace=eol,start,indent
15 set whichwrap+=<,>,h,l
32 set listchars=nbsp:¬,tab:▸\ ,eol:↩,extends:»,precedes:«,trail:•
35 " Move through long lines as they were short multiple lines
39 " Custom split and tabswitching using tab
40 map <TAB>l <C-PageDown>
42 map <TAB><TAB>l <C-W>l
43 map <TAB><TAB>h <C-W>h
47 " Center the search results
51 " Allow yanking to the clipboards in visual mode
52 vnoremap sy :w ! xclip<enter><enter>
53 vnoremap cy :w ! xclip -sel clip<enter><enter>
54 " Allow pasting from the clipboards in normal mode
55 nnoremap sp :r ! xclip -o<enter>
56 nnoremap cp :r ! xclip -sel clip -o<enter>
65 " Unbind arrow keys, who has them anyway on the keyboard...
66 for prefix in ['i', 'n', 'v']
67 for key in ['<UP>', '<DOWN>', '<LEFT>', '<RIGHT>']
68 exe prefix . "noremap " . key . " <Nop>"
73 let g:GPGPreferArmor=1
77 set statusline+=%#warningmsg#
78 set statusline+=%{SyntasticStatuslineFlag()}
81 let g:syntastic_always_populate_loc_list = 1
82 let g:syntastic_auto_loc_list = 1
83 let g:syntastic_check_on_open = 0
84 let g:syntastic_check_on_wq = 0
87 let g:vimtex_compiler_enabled = 0