

Nmap :!ctags -R -c++-kinds=+p -fields=+iaS -extra=+q. " let g:SuperTabDefultCompletionType='context' Let g:neocomplcache_omni_patterns.erlang = '\|:' If !exists('g:neocomplcache_omni_patterns') Smap (neocomplcache_snippets_force_jump)Īutocmd FileType python setlocal omnifunc=pythoncomplete#CompleteĪutocmd FileType c setlocal omnifunc=ccomplete#Complete Smap (neocomplcache_snippets_force_expand) Imap (neocomplcache_snippets_force_expand) Let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*' Built in context completion option which chooses the appropriate.
Let g:neocomplcache_min_syntax_length = 3 Supertab is a vim plugin which allows you to use"let g:neocomplcache_enable_camel_case_completion = 1 "let g:neocomplcache_enable_underbar_completion = 1 Let g:neoComplcache_disableautocomplete=1 Hi Tb_VisibleChanged guifg=green ctermbg=252 ctermfg=white Hi Tb_VisibleNormal ctermbg=252 ctermfg=235 " Rainbow parentheses for Lisp and variants Set matchtime=2 " show matching bracket for 0.2 seconds Set laststatus=2 " use 2 lines for the status bar Set showcmd " show typed command in status bar Set showmatch " show matching bracket (briefly jump) Set scrolloff=5 " 5 lines above/below cursor when scrolling Additionally, a popup window appears with documentation on the particular method that's currently selected. in Insert mode, then press Tab and have all of the options come up. Using a combination of Omni Completion and SuperTab, I'm able to do something like: import random random. Set report=0 " always report number of lines changed " Scroll down in vim omni completion popup. Set t_Co=256 " Explicitly tell vim that the terminal has 256 colors " Set backspace=indent,eol,start " More powerful backspacing Set confirm " prompt when existing from an unsaved file "set highlight " conflict with highlight current line " enable syntax hightlight and completionĪu WinLeave * set nocursorline nocursorcolumnĪu WinEnter * set cursorline cursorcolumn " enable filetype dectection and ft specific plugin/indent This means that jedi-vim is only used when performing omni-completion. What jedi-vim does is set omnifunc option to use the function it provides.
VIM SUPERTAB CONTEXT OMNI INSTALL
详细代码参考,整个代码也是从,专门针对我需要查看内核代码做的修改,原配置可能更适合前端开发等。安装方法: sudo apt-get install ctags cscope git You can always check :help supertab-completioncontexts if you need a more personalized behavior.
