summaryrefslogtreecommitdiff
path: root/vimrc
blob: f156446763f3c9afb594923373dce3ce994fa81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
set number 
set cursorline
set autoindent
set autochdir
set smartcase
set ignorecase 
set nowrap 
set tabpagemax=15
set tabstop=2
set shiftwidth=2
set expandtab
set scrolloff=2
set showmatch
set showmode
set title
set wildmenu
set wildignore=*.o,*.swp,*~,
set matchtime=2
set mouse=a

map <ScrollWheelUp> <C-Y>
map <ScrollWheelDown> <C-E>
map m :cnext <CR>
map M :cprev <CR>

map <tab> :tabn <CR>
map <S-tab> :tabp <CR>

map <C-w> :w <CR>
map <C-x> :wq 

syntax enable

noremap ; l
noremap l k
noremap k j
noremap j h

set background=dark
colorscheme solarized

filetype plugin on
set ofu=syntaxcomplete#Complete

map <S-y> :w !diff % - <CR>