Monday, March 1, 2010

Re: mass delete words based on spell

On Mar 1, 11:35 am, Christian Brabandt <cbli...@256bit.org> wrote:
> this should have been
>
> :%s/\w\+/\=printf("%s", !empty(spellbadword(submatch(0))[0])?submatch(0):'')/
>
> (still one line, though)

That does work, but leaves empty lines, which are easy to remove with:

:sort iu

Is it possible to use spellbadword() in:

:g/{pattern}/d

--
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: