Suhail Gupta
Suhail Gupta

Reputation: 23206

cannot see autocompletion and code hinting in vim

While writing the ruby code in vim , it doesn't auto-complete the code as shown here. I also don't see the code hinting. Why is that ?

Steps I performed for installation of RSense and Vim Plugin. All the operations are performed as root. I did exactly what has been given in the manual.

su
password : ************
$ cp -av rsense-0.3 ~/opt
$ cd /root/opt/
$ chmod +x bin/rsense
$ bin/rsense version
Rsense 0.3
$ ruby etc/config.rb > ~/.rsense
$ cat ~/.rsense
$ mkdir -p ~/.vim/plugin
$ cp etc/rsense.vim ~/.vim/plugin

Following are the two lines i added to my vimrc file :

let g:rsenseHome = "/root/opt/"
let g:rsenseUseOmniFunc = 1

Have i missed a thing ? What is that ? Is let g:rsenseHome = "/root/opt/" alright compared to let g:rsenseHome = "$RSENSE_HOME" given here in the manual.

I have used Rsense after reading the Documentation.

RSense 0.3 in the opt directory :

enter image description here

Upvotes: 1

Views: 412

Answers (1)

Chris Pickard
Chris Pickard

Reputation: 147

Definitely don't put things in as root, but moving beyond that, autocompletion is opened with the <C-x><C-u> key combination

To get "as you type" auto completion you will need another plugin like YouCompleteMe

Upvotes: 1

Related Questions