This vim plugin takes a way for mappping f
of Vim ๐
For example, with this preference
augroup VimFmap
autocmd!
autocmd VimEnter * FNoreMap pb (
autocmd VimEnter * FNoreMap pe )
augroup END
nmap <leader>f <Plug>(fmap-forward-f)
If your cursor is above of ^
b a a ) a
^
You can move the cursor to )
with the <leader>fpb
key โ๏ธ
b a a ) a
^
F
, t
, and T
can be used on the same way.
Also if you want to leave on the way,
<Esc>
, <C-[>
, and <C-c>
helps with you.
Please add the following line into your .vimrc
With dein.vim
call dein#add('aiya000/vim-fmap')
With dein.vim and .toml
[[plugins]]
repo = 'aiya000/vim-fmap'
or
[[plugins]]
repo = 'aiya000/vim-fmap'
on_map = [
'<Plug>(fmap-forward-f)',
'<Plug>(fmap-backward-f)',
'<Plug>(fmap-forward-t)',
'<Plug>(fmap-backward-t)',
]
on_cmd = 'FNoreMap'
- the
target
for characters['(', '๏ผ']
oflet g:fmap_default_mappings = [{ 'target': ['(', '๏ผ'], 'strokes': ['pb'] }]
- ^ shots the first of
(
and๏ผ
- augroup FmapShotPre, FmapShotPost