Skip to content

Commit

Permalink
nvim: add easymotion keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzokuken committed Feb 26, 2020
1 parent f3a669c commit c6abf84
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dot_config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,16 @@ let g:NERDSpaceDelims = 1 " add spaces after comment delimiters by defau
let g:NERDCompactSexyComs = 1 " use compact syntax for prettified multi-line comments
let g:NERDDefaultAlign = 'left' " align line-wise comment delimiters flush left instead of following code indentation

" EasyMotion
let g:EasyMotion_do_mapping = 0 " disable default mappings
nmap s <Plug>(easymotion-overwin-f) " jump to anywhere you want with s
let g:EasyMotion_smartcase = 1 " turn on case-insensitive feature
map <Leader>j <Plug>(easymotion-j) " line motion down
map <Leader>k <Plug>(easymotion-k) " line motion up
" KEYMAPS

" C-p for fzf
map <C-p> :FZF<CR>
map <C-p> :FZF<CR> " C-p for fzf
" Quicker window movement
nnoremap <C-j> <C-w>j
Expand Down

0 comments on commit c6abf84

Please sign in to comment.