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 Tab (more like Textmate's snippets), or even just how I could remap it to something a bit shorter (even if I can't get fancy tab completion), as I find Ctrl-X, Ctrl-O a bit awkward.
相关问题
- Emacs shell: save commit message
- How to change the first two uppercase characters o
- Insert text into current buffer from function
- Hot reload on save
- Substituting zero-width match in vim script
相关文章
- 如何让 vim 支持 .cshtml 文件的代码高亮
- Auto-save in VIM as you type
- How can I use gcc's -I command to add recursiv
- Vim: overloaded mapping for multiple modes
- How to use relative line numbering universally in
- How to copy the value of a vim option to a registe
- E185: Cannot find color scheme*
- How do I fix vim to properly indent folds containi
Map Tab to Ctrl-X,Ctrl-O
See this page from vim-wiki for a smarter Tab completion
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.
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.