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
最新推荐文章于 2025-05-13 15:35:36 发布