-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvide.vimrc
More file actions
56 lines (41 loc) · 1.15 KB
/
vide.vimrc
File metadata and controls
56 lines (41 loc) · 1.15 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
" include other files
source ~/.vim/vundle.vimrc
source ~/.vim/basic.vimrc
set number
" make tabs 4 space
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" enable syntax highlighting
if has("syntax")
syntax on
endif
" auto read buffer from disk wothout prompt (:checkt)
set autoread
"start plugins
"start NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Airline options
" Enable the list of buffers
let g:airline#extensions#tabline#enabled = 1
"
" Show just the filename
let g:airline#extensions#tabline#fnamemod = ':t'
" show when there is only one buffer
set laststatus=2
" enable color
set t_Co=256
" switch between header and implementation with Ctrl-o
map <C-o> :call CurtineIncSw()<CR>
" You Complete Me option
" use sytem clangd (better updated)
let g:ycm_clangd_binary_path = exepath("clangd")
" let clangd control code compleation
let g:ycm_clangd_uses_ycmd_caching = 0
" CtrlP root markers
let g:ctrlp_root_markers = ['.vimprj']