diff --git a/plugin/friendly.vim b/plugin/friendly.vim index 4138e5f..446667e 100644 --- a/plugin/friendly.vim +++ b/plugin/friendly.vim @@ -269,6 +269,11 @@ vnoremap < >gv vnoremap + " Allow basic windows style editing shortcuts. Copied from mswin.vim but " implements fewer shortcuts, in fewer modes, to avoid breaking things like " CTRL-A/CTRL-X to add/subtract numbers and CTRL-V for visual block mode. @@ -442,7 +447,8 @@ function! SimpleTab() endif endfunction inoremap pumvisible() ? "\" : SimpleTab() -inoremap pumvisible() ? "\" : "\" +" FIXME: remove duplication, trigger existing S-Tab map when pum not visible +inoremap pumvisible() ? "\" : "\" " Experimental: map CR to accept completion, should be safe enough assuming " friendly.vim is loaded before other plugins which may otherwise map CR. " Some plugins might skip adding their own CR mapping if one exists, which