Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linsomniac/vim-omnipy-template
Vim Omnicompletion Template using Python
https://github.com/linsomniac/vim-omnipy-template
Last synced: 11 days ago
JSON representation
Vim Omnicompletion Template using Python
- Host: GitHub
- URL: https://github.com/linsomniac/vim-omnipy-template
- Owner: linsomniac
- Created: 2011-11-29T09:03:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-28T05:03:25.000Z (over 11 years ago)
- Last Synced: 2023-03-11T11:42:45.064Z (over 1 year ago)
- Language: VimL
- Homepage:
- Size: 101 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Vim Omnicompletion Template using Python
========================================Author: Sean Reifschneider
2011-11-29
Placed into the Public DomainIntroduction
------------Vim Omnicompletion is an extremely powerful tool, but I spent quite a
lot of time initially figuring out exactly how to make it happen. Part
of that was due to being only somewhat familiar with the vim scripting
language, so I really wanted to write it in Python.My goal with this template is to make it dead simple for a Python
programmer to create Omni-completion functions for vim.To Use
------* Copy this file in "~/.vim/plugins".
* Rename this file to a new name, likely called something about what
you are completing and "complete". For example, the completion
for Python in vim is stored in a file called "pythoncomplete.vim".* Search for "@@@" in this file and make the changes mentioned.
* Start up vim and do ":set omnifunc=YOURFILENAME#Complete" where
"YOURFILENAME" is the name of the file you created in step 1 above.* Start typing something and then type Control-X Control-O to bring
up the completion menu.If you've had good or bad luck with this, please let me know!