-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
68 lines (55 loc) · 1.59 KB
/
.vimrc
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
call plug#begin()
Plug 'tomasiser/vim-code-dark'
Plug 'mohvn/peachpuff-legacy'
Plug 'tpope/vim-commentary'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'rafi/awesome-vim-colorschemes'
Plug 'preservim/nerdtree' |
\ Plug 'Xuyuanp/nerdtree-git-plugin'
call plug#end()
syntax on
set background=dark
if 1
colorscheme peachpuff
highlight! link SignColumn LineNr
autocmd ColorScheme * highlight! link SignColumn LineNr
highlight! link CocFloating FgCocWarningFloatBgCocFloating
autocmd ColorScheme * hi link CocFloating FgCocWarningFloatBgCocFloating
autocmd FileType * hi clear conceal
hi clear TabLineFill
else
colorscheme codedark
hi clear CocFloating
autocmd FileType * hi clear conceal
endif
hi clear statusline
hi clear StatusLineNC
hi clear CursorLine
hi clear VertSplit
set number
set tabstop=2 shiftwidth=2
set expandtab ai
set hlsearch ruler
set mouse=a
set clipboard=unnamed
highlight Comment ctermfg=green
nnoremap <esc> :noh<return><esc>
let NERDTreeShowHidden=1
inoremap <c-b> <Esc>:NERDTreeToggle<cr>
nnoremap <c-b> <Esc>:NERDTreeToggle<cr>
" use <tab> to trigger completion and navigate to the next complete item
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <Tab>
\ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" :
\ coc#refresh()
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
inoremap { {}<Esc>ha
inoremap ( ()<Esc>ha
inoremap [ []<Esc>ha
inoremap " ""<Esc>ha
inoremap ' ''<Esc>ha
inoremap ` ``<Esc>ha