私にはクールな機能が.vimrc
あり、単語を。で完成させることができますtab。ここにあります :
" Tab completion of tags/keywords if not at the beginning of the line.
function! InsertTabWrapper()
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
else
return "\<c-p>"
endif
endfunction
タブをマッピングしました
inoremap <tab> <c-r>=InsertTabWrapper()<cr>
しかし、ファイルを開くと正しく機能しません.vimrc
。
:source $MYVIMRC<CR>
それを機能させるために。
編集:どうやらSnipMateプラグインとの競合があります
<Tab> * <C-R>=TriggerSnippet()<CR>
Last set from ~/.vim/after/plugin/snipMate.vim
両方にタブを使用する方法はありますか?