From 63d048a4d891ac850a352fd3e9b345f778f5fdd7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 7 Jul 2024 18:11:53 +0200 Subject: "original tab mapping" doesn't work --- japanese.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/japanese.vim b/japanese.vim index 85b84f9..75bcd8c 100644 --- a/japanese.vim +++ b/japanese.vim @@ -502,7 +502,9 @@ function s:handle_tab_expr() endif if s:cur_region is v:null - return expand('') .. "orig\" " original tab binding if we're not typing + " TODO: No clue why this doesn't work + " return expand('') .. "orig\" " original tab binding if we're not typing + return '' endif " Add a at the end to immediately select the first completion item @@ -538,9 +540,9 @@ inoremap handle_escape_expr() inoremap handle_space_expr() inoremap handle_enter_expr() inoremap handle_backspace_expr() -execute 'inoremap orig ' .. maparg('', 'i') -inoremap handle_tab_expr() -execute 'inoremap orig ' .. maparg('', 'i') +" execute 'inoremap orig ' .. maparg('', 'i') +imap handle_tab_expr() +" execute 'inoremap orig ' .. maparg('', 'i') inoremap handle_shifttab_expr() inoremap call handle_hiragana() inoremap call handle_katakana() -- cgit v1.2.3-70-g09d2