Published by Niels on 25 Jan 2006 at 07:32 pm
ViM, ViM…
Editing entries in NanoBlogger appeared a bit cumbersome to me. But as with any open source solution this is primarily my own fault. Anything can be customized…
I added a ‘modeline’ to my templates/entry.metadata to override my .vimrc settings and also changed the editor setting in my blog.conf.
templates/entry.metadata:
TITLE: $NB_EntryTitle
AUTHOR: $NB_EntryAuthor
DATE: $NB_EntryDate
DESC: $NB_EntryDescription
FORMAT: $NB_EntryFormat
$METADATA_MARKER
BODY:
$NB_EntryBody
$METADATA_CLOSETAG
vim:set sw=4 ts=4 fo=cqt noet:
blog.conf:
EDITOR="gvim -f"
Now editing is a lot more bearable. The only problem now is that :!aspell -c % from gViM is not working properly anymore. Everything stays in in the bottom command line. Ah well, just another item for my TODO list.
Update: Wed Jan 25 21:41:50 CET 2006
Forget about the ‘modeline’. It screws the title of the entries up by adding $NB_EntryDate (literally) to the entry’s timestamp. This will take more time debugging than I have tonight. <schwarzenegger_voice>I’ll be back</schwarzenegger_voice> (on this one).