1 " Automaticly source some files after writing
2 autocmd! bufwritepost .vimrc source %
6 filetype indent plugin on
12 set backspace=eol,start,indent
13 set whichwrap+=<,>,h,l
26 " List characters to mark trailing whitespace etc
27 set listchars=nbsp:¬,tab:▸\ ,eol:↩,extends:»,precedes:«,trail:•
30 " Move through long lines as they were short multiple lines
34 " Custom split and tabswitching using tab
35 map <TAB>l <C-PageDown>
37 map <TAB><TAB>l <C-W>l
38 map <TAB><TAB>h <C-W>h
42 " Center the search results
46 " Allow yanking to the clipboards in visual mode
47 vnoremap sy :w ! xclip<enter><enter>
48 vnoremap cy :w ! xclip -sel clip<enter><enter>
49 " Allow pasting from the clipboards in normal mode
50 nnoremap sp :r ! xclip -o<enter>
51 nnoremap cp :r ! xclip -sel clip -o<enter>
60 " Unbind arrow keys, who has them anyways on the keyboard...
61 for prefix in ['i', 'n', 'v']
62 for key in ['<UP>', '<DOWN>', '<LEFT>', '<RIGHT>']
63 exe prefix . "noremap " . key . " <Nop>"
68 let g:GPGPreferArmor=1
72 set statusline+=%#warningmsg#
73 set statusline+=%{SyntasticStatuslineFlag()}
76 let g:syntastic_always_populate_loc_list = 1
77 let g:syntastic_auto_loc_list = 1
78 let g:syntastic_check_on_open = 0
79 let g:syntastic_check_on_wq = 0
82 let g:vimtex_compiler_enabled = 0
84 " Background transparency
85 hi Normal guibg=NONE ctermbg=NONE