about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-05 22:39:35 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-05 22:39:35 +0100
commit0d64cda7bf95ef8639ff4fadba65237db43abefa (patch)
tree63936b64b2841efa534cc201e33f724d8c266f24
parent93c4abc7b6cb812b0d34ff941434657c0c783d45 (diff)
downloadnotyet-0d64cda7bf95ef8639ff4fadba65237db43abefa.tar.gz
notyet-0d64cda7bf95ef8639ff4fadba65237db43abefa.tar.xz
notyet-0d64cda7bf95ef8639ff4fadba65237db43abefa.zip
vim: set <CR> and <TAB> buffer local
-rwxr-xr-xnotyet4
1 files changed, 2 insertions, 2 deletions
diff --git a/notyet b/notyet
index 8078524..aaa6ed7 100755
--- a/notyet
+++ b/notyet
@@ -240,8 +240,8 @@ if $edit && STDOUT.tty?
   rd, wr = IO.pipe
   $stdout = wr
   Process.spawn('vim',
-                '+nmap <CR> ^gF',
-                '+nmap <TAB> <CR>',
+                '+nmap <buffer><CR> ^gF',
+                '+nmap <buffer><TAB> <CR>',
                 '+setl nomod noma nowrap conceallevel=3 concealcursor=nc',
                 '+syn match Conceal /^.\{-}\t/ conceal',
                 '+syn match Comment /\t\s*[xX].*/lc=1',