I was using vim as my writing tool for a while. I did that using make files and pandoc to produce epub / pdf versions of the book I was working on.
But I decided that I wanted to get away from the nerdy stuff and just focus on my writing instead. Hence going back to LyX - and now looking at Novel Writer.