|
@@ -5,13 +5,23 @@ Plug 'tpope/vim-sleuth'
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
Plug 'bling/vim-airline'
|
|
|
Plug 'mhinz/vim-signify'
|
|
|
+Plug 'Shougo/unite.vim'
|
|
|
|
|
|
Plug 'trusktr/seti.vim'
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
+" ----- plugin settings ------
|
|
|
let g:signify_vcs_list = [ 'git' ]
|
|
|
|
|
|
+call unite#filters#matcher_default#use(['matcher_fuzzy'])
|
|
|
+autocmd FileType unite call s:unite_settings()
|
|
|
+function! s:unite_settings()
|
|
|
+ " Enable navigation with control-j and control-k in insert mode
|
|
|
+ imap <buffer> <C-j> <Plug>(unite_select_next_line)
|
|
|
+ imap <buffer> <C-k> <Plug>(unite_select_previous_line)
|
|
|
+endfunction
|
|
|
+
|
|
|
" ------ settings ------
|
|
|
|
|
|
" default indentation
|
|
@@ -63,6 +73,10 @@ nnoremap k gk
|
|
|
vnoremap j gj
|
|
|
vnoremap k gk
|
|
|
|
|
|
+" opening unite
|
|
|
+nnoremap <C-P> :Unite -no-split -buffer-name=files -start-insert file_rec<cr>
|
|
|
+nnoremap <C-O> :Unite -no-split -buffer-name=buffers -start-insert buffer<cr>
|
|
|
+
|
|
|
augroup formatting
|
|
|
au!
|
|
|
" strip trailing whitespace
|