commit 3f4ac8c9e4c1083bd688f0bbc569ae80349c4737 parent 5db52ad9311a252e67693f58d459e0afe61d0129 Author: Anton Konyahin <me@konyahin.xyz> Date: Fri, 4 Nov 2022 20:50:01 +0300 nvi: initial commit Diffstat:
A | nvi/dot-nexrc | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 41 insertions(+), 0 deletions(-)
diff --git a/nvi/dot-nexrc b/nvi/dot-nexrc @@ -0,0 +1,41 @@ +" settings +set autoindent +set expandtab +set ruler +set showmode +set noflash +set windowname +set iclower +set shiftwidth=4 +set tabstop=4 + +" vim: good parts +map gg 1G +map ZQ :q! +map zz mzz.`z + +" movements +map ;n /<++>df>i +ab ;n /<++>df>i + +" open current word in man +map ;m wb"zyw:A!man "zp + +" fzf open files +map ;o ::!ls -R | fzf >> %:editIEdit :bg + +" fzf git grep TODO +map ;g wb"zyw:C:!git grep "zpA | fzf >> % + +" paragraph wrapping +map ;w {j!}fold -s -w 80 + +" go to definition +map ;d wb"zyw:Atag "zp + +" snippets +ab ;f for(<++>){ <++>} + + +" shell check +map ;c :!clear && shellcheck %