-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
72 lines (60 loc) · 1.96 KB
/
init.vim
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
set clipboard=unnamedplus
" Neovim-qt Guifont command
command -nargs=? Guifont call rpcnotify(0, 'Gui', 'SetFont', "<args>") | let g:Guifont="<args>"
" Set the font to DejaVu Sans Mono:h13
Guifont DejaVu Sans Mono:h13
"youcomleteme
"let g:ycm_confirm_extra_conf = 0
"let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py"
let g:ycm_global_ycm_extra_conf = "~/.config/nvim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py"
call plug#begin('~/.config/nvim/plugged')
Plug 'kien/ctrlp.vim'
Plug 'tpope/vim-fugitive'
Plug 'bling/vim-airline'
Plug 'mileszs/ack.vim'
Plug 'altercation/vim-colors-solarized'
Plug 'NLKNguyen/papercolor-theme'
Plug 'fatih/vim-go'
Plug 'Valloric/YouCompleteMe'
Plug 'critiqjo/lldb.nvim'
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable'}
Plug 'equalsraf/neovim-gui-shim'
call plug#end()
"colorscheme blackboard
set guifont=Monospace\ 14
set background=dark
colorscheme PaperColor
" config the vim module CtrlP:
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](\.git|build|build_unittest|logs.whiteboxtest)$',
\ 'file': '\v\.(so|pyc|swp|exe|bat|jar|zip|bz2|tar|sqlite)$',
\ }
" Set no max file limit
let g:ctrlp_max_files = 0
" " Search from current directory instead of project root
let g:ctrlp_working_path_mode = 0
"Override indentation rules for C/C++ files
let g:c_syntax_for_h = 1
au FileType cpp setl tabstop=4
au FileType cpp setl shiftwidth=4
au FileType cpp setl expandtab
au FileType c setl tabstop=8
au FileType c setl shiftwidth=8
"au FileType c setl expandtab
map <F6> :Colin<CR>
"Fast movement in the location list:
map <C-j> :cn<CR>
map <C-k> :cp<CR>
"Fast movement in the buffer list:
map <C-h> :bp<CR>
map <C-l> :bn<CR>
map <M-Right> :bn^M
map <M-Left> :bp^M
"Fast movement for next/previous tags
map #8 :tp^M
map #9 :tn^M
"Fast movement between splits
map <M-Down> ^W^W
map <M-Up> ^WW
command! Ctags !ctags --exclude=build --exclude=build_unittest --exclude=tools -R .
command! NewFile %!python ~/.config/nvim/newfile.py %