summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-09-01 23:50:54 +0200
committerMarc Vertes <mvertes@free.fr>2025-09-01 23:50:54 +0200
commit002cc250e24d2da9477f71861b6cfc8652503b5c (patch)
tree9237a6da327ad362e79320b63017cfb06858789d
parent79e527c8c9b8ca2cf7bccc3218b9805331384fcd (diff)
nvi vim support for dotfiles
-rw-r--r--.nexrc5
-rw-r--r--.vimrc5
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('%')<CR>:let @b=line('.')<CR>:new<CR>:set b
" edit current word as file
noremap ge :e <cWORD>
" 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