Skip to content

viktorvillalobos/vim-python-pro-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Vim Python Pro Config.

Vim Config for python pro developers

Vim Python Pro Config

Requirements

  • 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

Vim

  1. Install Plug Package Manager

  2. Clone

   git clone https://github.com/viktorvillalobos/vim-python-pro-config.git && cd vim-python-pro-config
  1. If you use VIM
   cp ini.vim ~/.vimrc
  1. Open vim and execute PlugInstall command
   :PlugInstall
  1. 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'

NeoVim

  1. Install Plug Package Manager

  2. Clone

   git clone https://github.com/viktorvillalobos/vim-python-pro-config.git && cd vim-python-pro-config
  1. If you use VIM
   cp ini.vim ~/.config/nvim/
  1. Open vim and execute PlugInstall command
   :PlugInstall
  1. Create your venvs for neovim and replace this lines with your paths

Replace this lines with your envs

    let g:python_host_prog = '/home/viktor/.envs/neovim2/bin/python'
    let g:python3_host_prog = '/home/viktor/.envs/neovim3/bin/python'

Install dependencies in both ENVS

     source venv/bin/activate
     pip install neovim 
     pip install jedi

DevIcons (Optional)

DevIcons (Optional)

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

KeyMaps

Leader

    let mapleader = ','

Buffers

    nmap <F9> :bprev<CR>
    nmap <F10> :bnext<CR>

MRU (Recent Open Documents)

    nmap <C-e> (Control + E)

Find Files CtrlP Plugin

    nmap <C-p> (Control + P)

Troubleshooting

ClipBoard Error

Remember install xclip

Common Solutions

Execute CheckHealt inside NEO VIM

   :CheckHealt

Enjoy!.

[email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published