Using RopeVim you can achieve this very easily.
- Install python-vim and mercurial with your package manager. In ubuntu, you would type this:
sudo apt-get install python-vim mercurial
- Download Alexander Artemenko’s easy installer script. Save it from the web, or copy+paste the contents into a new file.
- Navigate to the directory you saved the script to (in the command line… use the
cd
command to change directory), and run this command:
chmod +x name_of_script.sh
Replacing “name_of_script.sh” with the name of the script. - Run the script by typing:
./name_of_script.sh
- At the end, you should be given a line to add to .vimrc, your Vim settings file. So, open it up with:
gedit ~/.vimrc
and paste the line in. If the file doesn’t exist already, create it. - Open a python source file in Vim or gVim and open up insert mode (hit I). Press alt+/ to use the code completion! You will have to set a project directory before this will work, so if in doubt just press enter when prompted.
There you have it! Rope has lots more features, so be sure to read the readme. Thanks to Alexander Artemenko for the easy-to-use script.
Pingback: Anonymous
code assist is for pussies. so is python. real men use assembly.
No, real men only need a soldering gun and a steady hand.
Ha! All you need is a granite cliff of cave, a chisel and a hammer. Electricity if for wimps…