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