Vim Config for python pro developers
- Vim 7.4+ or NeoVim 0.4+
- Xclip for copy to system clipboard (apt install xclip / pacman -S xclip)
- Install The Silver Search (Ack 3-5x more faster)
-
Install Plug Package Manager
-
Clone
git clone https://github.com/viktorvillalobos/vim-python-pro-config.git && cd vim-python-pro-config
- If you use VIM
cp ini.vim ~/.vimrc
- Open vim and execute PlugInstall command
:PlugInstall
- Create your venvs for neovim and replace this lines with your paths
let g:python_host_prog = '/home/viktor/.envs/neovim2/bin/python'
let g:python3_host_prog = '/home/viktor/.envs/neovim3/bin/python'
-
Install Plug Package Manager
-
Clone
git clone https://github.com/viktorvillalobos/vim-python-pro-config.git && cd vim-python-pro-config
- If you use VIM
cp ini.vim ~/.config/nvim/
- Open vim and execute PlugInstall command
:PlugInstall
- Create your venvs for neovim and replace this lines with your paths
let g:python_host_prog = '/home/viktor/.envs/neovim2/bin/python'
let g:python3_host_prog = '/home/viktor/.envs/neovim3/bin/python'
source venv/bin/activate
pip install neovim
pip install jedi
This plugin is used to show file icons in NerdTree and requires additional steps to install:
- Must install a patched font that contains required glyphs:
- Arch Linux
- Everyone Else
- Set vim encoding to UTF-8
set encoding=utf8
- Set vim font to NerdFont
set guifont=<FONT_NAME> <FONT_SIZE>
- Add glyphs to Airline
let g:airline_powerline_fonts = 1
- If you dont want this feature simply remove this plugin from your vimrc and execute :PluginUpdate in vim, for proper removal delete the devicons plugin folder
let mapleader = ','
nmap <F9> :bprev<CR>
nmap <F10> :bnext<CR>
nmap <C-e> (Control + E)
nmap <C-p> (Control + P)
Remember install xclip
Execute CheckHealt inside NEO VIM
:CheckHealt
Enjoy!.