1. What should I do so that I can have a look at all the 10 buffers, in split windows?
:ball
:tab ball " opens all the buffers in individual tabs
:only | bufdo sb %
2. Is there any way to delete these empty regions
If you're going to run :g[lobal] over the entire file, you don't need to specify the % range
Emacs' "C-x C-o" (delete-blank-lines), right? In Vim it would be
vipc
on an empty line or series of empty lines. This will delete the whole text paragraph too if you happen to be on one, so better emulation of Emacs' delete-blank-lines function it would be something like this:
map <C-x><C-o> :if getline('.') =~ '^/s*$' <bar> execute 'normal! vipc' <bar> endif<CR>
Last Update: 10/18/08 5:13:16 PM
Vim Cheat Sheet
最新推荐文章于 2026-02-05 02:48:15 发布
本文介绍如何在Vim编辑器中高效地查看所有打开的缓冲区,并在一个或多个空行上执行操作以进行删除。通过使用特定的Vim命令和映射键,可以轻松实现这些功能。
935

被折叠的 条评论
为什么被折叠?



