Admittedly, this is rather fringe to most readers of this blog, and I expect no comments on this post 🙂
But I thought it important to post this for those Googling certain terms and searching for help in writing books using LaTeX and VIM.
I use VIM as my editor for almost everything I write – including entering text in web pages, where I use the Firefox blugin “It’s All Text“. Since some time back, I have been more active as a writer, and my rediscovery and progressively love for LaTeX as the document publishing system has taken hold. Being a tools geek, I decided to do some tweaking of the standard LaTeX syntax plugin for VIM.
The plugin resides in the system-wide VIM syntax folder and is named “tex.vim”. To make use of my improved LaTeX plugin, simply copy my plugin to your own “.vim/syntax” directory, and you will get better tab settings and the possibility to fold parts/chapters/sections etc. of the book using the standard markers – like this:
\chapter{Name of the Chapter} %{{{1
With this, the chapter will be foldable all the way to the next marker on the same level (the above example showing level “1” of folding). Remember to put the percentage symbol before the fold marker to ensure LaTeX treats that part as a comment and does not render it as document text.



