@@ -26,11 +26,12 @@ endif
26
26
if ! exists (' g:im_select_get_im_cmd' ) || ! exists (' g:ImSelectSetImCmd' )
27
27
if has (' win32' ) || has (' win64' ) || has (' win32unix' ) || has (' wsl' ) || $PATH = ~ ' /mnt/c/WINDOWS'
28
28
if ! exists (' g:im_select_command' )
29
- let cmd = exepath (' im-select.exe' )
30
- if cmd == ' '
31
- echohl ErrorMsg | echomsg ' im-select.exe is not found on your system. Please refer to https://github.com/daipeihust/im-select' | echohl None
32
- finish
33
- endif
29
+ " let cmd = exepath('im-select.exe')
30
+ " if cmd == ''
31
+ " echohl ErrorMsg | echomsg 'im-select.exe is not found on your system. Please refer to https://github.com/daipeihust/im-select' | echohl None
32
+ " finish
33
+ " endif
34
+ let cmd = ' im-select.exe'
34
35
let g: im_select_command = cmd
35
36
endif
36
37
@@ -41,12 +42,12 @@ if !exists('g:im_select_get_im_cmd') || !exists('g:ImSelectSetImCmd')
41
42
let g: ImSelectSetImCmd = {key - > [g: im_select_command , key ]}
42
43
elseif has (' mac' ) || has (' macunix' ) || has (' osx' ) || has (' osxdarwin' )
43
44
if ! exists (' g:im_select_command' )
44
- let cmd = exepath (' im-select' )
45
- if cmd == ' '
46
- echohl ErrorMsg | echomsg ' im-select is not found on your system. Please refer to https://github.com/daipeihust/im-select' | echohl None
47
- finish
48
- endif
49
-
45
+ " let cmd = exepath('im-select')
46
+ " if cmd == ''
47
+ " echohl ErrorMsg | echomsg 'im-select is not found on your system. Please refer to https://github.com/daipeihust/im-select' | echohl None
48
+ " finish
49
+ " endif
50
+ let cmd = ' im-select '
50
51
let g: im_select_command = cmd
51
52
endif
52
53
if ! exists (' g:im_select_default' )
@@ -143,7 +144,7 @@ let g:im_select_enable_cmd_line = get(g:, 'im_select_enable_cmd_line', 1)
143
144
144
145
let g: im_select_prev_im = ' '
145
146
146
- function ! im_select#enable () abort
147
+ function ! s: im_select_enable () abort
147
148
augroup im_select
148
149
autocmd !
149
150
if g: im_select_enable_cmd_line
@@ -167,14 +168,14 @@ function! im_select#enable() abort
167
168
augroup END
168
169
endfunction
169
170
170
- function ! im_select#disable () abort
171
+ function ! s: im_select_disable () abort
171
172
autocmd ! im_select
172
173
endfunction
173
174
174
- command ! -nargs =0 ImSelectEnable call im_select#enable ()
175
- command ! -nargs =0 ImSelectDisable call im_select#disable ()
175
+ command ! -nargs =0 ImSelectEnable call s: im_select_enable ()
176
+ command ! -nargs =0 ImSelectDisable call s: im_select_disable ()
176
177
177
- call im_select#enable ()
178
+ call s: im_select_enable ()
178
179
179
180
let &cpo = s: save_cpo
180
181
unlet s: save_cpo
0 commit comments