From 3cd88091572767ad159e48b7a806b9d5a5de2945 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 8 Aug 2024 16:57:35 +0200 Subject: nvim config for gemtext --- nvim/init.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nvim') diff --git a/nvim/init.vim b/nvim/init.vim index f1f1d1e..08ce5eb 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -111,6 +111,18 @@ au FileType go setlocal nolist noexpandtab au FileType make setlocal nolist noexpandtab au FileType caddyfile setlocal nolist noexpandtab +"Gemtext gets its own text wrapping behavior +"https://stackoverflow.com/questions/36950231/auto-wrap-lines-in-vim-without-inserting-newlines +au FileType gemtext setlocal number +au FileType gemtext setlocal tw=0 +au FileType gemtext setlocal wrapmargin=0 +au FileType gemtext setlocal wrap +au FileType gemtext setlocal linebreak +"au FileType gemtext setlocal columns=80 +"https://stackoverflow.com/questions/20975928/moving-the-cursor-through-long-soft-wrapped-lines-in-vim +au FileType gemtext nnoremap j v:count ? 'j' : 'gj' +au FileType gemtext nnoremap k v:count ? 'k' : 'gk' + "terminal shortcuts tnoremap \ tnoremap -- cgit v1.2.3