-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
58 lines (44 loc) · 1.26 KB
/
Copy pathvimrc
File metadata and controls
58 lines (44 loc) · 1.26 KB
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
48
49
50
51
52
53
54
55
56
57
58
" Enable plugin management
execute pathogen#infect()
execute pathogen#helptags()
" Enable 256 colors
set t_Co=256
" Enable syntax highlighting
syntax on
" Detect filetype's and use python.vim plugin
filetype plugin indent on
" Switch to dark solarized theme
set background=dark
colorscheme solarized
" Font in gvim
if has('gui_running')
set guifont=Inconsolata\ Bold\ 12
endif
" Configure airline
set laststatus=2
" Enable incremental search
set incsearch
" Map F5 to gundo
nnoremap <F5> :GundoToggle<CR>
" Some map's for numbers
set number
nnoremap <silent> <F2> :NumbersToggle<CR>
inoremap <C-c> <Esc><Esc>
" Enable modeline
set modeline
" Nerdtree (filebrowser)
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" use ctrl-n to toggle nerdtree
map <C-n> :NERDTreeToggle<CR>
" Close if only nerdtree is open
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" Windows navigation
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
" YouCompleteMe
let g:ycm_autoclose_preview_window_after_completion = 1
" Default to gpg2
let g:GPGExecutable = "gpg2"