English 中文(简体)
交互连接多个动态缓冲器吗?
原标题:Close multiple vim buffers interactively?
  • 时间:2012-05-26 11:04:24
  •  标签:
  • vim

在打开一个文本编辑器后, 特别是执行了一个相当大的重构, 触动了大量文件, 最后你打开了很多缓冲。

在macs中,我习惯了使用 kill- some-buffers ,它基本上以互动的 是/ no 会话开始,展示每个缓冲会议的名称,并允许您按 < kbd>y 或 < kbd>n 来保存或删除每个缓冲会议,直到所有缓冲会议都提交给您(或者您取消命令)。

我可以用通配符, 但是文件名是所有有不同名称的红宝石文件( 基本上是我工程中的每一个文件 ) 。 最容易的事情就是让我关闭“ em> all 缓冲器并重新开始, 但这不是我所要寻找的解决方案, 只是为我将来的参考。

如果我能打开一个拆开的窗口, 列出所有缓冲和每个缓冲的“标记 ”, 我想以某种方式关闭它, 那么“ 承诺”这个决定也会有效。 基本上,它并不要求我在关闭一桶缓冲时应用发人深省逻辑。

最佳回答

我找到了插件", http://www.vim.org/scripts/cript.php? statim_id=3896" rel="nofollow" >buffet 允许类似的事情:

  • Use :Bufferlist to open the list of buffers.
  • Move up and down with the usual keys (j, k).
  • Delete the buffer under cursor with d

我认为这足以标示删除的缓冲。

问题回答

暂无回答




相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...

热门标签