[plug] Discerning minds
Bernard Blackham
bernard at blackham.com.au
Fri May 27 18:07:13 WST 2005
Darn it, I'll bite :P
On Fri, May 27, 2005 at 02:29:19PM +0800, Tim Bowden wrote:
> Clearly vim skills are better to have than emacs skills.
Yeah. If you're not careful driving vim late at night, you might
accidentally write a webserver...
More seriously, here are some useful vim one-liners:
vim -ec 'runtime! syntax/2html.vim|wq!' foo.c
-- generates foo.html with vim syntax highlighting
vim -ec 'set ff=unix|wq' blah.txt
-- convert to unix line endings... equivalent to flip -u blah.txt
Writing scripts in vim isn't too hard. Nor is its syntax
highlighting format. Oh, and vimdiff rocks! :)
Bernard.
--
Bernard Blackham <bernard at blackham dot com dot au>
More information about the plug
mailing list