"Summary" Supertab of Vim Plugin

Source: Internet
Author: User
Tags using git

"Introduction to Plugins"

Supertab enables the tab shortcut key to have a quicker contextual hint function. An auto-complete plugin

"Plug-in Installation"

(1) Installing with bundles

Add the following command in the ~/.VIMRC

' Supertab '

Then the command mode in the Vim editor is installed using the following command

: Bundleinstall

(2) using Git

If you do not use bundles then run the following command in ~/.vim/plugin if you are using bundles then run it in the ~/.vim/bundle folder. To download the plugin

git https://github.com/ervandew/supertab

(3) Direct download

Download and place in the ~/.vim folder

http://www.vim.org/scripts/script.php?script_id=1643

"Plug-in Configuration"

Add the following configuration in ~/.VIMRC

Let g:supertabretaincompletiontype=2

which

"0-The last complete method is not recorded
"1-remember the last completion method until you change it with the other completion commands
"2-remember the last completion method until you press ESC to exit insert mode

"Plugin use"

In the VIM insert mode, using the shortcut key ctrl+p can call the Supertab plug-in, very easy to use, a bit like the automatic completion of Eclipse in Windows Ctrl+j

If you want to use other shortcut keys, you can configure them in ~/.VIMRC, as follows

Let g:supertabdefaultcompletiontype="<C-X><C-O>"

Reference:

http://blog.csdn.net/duguteng/article/details/7417264

http://blog.csdn.net/namecyf/article/details/7787479

http://www.zlovezl.cn/articles/my-vim-plugins-for-python/

http://blog.163.com/lgh_2002/blog/static/4401752620106131162137/

Thank you very much for the people who are willing to share.

"Summary" Supertab of Vim Plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.