vim: simplify link keybinds

This commit is contained in:
Sam Greytalon 2023-04-20 09:36:39 -07:00
parent 000ec85709
commit 6291bf288a
1 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,5 @@
nnoremap gf :let @a='../'.expand('%')<CR>vi>y<Esc>:tabnew <C-R>"<CR>:let @"=@a
vnoremap gf y<Esc>:let @a='../'.expand('%')<CR>:tabnew <C-R>"<CR>:let @"=@a
nnoremap mf viwc[]<Esc>hpla(<>)<Left><Left><C-R>=expand('%')<CR><Esc>F/l"_dt>hpa.md<Esc>
vnoremap mf c[]<Esc>hpla(<>)<Left><Left><C-R>=expand('%')<CR><Esc>F/l"_dt>hpa.md<Esc>
nnoremap ml :r!grep -Rl '' .<Left><Left><Left>
vnoremap ml y<Esc>:execute 'r!grep -Rl '.shellescape(@", 1).' .'<CR>
nnoremap gl vi)y<Esc>:tabnew <C-R>"<CR>
vnoremap gl y<Esc>:tabnew <C-R>"<CR>
nnoremap ml viwc[]<Esc>hpla()<Esc>hpa.md<Esc>
vnoremap ml c[]<Esc>hpla()<Esc>hpa.md<Esc>