summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/init.vim12
1 files changed, 12 insertions, 0 deletions
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 <expr> j v:count ? 'j' : 'gj'
+au FileType gemtext nnoremap <expr> k v:count ? 'k' : 'gk'
+
"terminal shortcuts
tnoremap <leader><leader> \
tnoremap <leader> <C-\><C-n>