dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit 2506dafc3a0caf24fc15fd7b66ca31980ed2a989
parent 4743eff4ea5c93663b2c11fd531da4d953d4ed34
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Sat, 16 Mar 2024 20:32:49 +0300

nvi: macros

Diffstat:
Mnvi/dot-nexrc | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/nvi/dot-nexrc b/nvi/dot-nexrc @@ -19,14 +19,19 @@ map g 1G map zz mzz.`z map ;n /^[{}] map ;p ?^[{}] -map ;j 20jzz -map ;k 20kzz + +" macros +map copy_word; wb"zyw +map insert_word; "zp +map insert_command; :o +map temp_buffer; :E /tmp:bg +map delete_all; 1GdG " open current word in man -map ;m wb"zyw:C!man "zp +map ;m copy_word;temp_buffer;insert_command;read !man insert_word;A| col -b1G " fzf open files -map ;o ::!ls -R | fzf >> %:editIEdit :bg +map ;o insert_command;:!ls -R | fzf >> %:eIEdit :bg " fzf git grep TODO map ;g wb"zyw:C:!git grep "zpA | fzf >> % @@ -35,16 +40,11 @@ map ;g wb"zyw:C:!git grep "zpA | fzf >> % map ;w {j!}fold -s -w 80 " go to definition -map ;d wb"zyw:Atag "zp +map ;d copy_word;insert_command;tag insert_word; " shell check map ;c :!clear && shellcheck % -" file manager -map ;xd :e ls;xg -map ;xg o:%d:r !ls -p -map ; wb"zyw:C:cd! "zp;xg - " Ru/En layout. Based on VimHelp-*russian-keymap* and " https://stackoverflow.com/questions/17905207/ideavim-and-russian-layout map ะน q