Skip to content

Commit

Permalink
feat(wordmotion): b,e,w favors default motions
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Oct 31, 2024
1 parent 9fef21d commit c4ff668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
19 changes: 2 additions & 17 deletions autoload/aceforeverd/plugin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -485,23 +485,8 @@ function! s:config_plugins() abort
" csv.vim
let g:csv_no_conceal = 1

" vim-wordmotion: vanilla word motion
nnoremap <localleader>b b
nnoremap <localleader>e e
nnoremap <localleader>w w
nnoremap g<localleader>e ge
onoremap <localleader>b b
onoremap <localleader>e e
onoremap <localleader>w w
onoremap i<localleader>w iw
onoremap a<localleader>w aw
onoremap g<localleader>e ge
xnoremap <localleader>b b
xnoremap <localleader>e e
xnoremap <localleader>w w
xnoremap i<localleader>w iw
xnoremap a<localleader>w aw
xnoremap g<localleader>e ge
" vim-wordmotion
let g:wordmotion_prefix = ';'

" zig
let g:zig_fmt_autosave = 0
Expand Down
8 changes: 4 additions & 4 deletions lua/aceforeverd/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,10 @@ M.plugin_list = {
})
end,
keys = {
{ mode = { 'n', 'o', 'x' }, 'w', "<cmd>lua require('spider').motion('w')<CR>", desc = 'Spider-w: next word' },
{ mode = { 'n', 'o', 'x' }, 'e', "<cmd>lua require('spider').motion('e')<CR>", desc = 'Spider-e: end of word' },
{ mode = { 'n', 'o', 'x' }, 'b', "<cmd>lua require('spider').motion('b')<CR>", desc = 'Spider-b: previous word' },
{ mode = { 'n', 'o', 'x' }, 'ge', "<cmd>lua require('spider').motion('ge')<CR>", desc = 'Spider-ge: previous end of word' },
{ mode = { 'n', 'o', 'x' }, '<localleader>w', "<cmd>lua require('spider').motion('w')<CR>", desc = 'Spider-w: next word' },
{ mode = { 'n', 'o', 'x' }, '<localleader>e', "<cmd>lua require('spider').motion('e')<CR>", desc = 'Spider-e: end of word' },
{ mode = { 'n', 'o', 'x' }, '<localleader>b', "<cmd>lua require('spider').motion('b')<CR>", desc = 'Spider-b: previous word' },
{ mode = { 'n', 'o', 'x' }, '<localleader>ge', "<cmd>lua require('spider').motion('ge')<CR>", desc = 'Spider-ge: previous end of word' },
},
},

Expand Down

0 comments on commit c4ff668

Please sign in to comment.