added easymotion, indentline plugins
This commit is contained in:
parent
3e9e02732f
commit
695acf2d71
|
@ -3,6 +3,8 @@ set nocompatible
|
||||||
syntax on
|
syntax on
|
||||||
" Line numbering
|
" Line numbering
|
||||||
set number
|
set number
|
||||||
|
" Always show the signcolumn
|
||||||
|
set signcolumn=yes
|
||||||
" highlight
|
" highlight
|
||||||
set cursorline
|
set cursorline
|
||||||
" Encoding
|
" Encoding
|
||||||
|
@ -24,7 +26,7 @@ set ttimeoutlen=50
|
||||||
" Shut the annoying bell
|
" Shut the annoying bell
|
||||||
set novisualbell
|
set novisualbell
|
||||||
" Set the updatetime
|
" Set the updatetime
|
||||||
set updatetime=750
|
set updatetime=500
|
||||||
" Ignore case for ex command completion
|
" Ignore case for ex command completion
|
||||||
set smartcase
|
set smartcase
|
||||||
nnoremap / /\C
|
nnoremap / /\C
|
||||||
|
@ -65,6 +67,7 @@ if dein#load_state(pluginpath)
|
||||||
call dein#add('airblade/vim-gitgutter')
|
call dein#add('airblade/vim-gitgutter')
|
||||||
call dein#add('christoomey/vim-tmux-navigator')
|
call dein#add('christoomey/vim-tmux-navigator')
|
||||||
call dein#add('scrooloose/nerdtree')
|
call dein#add('scrooloose/nerdtree')
|
||||||
|
call dein#add('Yggdroot/indentLine')
|
||||||
|
|
||||||
" Tools / Commands
|
" Tools / Commands
|
||||||
call dein#add('tpope/vim-surround')
|
call dein#add('tpope/vim-surround')
|
||||||
|
@ -72,6 +75,7 @@ if dein#load_state(pluginpath)
|
||||||
call dein#add('tpope/vim-endwise')
|
call dein#add('tpope/vim-endwise')
|
||||||
call dein#add('chrisbra/unicode.vim')
|
call dein#add('chrisbra/unicode.vim')
|
||||||
call dein#add('ctrlpvim/ctrlp.vim')
|
call dein#add('ctrlpvim/ctrlp.vim')
|
||||||
|
call dein#add('easymotion/vim-easymotion')
|
||||||
|
|
||||||
" Linting / Completion
|
" Linting / Completion
|
||||||
call dein#add('w0rp/ale')
|
call dein#add('w0rp/ale')
|
||||||
|
@ -94,9 +98,9 @@ endif
|
||||||
|
|
||||||
" Completor
|
" Completor
|
||||||
" TAB to choose completion
|
" TAB to choose completion
|
||||||
inoremap <expr> <Tab> pumvisible() ? '\<C-n>' : '\<Tab>'
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
inoremap <expr> <S-Tab> pumvisible() ? '\<C-p>' : '\<S-Tab>'
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||||
"inoremap <expr> <cr> pumvisible() ? '\<C-y>\<cr>' : '\<cr>'
|
"inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>"
|
||||||
let g:completor_python_binary = '/usr/bin/python'
|
let g:completor_python_binary = '/usr/bin/python'
|
||||||
let g:completor_node_binary = '/usr/bin/node'
|
let g:completor_node_binary = '/usr/bin/node'
|
||||||
let g:completor_clang_binary = '/usr/bin/clang'
|
let g:completor_clang_binary = '/usr/bin/clang'
|
||||||
|
@ -124,14 +128,25 @@ function! CtrlPStatusFunc_2(str)
|
||||||
return lightline#statusline(0)
|
return lightline#statusline(0)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" easymotion
|
||||||
|
map <Leader> <Plug>(easymotion-prefix)
|
||||||
|
|
||||||
" gitgutter
|
" gitgutter
|
||||||
let g:gitgutter_realtime = 1
|
let g:gitgutter_realtime = 1
|
||||||
let g:gitgutter_eager = 0
|
let g:gitgutter_eager = 0
|
||||||
let g:gitgutter_sign_added = ''
|
let g:gitgutter_grep = 'rg'
|
||||||
let g:gitgutter_sign_modified = ''
|
let g:gitgutter_sign_added = '+▐'
|
||||||
let g:gitgutter_sign_removed = ''
|
let g:gitgutter_sign_modified = '␢▐'
|
||||||
let g:gitgutter_sign_removed_first_line = ''
|
let g:gitgutter_sign_removed = '-▐'
|
||||||
let g:gitgutter_sign_modified_removed = ''
|
let g:gitgutter_sign_removed_first_line = '-▐'
|
||||||
|
let g:gitgutter_sign_modified_removed = '␢▐'
|
||||||
|
|
||||||
|
" indentLine
|
||||||
|
let g:indentLine_faster = 1
|
||||||
|
let g:indentLine_color_term = 237
|
||||||
|
let g:indentLine_leadingSpaceEnabled = 1
|
||||||
|
let g:indentLine_char = '┆'
|
||||||
|
let g:indentLine_leadingSpaceChar = '·'
|
||||||
|
|
||||||
" lightline
|
" lightline
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
@ -236,4 +251,3 @@ hi Normal ctermbg=NONE
|
||||||
highlight Comment cterm=italic
|
highlight Comment cterm=italic
|
||||||
set t_ZH=[3m
|
set t_ZH=[3m
|
||||||
set t_ZR=[23m
|
set t_ZR=[23m
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue