summaryrefslogtreecommitdiff
path: root/vi.exrc
diff options
context:
space:
mode:
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  /^[.'][^ ]*$