diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-08-08 16:57:35 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-08-08 16:57:35 +0200 |
commit | 3cd88091572767ad159e48b7a806b9d5a5de2945 (patch) | |
tree | f133c7a16d261d0f59c8d80f04a7a5cade3392fa /nvim | |
parent | e3e13e890616da9947c5391d0b78ab695f1ae122 (diff) |
nvim config for gemtext
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/init.vim | 12 |
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> |