summaryrefslogtreecommitdiff
path: root/.vim/vimrc
blob: cbadca794cfdf06ee775dbb71f5235768f155f17 (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
set nocompatible
"Disable bell
set vb
set t_vb=

"Search in all of the project tree
set path+=**
set wildmenu

set ttimeoutlen=10
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#whitespace#enabled = 1
let g:airline_powerline_fonts = 1

"??let mapleader = ","
execute pathogen#infect()
syntax on
filetype plugin indent on

"Autostart NERDtree
"autocmd vimenter * NERDTree

"Switch windows with keys
nmap <silent> <C-k> :wincmd k<CR>
nmap <silent> <C-j> :wincmd j<CR>
nmap <silent> <C-h> :wincmd h<CR>
nmap <silent> <C-l> :wincmd l<CR>

nmap <F5> :NERDTreeToggle<CR>
nmap <F6> :TlistToggle<CR>

"Tab mgmt
nmap <F1> :tabclose<CR>
nmap <F2> :tabprevious<CR>
nmap <F3> :tabnext<CR>
nmap <F4> :tabnew<CR>

"^] Jump to tag, ^t jump back
command! MakeTags !ctags -R .

"Line number Highlight
set nu
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE