vim code completion problem
I follow the instruction at http://www.vim.org/scripts/script.php?script_id=1785 to enable the code completion, but fail. Following is the steps I perform. What do I miss?
1.) unzip javacomplete.zip to $HOME/.vim folder. So under the .vim folder there contains 2 sub-folders, including autoload and doc 2.) update .vim doc After launching the vim editor, typing `:helptags $HOME/.vim/doc` 3.) set Omnifunc. In the .vimrc adding line 'setlocal omnifunc=javacomplete#Complete' 4.) compiling Reflection.java and put it under .vim/autoload and/ or $HOME/ folder. 5.) launching vim and in the insert mode, press button <Ctrl> + X / <Ctrl> + O , etc. But it does not work. Where did I do it wrong? Or what steps I miss? env: Debian lenny, vim v7.1.241, javacomplete.zip v0.77.1 Thank you very much |
Hello,
What is <CTRL>+X and <CTRL>+O supposed to do? If you enter a piece of code that they use as an example: Code:
package com.foo The instructions say that Reflection.java will be automatically compiled and placed in your $HOME directory, so you shouldn't have to do anything with that. Also, did you leave off the single quotes in the .vimrc? The entry should be Code:
setlocal omnifunc=javacomplete#Complete Code:
set omnifunc=javacomplete#Complete |
All times are GMT -5. The time now is 11:59 AM. |