Enabling Python Autocomplete in VIM on Raspberry Pi

This post shows steps to enable Python autocomplete in vim editor [1] on Raspberry Pi.

In this post, jedi-vim [2] and Vundle.vim [3] will be used for autocomplete plugin and plugin manager respectively. Also, even Raspbian Stretch has vim preinstalled, it’s a minimal version which is called “vim.tiny” and to use the plugin, we need to install another version of vim.


Prerequisites (parentheses indicate my environment)

  • Raspberry Pi board (Raspberry Pi3) running Raspbian Stretch (2019-04-08)


1. Install VIM
As mentioned above, another version of vim than the preinstalled one needs to be installed.

1-1. Update the package list.

1-2. Install vim-nox.


2. Setup VIM
2-1. Clone VundleVim plugin.

2-2. Create a vim configuration file with vim.

2-3. Activate the paste mode by the command below.

2-4. Type “i” to go insert mode. Make sure that the paste mode is on as below.

2-5. Copy and paste the lines from line 1 to line 10 below.
Note: The lines after line 13 is my preferred settings and just for my reference. 

2-6. Exit the insert mode by pressing “Ctrl” + “[“.

2-7. Save the file by typing “:w” and enter.

2-8. Execute the file by the command below.

2-9. Install the plugins by entering the command below.

It will show “Processing” in the status bar. It takes a while.

2-10. When the status bar shows “Done!”, close the file by entering “:q”.


3. Verify Autocomplete


[1] Vim – the ubiquitous text editor
[2] jedi-vim – awesome Python autocompletion with VIM – GitHub
[3] Vundle.vim – GitHub
[4] jedi-vim – Vim Awesome
[5] VIM and Python – A Match Made in Heaven



Sponsor Link

Leave a Reply

Your email address will not be published. Required fields are marked *