~pvsr/dotfiles

29f40f21ff7c4961514138c57c317bb2d4a34915 — Peter Rice 4 years ago f720db5
slight adjustment of vim keys
2 files changed, 11 insertions(+), 19 deletions(-)

M nvim/.config/nvim/init.vim
M nvim/.config/nvim/plugins.vim
M nvim/.config/nvim/init.vim => nvim/.config/nvim/init.vim +2 -3
@@ 32,7 32,6 @@ set splitright
set cursorline
set report=0

" set autochdir
set confirm
set undofile



@@ 74,8 73,8 @@ nnoremap <Leader>t :NERDTreeToggle<CR>

nnoremap <silent> <Leader>c :nohlsearch<CR>

nnoremap <silent> <Leader>- :split<CR>
nnoremap <silent> <Leader>/ :vsplit<CR>
nnoremap <Leader>- <C-W>S
nnoremap <Leader>/ <C-W>v

nnoremap <Leader>h <C-W>h
nnoremap <Leader>j <C-W>j

M nvim/.config/nvim/plugins.vim => nvim/.config/nvim/plugins.vim +9 -16
@@ 1,7 1,6 @@
call plug#begin('~/.local/share/nvim/plugged')

" general
Plug 'airblade/vim-gitgutter'
Plug 'benekastah/neomake'
Plug 'ervandew/supertab'
Plug 'jiangmiao/auto-pairs'


@@ 12,6 11,7 @@ Plug 'shougo/neomru.vim' | Plug 'shougo/unite.vim'
Plug 'tommcdo/vim-exchange'
Plug 'tpope/vim-abolish'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-surround'


@@ 29,33 29,26 @@ Plug 'neovimhaskell/haskell-vim', { 'for': 'haskell' }

call plug#end()

" gitgutter
let g:gitgutter_signs = 0
let g:gitgutter_map_keys = 0
nnoremap [og :GitGutterSignsEnable<CR>
nnoremap ]og :GitGutterSignsDisable<CR>
nnoremap cog :GitGutterSignsToggle<CR>
nnoremap <Leader>gn <Plug>GitGutterNextHunk
nnoremap <Leader>gp <Plug>GitGutterPrevHunk
nnoremap <Leader>gs <Plug>GitGutterStageHunk
nnoremap <Leader>gu <Plug>GitGutterRevertHunk
nnoremap <Leader>gv <Plug>GitGutterPreviewHunk

" unite
" nnoremap <Leader>ff :Unite file/async<CR>
nnoremap <Leader>ff :Unite file_rec/async<CR>
nnoremap <Leader>fr :Unite file_mru<CR>

nnoremap <Leader>bb :Unite buffer<CR>
nnoremap <Leader>b :Unite buffer<CR>

nnoremap <Leader>/ :Unite grep:.<CR>
nnoremap <Leader><Leader> :Unite grep:.<CR>

" let g:unite_source_history_yank_enable = 1
" nnoremap <Leader>y :Unite history/yank<CR>

" airline
let g:airline_powerline_fonts = 1
let g:airline#extensions#hunks#non_zero_only = 1

let g:airline_left_sep = ' '
let g:airline_right_sep = ' '

" deoplete
let g:deoplete#enable_at_startup = 1

" neomake
autocmd! BufWritePost * Neomake