I would like to create a macro to replace having to type:
vi(
vi[
vi"
etc.
I have been trying things along the line of:
:nnoremap <leader><tab> vy:exe vi"0<cr>
but not succeeding.
I'm on Windows using VsVim.
Thanks.
I would like to create a macro to replace having to type:
vi(
vi[
vi"
etc.
I have been trying things along the line of:
:nnoremap <leader><tab> vy:exe vi"0<cr>
but not succeeding.
I'm on Windows using VsVim.
Thanks.
I just tried adding this to my _vsvimrc
:
nnoremap gP vi"
and it worked just fine, as far as I could see. Does this give you what you need?
In Vim, you can do this:
:nnoremap <leader><tab> yl:execute 'normal! vi' . @"<CR>
This y
anks the character under the cursor, and then uses :normal!
to run the vi...
normal mode command, and :execute
to interpolate the register contents into it.
I don't know about VsVim's capabilities, but I doubt it offers these capabilities; you can probably only do simple vi-style mappings there.