Reputation: 22695
I would like to remap the command <C-w> gf
to gf
How do I do that ?
I tried
:map gf <C-w> gf
This is not working. How do I group <C-w> gf
into a single action ?
Upvotes: 1
Views: 184
Reputation: 2559
In short, you should remove the space between <C-w>
and gf
.
But I would recommend
:nnoremap gf <C-w>gf
because you use this in normal mode, and it's usually a good idea to prevent remaps unless you have a better reason not to.
Upvotes: 4