101 points · by edwintorok · 12y ago · 41 comments
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...
I really don't get why the behavior of gj/gk isn't the default.
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...
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.
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.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"}You have to set 'formatoptions' depending on what you're doing. I have a keymapping to set/unset fo+=a/fo-=a.
for example ö is C-K o : or o <BS> :
see http://vimdoc.sourceforge.net/htmldoc/digraph.html for more details
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...