summaryrefslogtreecommitdiff
path: root/vi.exrc
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-20 14:49:32 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-20 14:50:11 +0200
commit8d656e6a8cd3ac564280a167a669d575c34be7ad (patch)
tree3a286e5dc3e02039f043a7ff76d30098091f2067 /vi.exrc
parent0a15bce060bda3c60d0cf521c6f213e35bf85175 (diff)
downloadexrc-8d656e6a8cd3ac564280a167a669d575c34be7ad.tar.gz
vi.exrc: Add ^N, ^P, gw, gb commands
Diffstat (limited to 'vi.exrc')
-rw-r--r--vi.exrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vi.exrc b/vi.exrc
index 3f69462..cbd1dd2 100644
--- a/vi.exrc
+++ b/vi.exrc
@@ -20,3 +20,11 @@ map g/ /.*
" edit "q buffer in new vi session
map gQ m/:!echo > /tmp/vi.buf; vi /tmp/vi.buf :r /tmp/vi.buf "qdd`/
map gq m/om("qpm):'(,')j :'(w! /tmp/vi.buf :'(d :!vi /tmp/vi.buf :r /tmp/vi.buf "qdd`/
+
+" go to next/previous space
+map gw f
+map gb F
+
+" go to next/previous troff command
+map  ?^[.'][^ ]*$
+map  /^[.'][^ ]*$