在 vimrc 中添加代码导致
"E488: Trailing characters: <c-r>=12+34<cr>"
总是出现
<c-r>=12+34<cr>
那里发生了什么事?
我的原始代码:
function! CleverTab()
if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
return "\<Tab>"
endif
if pumvisible()
return "\<C-N>"
endif
let s:codecompl = CodeComplete()
"<c-r>=s:codecompl<cr>
<c-r>=12+34<cr>
"exec " " .s:codecompl. "\<enter>"."."
"if g:swith_region_flag == 1
" return SwitchRegion()
"else return s:codecompl
return ''
endfunction