-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_vimrc
More file actions
108 lines (99 loc) · 2.54 KB
/
dot_vimrc
File metadata and controls
108 lines (99 loc) · 2.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
execute pathogen#infect()
execute pathogen#helptags()
set nocompatible
filetype plugin indent on
syntax on
set autoindent
set autoread
set background=dark
set backspace=indent,eol,start
set backupdir=$TEMP
set cindent
set cinoptions=l1,g0,(0,Ws
set complete-=i
set confirm
set directory=$TEMP
set display+=lastline
set encoding=utf-8
set expandtab
set fileencoding=utf-8
set hidden
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set linebreak
set listchars=eol:¶,tab:¬\ ,trail:·,extends:»,precedes:«,nbsp:·
set mouse=a
set nrformats-=octal
set number
set ruler
set shellslash
set shiftround
set shiftwidth=2
set shortmess=aIOoTt
set showbreak=»»»
set showcmd
set showmatch
set noshowmode
set smartcase
set smartindent
set smarttab
set softtabstop=2
set spelllang=en_us
set t_Co=256
set tabstop=8
set termencoding=utf-8
set visualbell
set wildignore=*.o,*.obj
set wildmenu
set nowrap
if has("gui_running")
colorscheme jellybeans
set columns=132
set guifont=Powerline_Consolas:h10:cDEFAULT
set guiheadroom=0
set guioptions=aceg
set lines=60
set mousefocus
let g:airline_powerline_fonts = 1
endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
command! Q qall
command! W wall
nmap n nzz
nmap N Nzz
nmap Q gqap
vmap Q gq
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
nnoremap <silent> <C-K> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
nmap <silent> <leader>e :NERDTreeToggle<CR>
nmap <silent> <leader>g :Gstatus<CR>
nmap <silent> <leader>l :set list!<CR>
nmap <silent> <leader>k :bdelete<CR>
nmap <silent> <leader>t :TagbarToggle<CR>
nmap <silent> <leader>p :set paste!<CR>
nmap <silent> <leader>r :set relativenumber!<CR>
nmap <silent> <leader>w :set wrap!<CR>
nmap <silent> <F12> :make<CR>
" MSBuild 2015
set errorformat=%f(%l):\ %m
set makeprg=msbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true
let c_space_errors = 1
let java_space_errors = 1
let g:clang_format_style = 'file'
let g:ctrlp_cache_dir = $TEMP.'/ctrlp'
let g:ctrlp_clear_cache_on_exit = 0
let g:NERDTreeChDirMode = 2
let g:NERDTreeMinimalUI = 1
let g:syntastic_mode_map = { "mode": "passive" }
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_cpp_check_header = 1
let g:syntastic_cpp_checkers = [ 'clang_check' ]
let g:syntastic_cpp_clang_check_post_args = '-p build'
let g:syntastic_cpp_compiler = 'clang++'
let g:syntastic_cpp_compiler_options = '-std=c++14'
let g:syntastic_error_symbol = "✗"
let g:syntastic_warning_symbol = "ϟ"
let g:tagbar_compact = 1