* bill lam on Wednesday, December 17, 2008 at 22:24:16 +0800
> I use the following to write email using vim
> set editor="vim -c 'set spell tw=70 et' '+/^$' "
>
> This usually works very well except when there is no empty in the
> file, then vim complains an error and need manual <CR>. How to use the
> silent keyword to make it ignore error in this context?
Try (untested):
set editor="vim -c \"set spell tw=70 et\" \"+call search('^$')\""
However you might have to experiment with the "\" escapes for it
to work. Much easier to move this stuff into
~/.vim/after/ftplugin/mail.vim
c
--
\black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---