aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-06-21 10:27:03 -0300
committerEuAndreh <eu@euandre.org>2023-06-21 10:27:06 -0300
commit94f3eb72a8503f6bab594db3f4ade0e752fdfb41 (patch)
tree5a25360498b1a28b81d280f8a91653cf6185f9d0 /etc
parentetc/sh/rc: Exploit more nvi options (diff)
downloaddotfiles-94f3eb72a8503f6bab594db3f4ade0e752fdfb41.tar.gz
dotfiles-94f3eb72a8503f6bab594db3f4ade0e752fdfb41.tar.xz
etc/sh/rc: Add commented vi mappings
They all cause nvi(1) to SEGFAULT.
Diffstat (limited to 'etc')
-rw-r--r--etc/sh/rc13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index d54f3a2..fbfa786 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -81,7 +81,18 @@ export EXINIT='
map  :set autoindent
" toggle?
- " map  y :p:
+ " map  y :p:.,$!copy :q
+ " map  p :read !xclip -o
+
+ " map K wb"zye:o:!man "zp
+
+ " map  f ::!env FZF_DEFAULT_COMMAND="git ls-files" fzf >> % :edit GIEdit  :bg
+
+ " map & wb"zye:o:!git grep "zp
+
+ " map & wb"zye::!echo % >> % :edit GI:!git grep h"zpwi^X7c fzf >>  ::edit Gf:l"zyt:hDIEdit + h"zp :bg
+
+ " map gb :vsplit "zy1G:edit /tmp G:read !git blame -- # : o"zpG!wc -lI:
'
HOSTNAME="$(hostname)"