From 8d656e6a8cd3ac564280a167a669d575c34be7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 20 Jun 2021 14:49:32 +0200 Subject: vi.exrc: Add ^N, ^P, gw, gb commands --- vi.exrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vi.exrc') 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  /^[.'][^ ]*$ -- cgit v1.2.3