Skip to content

Commit c75ea25

Browse files
committed
Tabを補完に使うのをやめてみる
1 parent 8992ca2 commit c75ea25

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

conf/rc/mode/ic/map.vim

+4-5
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,18 @@ function s:pum_mode(key) abort
112112
let cont = v:false
113113
redraw
114114
let c = getcharstr()
115-
if c ==# "\<Tab>"
115+
if c ==# "\<C-n>"
116116
call pum#map#select_relative(+1)
117117
let cont = v:true
118-
elseif c ==# "\<S-tab>"
118+
elseif c ==# "\<C-p>"
119119
call pum#map#select_relative(-1)
120120
let cont = v:true
121121
elseif c ==# 'E'
122122
call pum#map#cancel()
123-
elseif c ==# 'N' || c ==# "\<C-n>"
123+
elseif c ==# 'N'
124124
call s:pum_select_by(v:false, function('s:pum_candidate_compare'))
125125
let cont = v:true
126-
elseif c ==# 'P' || c ==# "\<C-p>"
126+
elseif c ==# 'P'
127127
call s:pum_select_by(v:true, function('s:pum_candidate_compare'))
128128
let cont = v:true
129129
elseif c ==# "\<CR>"
@@ -138,7 +138,6 @@ function s:pum_mode(key) abort
138138
endwhile
139139
endfunction
140140

141-
noremap! <Tab> <Cmd>call <SID>pum_mode('<Tab>')<CR>
142141
noremap! N <Cmd>call <SID>pum_mode('N')<CR>
143142
noremap! P <Cmd>call <SID>pum_mode('P')<CR>
144143
noremap! <C-n> <Cmd>call <SID>pum_mode('<C-n>')<CR>

0 commit comments

Comments
 (0)