vim-cpyvke is a vim plugin that provides a kind of integration of IPython and cpyvke (www.github.com/ipselium/cpyvke) to vim. This plugin is a minimal version of Paul Ivanov's vim-ipython plugin :
vim-cpyvke provides tools to evaluate blocks of code or full scripts directly from vim. The duo cpyvke/vim-cpyvke paired with a vim plugin such as python-mode (www.github.com/klen/python-mode) can provide a complete development environment for Python in console.
Install vim-cpyvke with vundle. Add
Plugin 'ipselium/vim-cpyvke'
to your vimrc, then
:BundleInstall
First, start cpyvke, then open a Python script with vim. Following shortcuts are now available in vim:
C-c c
: Autoconnect to same kernel as cpyvkeF5
: Run the current bufferF9
: Run the current lineF10
: Run the selected lines (in visual mode)
- cpyvke : www.github.com/ipselium/cpyvke
- Ipython >= 5.1
- ipykernel (tested with 4.6.1)
- jupyter_client >= 4.4