-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.local
58 lines (46 loc) · 1.41 KB
/
vimrc.local
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
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set laststatus=2
set rtp+=/usr/lib/python3.5/site-packages/powerline/bindings/vim
set bs=indent,eol,start " allow backspacing over everything in insert mode
set number
:map <C-F10> :cwindow<CR>
:map <C-F11> :cp<CR>
:map <C-F12> :cn<CR>
nmap <C-h> :wincmd h<CR>
nmap <C-j> :wincmd j<CR>
nmap <C-k> :wincmd k<CR>
nmap <C-l> :wincmd l<CR>
nmap <C-F9> :TlistToggle<CR>:wincmd =<CR>
filetype detect
if &filetype!="go"
set expandtab
set shiftwidth=2
set softtabstop=2
endif
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'AndrewRadev/linediff.vim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
Plug 'majutsushi/tagbar'
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()
if filereadable("/etc/vimrc.coc")
source /etc/vimrc.coc
endif
let g:python3_host_prog = '/usr/bin/python'
vnoremap <C-D> :Linediff<CR>
nnoremap <C-D> :LinediffReset<CR>
nmap <F8> :TagbarOpenAutoClose<CR>
nmap <F9> :TagbarToggle<CR>
let g:deoplete#enable_at_startup = 1
let g:tagbar_left = 1
" disable vim-go :GoDef short cut (gd)
" this is handled by LanguageClient [LC]
let g:go_def_mapping_enabled = 0