Closed Starschan closed 3 years ago
Error detected while processing /home/chan/.vim/plugged/vim-textobj-indent/plugin/textobj/indent.vim: line 37: E117: Unknown function: textobj#user#plugin Error detected while processing /home/chan/.vim/plugged/vim-textobj-syntax/plugin/textobj/syntax.vim: line 32: E117: Unknown function: textobj#user#plugin
call textobj#user#plugin('indent', { \ '-': { \ 'select-a': 'ai', '*select-a-function*': 'textobj#indent#select_a', \ 'select-i': 'ii', '*select-i-function*': 'textobj#indent#select_i', \ }, \ 'same': { \ 'select-a': 'aI', \ '*select-a-function*': 'textobj#indent#select_same_a', \ 'select-i': 'iI', \ '*select-i-function*': 'textobj#indent#select_same_i', \ } \ })
call textobj#user#plugin('indent', {
\ '-': {
\ 'select-a': 'ai', '*select-a-function*': 'textobj#indent#select_a',
\ 'select-i': 'ii', '*select-i-function*': 'textobj#indent#select_i',
\ },
\ 'same': {
\ 'select-a': 'aI',
\ '*select-a-function*': 'textobj#indent#select_same_a',
\ 'select-i': 'iI',
\ '*select-i-function*': 'textobj#indent#select_same_i',
\ }
\ })
而且好像挺多插件都没起作用。。我用的wsl2 ubuntu2004
Error detected while processing /home/chan/.vim/plugged/vim-textobj-indent/plugin/textobj/indent.vim: line 37: E117: Unknown function: textobj#user#plugin Error detected while processing /home/chan/.vim/plugged/vim-textobj-syntax/plugin/textobj/syntax.vim: line 32: E117: Unknown function: textobj#user#plugin
call textobj#user#plugin('indent', {
\ '-': {
\ 'select-a': 'ai', '*select-a-function*': 'textobj#indent#select_a',
\ 'select-i': 'ii', '*select-i-function*': 'textobj#indent#select_i',
\ },
\ 'same': {
\ 'select-a': 'aI',
\ '*select-a-function*': 'textobj#indent#select_same_a',
\ 'select-i': 'iI',
\ '*select-i-function*': 'textobj#indent#select_same_i',
\ }
\ })