Using Vim as a writing environment
timotheepoisot.fr
timotheepoisot.fr
Seriously, though, if you think it'll save someone some time or effort, it may be worthwhile to hit the publish button instead of waiting.
(I'm a cofounder of Leanpub, so I'm kind of biased, and being flippant here. Feel free to ignore me if it's not ready)
I mainly use it, though, as an editor for LaTeX which, I think, is really using Vim precisely as it was intended (that is, as a code editor).
Does anyone have other plugins that they find useful when writing in vim?
http://wynnnetherland.com/journal/reed-esau-s-growing-list-o...
http://gabekoss.com/blog/2013/11/writing_with_vim/ https://alols.github.io/2012/11/07/writing-prose-with-vim/
When just brainstorming vimoutliner might help to organize ideas: http://peterstuifzand.nl/gtd-vimoutliner.html http://jeromyanglim.blogspot.ro/2011/04/using-vim-and-vimout...
I really don't get why the behavior of gj/gk isn't the default.
You have to set 'formatoptions' depending on what you're doing. I have a keymapping to set/unset fo+=a/fo-=a.
Works great for re-wrapping code comments too.
It's been packaged in Debian for ages.
PARINIT="rTbgqR B=.,?_A_a Q=_s>"
The first version of par was released in 1993 and the first Debian package was in 1996. The latest release will be 13 years old on Tuesday.edit: To explain better, it basically re-wraps text in the optimal way into a paragraph. So you can not worry about spacing while typing and editing, and then when you are finally done you can just select the text and fix the wrapping really easily.
The main problem I have is when I'm authoring in vim and pasting to another editor which interprets hard returns as, well, hard returns.
Mostly I play games with piping through a formatting tool or join up lines manually before pasting them. Hrm. Now you've got me wondering if there's a good way to do that generically.
#!/usr/bin/perl -p
use strict;
BEGIN{$/=undef;}
{ s/(?<!\n)\n(?!\n)//sg; }
END {print"\n"}for example ö is C-K o : or o <BS> :
see http://vimdoc.sourceforge.net/htmldoc/digraph.html for more details
In case anyone else happens to have the same issue, I solved it by sticking
export GTK_IM_MODULE=xim
in /etc/environment .But being able to do that let me do data entry on documents written in Swedish (which has the additional characters of é, å, ä, ö, and à) after about 10 seconds of ramping up figuring out where the desired keys were.
I'm sure there's a summary somewhere on the interwebz.
https://github.com/erisian/rest_tools
http://tadhg.com/wp/2012/10/07/tools-for-writing-restructure...
You can actually do that with conceal:
http://ithaca.arpinum.org/2010/11/06/vim-conceal-for-ruby.ht...
http://vimdoc.sourceforge.net/htmldoc/syntax.html#conceal
http://vimdoc.sourceforge.net/htmldoc/options.html#'conceall...