-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
46 lines (38 loc) · 1.06 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
set number
set tabstop=2 shiftwidth=2 expandtab
set backspace=indent,eol,start
set splitright
set hlsearch
set incsearch
" solarized dark theme
syntax enable
set background=dark
" colorscheme solarized
" rainbow bracket
let g:rainbow_active = 1
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'vim-airline/vim-airline-themes'
" Plug 'Yggdroot/indentLine'
Plug 'jiangmiao/auto-pairs'
Plug 'luochen1990/rainbow'
call plug#end()
let g:NERDTreeWinPos = "left""
autocmd VimEnter * NERDTree | wincmd p
" Remap keys for gotos
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
nnoremap <silent> gh :call <SID>show_documentation()<CR>
function! s:show_documentation()
if &filetype == 'vim'
execute 'h '.expand('<cword>')
else
call CocActionAsync('doHover')
endif
endfunction
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"