X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.vimrc;h=5b1c832328074c253829e08817c1293bfc23c163;hb=cc4abfb3797934ea3fa1d7e93ab85a93fbf259b1;hp=7aab32866c0ef6554399e96cc10f0768421caf0a;hpb=bd14b9393ad27ac16aaa010a6561a5894a1fcfbd;p=dotfiles.git diff --git a/.vimrc b/.vimrc index 7aab328..5b1c832 100644 --- a/.vimrc +++ b/.vimrc @@ -1,7 +1,10 @@ -filetype indent plugin on +execute pathogen#infect() syntax enable -color torte -hi Normal ctermbg=NONE +filetype indent plugin on + +autocmd! bufwritepost .vimrc source % + +set encoding=utf-8 set history=1000 set number set ruler @@ -13,24 +16,24 @@ set novisualbell set nobackup set nowb set noswapfile -set shiftwidth=4 -set tabstop=4 -set foldmethod=indent -set foldnestmax=2 -set nofoldenable +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 -" Unmap the arrow keys!!! for prefix in ['i', 'n', 'v'] - for key in ['', '', '', ''] + for key in ['', '', ''] exe prefix . "noremap " . key . " " endfor endfor -" Macro for compiling and running a tex file -au BufNewFile,BufRead *.tex let @a = ':w :!latex % && latex % && if [ -f %:r.bib ]; then bibtex %:r; fi; latex % && pdflatex % ' - -" Load all the skeletons for newfiles -for i in split(globpath('~/.vim/skel/', './*'), '\n') - let extension = split(i, "/")[-1] - exe "au BufNewFile *." . extension . " 0r ~/.vim/skel/" . extension -endfor +let g:GPGPreferArmor=1 +let g:GPGPreferSign=1