在(G)Vim的新标签中打开(c)标签

前端之家收集整理的这篇文章主要介绍了在(G)Vim的新标签中打开(c)标签前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Ctrl w Ctrl i和:stj是好的,但是如何在GVim / Vim的新选项卡中跳到标签(在光标下)?
类似的问题 How to use multiple tabs when tagging to a function in Vim

它指出this wiki(which points back at stackoverflow)与这些设置(似乎在终端工作正常,没有尝试过gvim):

"--------------------
" Function: Open tag under cursor in new tab
" Source:   https://stackoverflow.com/questions/563616/vimctags-tips-and-tricks
"--------------------
map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR>
"--------------------
" Function: Remap keys to make it more similar to firefox tab functionality
" Purpose:  Because I am familiar with firefox tab functionality
"--------------------
map     <C-T>       :tabnew<CR>
map     <C-N>       :!gvim &<CR><CR>
map     <C-W>       :confirm bdelete<CR>
原文链接:https://www.f2er.com/bash/386697.html

猜你在找的Bash相关文章