about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-05 22:40:54 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-05 22:40:54 +0100
commita7504b19c86f0e88370deb59cf019e504fd7a8da (patch)
treeba004a5e7ac2446b54617f9e13530899b825957a
parent0d64cda7bf95ef8639ff4fadba65237db43abefa (diff)
downloadnotyet-a7504b19c86f0e88370deb59cf019e504fd7a8da.tar.gz
notyet-a7504b19c86f0e88370deb59cf019e504fd7a8da.tar.xz
notyet-a7504b19c86f0e88370deb59cf019e504fd7a8da.zip
vim: o to add new todo below, xX-? to easily switch task state
-rwxr-xr-xnotyet3
1 files changed, 3 insertions, 0 deletions
diff --git a/notyet b/notyet
index aaa6ed7..8730da7 100755
--- a/notyet
+++ b/notyet
@@ -242,6 +242,9 @@ if $edit && STDOUT.tty?
   Process.spawn('vim',
                 '+nmap <buffer><CR> ^gF',
                 '+nmap <buffer><TAB> <CR>',
+                '+nnoremap <buffer>o ^gFo- |' \
+                 'nnoremap <buffer>x ^gF^rx | nnoremap <buffer>X ^gF^rX |' \
+                 'nnoremap <buffer>- ^gF^r- | nnoremap <buffer>? ^gF^r?',
                 '+setl nomod noma nowrap conceallevel=3 concealcursor=nc',
                 '+syn match Conceal /^.\{-}\t/ conceal',
                 '+syn match Comment /\t\s*[xX].*/lc=1',