The one above is working in menu-vim (the "pipe" symbol has to be
escaped in menu.vim)
To let it work in the commandline the escape before the pipe symbol
has to be removed:
g/^/kl |if search('^'.escape(getline('.'),'\.*[]^$/').'$','bW') |'ld
The only problem I've found after using it for a few weeks, that it
removes
also the double empty lines.
(I would be happy also to know what the code exactly does)
ps: I added in my menu let @/ = '' to avoid after-highlighting.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment