vim version should be higher than 7.3. These customizations are based on these tips.
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
-
Install YouCompleteMe with Vundle.
-
Install development tools and CMake:
apt-get install build-essential cmake
- Make sure you have Python headers installed:
apt-get install python-dev python3-dev
- (Optional) Compiling YCM with semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
- (Optional) Set code completion to be compatible with virtualenv
To set the interpreter to python2, install
vim.nox-py2
:
aptitude install vim-nox-py2
,
run update-alternatives
to activate it:
update-alternatives --config vim
and select the number corresponding to vim.nox-py2
.
- https://askubuntu.com/questions/284957/vi-getting-multiple-sorry-the-command-is-not-available-in-this-version-af/750768#750768
- https://www.raditha.com/blog/archives/mint-upgrade/
- https://stackoverflow.com/questions/6357361/alternative-to-execfile-in-python-3/6357418#6357418
Run the following:
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.local/share/fonts
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
mkdir -p ~/.config/fontconfig/conf.d
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
And then restart the terminal.
pip install flake8
- Set .tmux.conf:
set -g default-terminal "screen-256color"
- And run tmux as (or maybe set an alias):
TERM=xterm-256color tmux
-
Install vim
-
Install requirements
-
Clone this repository
-
Symlink
~/.vimrc
tovim4py/.vimrc
:
ln -s vim4py/.vimrc ~/.vimrc
- Install plugins
vim +PluginInstall +qall
- Add other useful plugins such as smart parentheses/brackets
- Add PyUnit plugin