tab补全
1 function! CleverTab() 2 if strpart( getline(‘.‘) ,0,col(‘.‘)-1) =~‘^\s*$‘ 3 return "\<Tab>" 4 else 5 return "\<C-N>" 6 endif 7 endfunction 8 inoremap <Tab> <C-R>=CleverTab()<CR>
取消提示
set shortmess=a
set cmdheight=2
2023-11-04 10:06:22
tab补全
1 function! CleverTab() 2 if strpart( getline(‘.‘) ,0,col(‘.‘)-1) =~‘^\s*$‘ 3 return "\<Tab>" 4 else 5 return "\<C-N>" 6 endif 7 endfunction 8 inoremap <Tab> <C-R>=CleverTab()<CR>
取消提示
set shortmess=a
set cmdheight=2
下一篇:linux系统账号管理