I know. I should be writing, not worrying about tools.
I’ll write later this morning. I promise.
I wanted to post about vim, my text editor of choice.
Vim is documented elsewhere.
This won’t be a “hit this key to do that” post.
Instead, these are my impressions of vim as a text editor for writers.
I’ve used vim for well over 10 years, so this is not a, “Hey! Check this new program out! I just tried it and it’s wonderful!” post either.
Who vim is for and not for
Vim is for you if you
- are a good touch typist
- make a lot of edits
- don’t mind struggling through a bit of a learning curve
- are willing to format your document in another editor
Vim is not for you, or at least you won’t see much advantage, if you
- are not a good touch typist
- don’t make lots of edits
Those are general rules, with lots of exceptions.
Editing in vim
Editing is where vim shines. I mean, really shines.
I mean, shines as in, “I can’t believe how cool this is!”
Well, maybe that’s a bit of an exaggeration. Editing still sucks. But vim makes editing easier than any other tool I’ve used.
I’ve promised a “no keystroke” post, so let me explain conceptually.
Vim works in modes. When you type in vim, what the keys tell the program to do depends on what mode vim is in.
“Insert mode” inserts text in the document as you type. This is the default mode of most word processors.
“Normal mode” maps the keyboard to commands. You no longer insert text, but execute commands to move , copy, and paste text.
Normal mode is more efficient than a mouse for editing text. Vim knows what units of text like a word, sentence and paragraph are. With a few keystrokes you can tell vim, “delete the next three sentences and insert them before the next paragraph.” It’s like magic.
Every now and then I get frustrated with vim’s drawbacks and use a word processor. After a day I’m back to vim. Once the vim commands are in your muscle memory, there’s no leaving. Editing in a word processor is like trying to run across hot tar in sneakers.
The biggest drawback to vim is that it does not format text.
You can finesse this a little bit, but don’t try.
After you write in vim, format in another editor.
You can import into LibreOffice, or if you don’t mind delving into text processing a little more, use groff or Latex to edit the document.
Vim doesn’t use curly quotes. Latex and groff insert them automatically. In LibreOffice or Word, use regular expressions to change all of them at once.
Documents are easy to organize using folds.
You can use ex: mode to make more sophisticated changes to your document like removing blank lines and inserting line numbers.
You can set up a distraction free environment.
You can insert text from supporting documents anywhere inside a master document with just a few keystrokes.
Vim was designed as a coding editor, so it is infinitely configurable.
But the best reason to use vim, the one killer feature, is fast editing.