From 002cc250e24d2da9477f71861b6cfc8652503b5c Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 1 Sep 2025 23:50:54 +0200 Subject: nvi vim support for dotfiles --- .nexrc | 5 ++++- .vimrc | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.nexrc b/.nexrc index f34e66a..3978cec 100644 --- a/.nexrc +++ b/.nexrc @@ -3,8 +3,11 @@ set autowrite set wrapscan set extended set iclower +set noflash set filec= " Edit the content of current word as a file map ge yeopI:e! "add@a " Create an entry in tags for the current file -map gt :!echo "% % 1" >>tags; sort -o tags -u tags +map gt :!echo '% % 1' >>tags; sort -o tags -Vu tags +" Open the long word under the cursor +map ,o "ayEo"apI:!open "add@a diff --git a/.vimrc b/.vimrc index f47b7b8..3f29700 100644 --- a/.vimrc +++ b/.vimrc @@ -186,7 +186,4 @@ command! Blame normal!:let @a=expand('%'):let @b=line('.'):new:set b " edit current word as file noremap ge :e " create a tag entry for current filename -noremap gt :!echo "% % 1" >> tags; sort -o tags -u tags - -" create a file form word and index it in tags -map gf "ayeo"apI:!touch "bdd@b o"apA "apA 1' >> tags; sort -o tags -u tagsI:!echo '"bdd@b +noremap gt :!echo "% % 1" >> tags; sort -o tags -Vu tags -- cgit v1.2.3