Why not use the markdown way to deal with long lines?

James Tomasino tomasino at lavabit.com
Fri Nov 13 18:45:37 GMT 2020


On 11/13/20 6:37 PM, Philipp Stanner wrote:
> For the first time in a long while I started to search neovim's help to
> find out if there's any way to have long lines and still work with them
> productively. Softwrap on or off doesn't do the trick, it's rather
> annoying when you want to edit something in the mid of a huge
> paragraph. `30w cw`...

I'm a neovim user. The Pencil plugins are extremely useful for dealing with text in better ways. It provides modes such as :PencilSoft which does exactly what you'd need for gemtext. Without such a plugin, though, you can still use wordwrap with some regular vim settings to break on whole words. For navigating vertically in softwraps you can use gj and gk, or set that as the default with:

noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j')
noremap <silent> <expr> k (v:count == 0 ? 'gk' : 'k')

It's quite nice to work with once you have the settings in place.



More information about the Gemini mailing list