Vim auto complete

后端 未结 3 786
执念已碎
执念已碎 2021-01-30 09:22

So I know you can get Vim autocompletion with Ctrl-X, Ctrl-O but I\'m wondering if you could rework it so it works with just pressing

相关标签:
3条回答
  • 2021-01-30 09:47

    Map Tab to Ctrl-X,Ctrl-O

    :imap <tab> <c-x><c-o>
    

    See this page from vim-wiki for a smarter Tab completion

    0 讨论(0)
  • 2021-01-30 09:53

    The latest version of VIM includes auto complete Go to insert mode at specified line Ctrl-i then Press Ctrl-n while in the insert mode.

    0 讨论(0)
  • 2021-01-30 10:01

    I realize this question has been already answered, but you might be interested in a plugin such as SuperTab, which provides auto-completion and uses more than one type of auto-completion depending on the context and what type of completion you have been using.

    0 讨论(0)
提交回复
热议问题