Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有任何快捷方式或命令可以在当前窗口中切换缓冲区(删除当前缓冲区并重新打开下一个缓冲区),因为有时我觉得我打开了太多缓冲区?目前我使用bufexplorer 和fuzzyfinder。
尝试这个:
function DelBufferAndNext() let s:old_bufnr = bufnr('%') bnext exec s:old_bufnr . 'bd' unlet s:old_bufnr endfunction command -nargs=0 BD call DelBufferAndNext()