update bashrc
[dotfiles.git] / .vimrc
1 execute pathogen#infect()
2 syntax enable
3 filetype indent plugin on
4
5 autocmd! bufwritepost .vimrc source %
6
7 set encoding=utf-8
8 set history=1000
9 set number
10 set ruler
11 set backspace=eol,start,indent
12 set whichwrap+=<,>,h,l
13 set incsearch
14 set noerrorbells
15 set novisualbell
16 set nobackup
17 set nowb
18 set noswapfile
19 set shiftwidth=2
20 set tabstop=2
21 set cc=80
22 set textwidth=79
23
24 map <TAB>l <C-W>l
25 map <TAB>h <C-W>h
26 map <TAB>j <C-W>j
27 map <TAB>k <C-W>k
28
29 nnoremap n nzzzv
30 nnoremap N Nzzzv
31
32 for prefix in ['i', 'n', 'v']
33 for key in ['<UP', '<DOWN>', '<LEFT>', '<RIGHT>']
34 exe prefix . "noremap " . key . " <Nop>"
35 endfor
36 endfor
37
38 let g:GPGPreferArmor=1
39 let g:GPGPreferSign=1