开发者

VIM taglist toggle on/off

I'm usin开发者_高级运维g taglist in VIM and i have remapped F12 so that it will call :TaglistToggle

nnoremap <F12> :TaglistToggle

is there a way that i can hit F12 and it will toggle the list on/off without having to hit return.

At the moment F12 will just place the command TaglistToggle in the command buffer and then i have to hit return to carry out the command.

Thanks


put <CR> (which is interpreted as carriage return) behind it:

nnoremap <F12> :TaglistToggle<CR>


You can include keystrokes in the command as well:

nnoremap <F12> :TaglistToggle<enter>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜