https://github.com/ets-labs/python-vimrc
VIM Configuration for Python / Cython / C Development
https://github.com/ets-labs/python-vimrc
cython ide python vim
Last synced: 10 months ago
JSON representation
VIM Configuration for Python / Cython / C Development
- Host: GitHub
- URL: https://github.com/ets-labs/python-vimrc
- Owner: ets-labs
- License: bsd-3-clause
- Created: 2015-07-06T10:53:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T12:37:18.000Z (almost 5 years ago)
- Last Synced: 2025-03-28T05:11:28.062Z (10 months ago)
- Topics: cython, ide, python, vim
- Language: Vim script
- Homepage:
- Size: 311 KB
- Stars: 654
- Watchers: 40
- Forks: 342
- Open Issues: 13
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
=============
PYTHON .VIMRC
=============
VIM Configuration for Python / Cython / C Development.
Keep calm and use VIM!
Requirements
------------
- VIM 7.4
- git
- bash 3.2+
How does it look?
-----------------
.. image:: https://github.com/ets-labs/python-vimrc/wiki/img/screenshot.png
Installation
------------
You can install it by using CLI just have next command executed:
.. code-block:: bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)"
During execution of init script do not worry about error messages. When it
occurs just press enter and wait till all plugins are installed.
Autocompletion
--------------
Current bundle use one of the most comprehensive plugins for autocompletion -
`Valloric/YouCompleteMe `_.
YouCompleteMe autocompletion plugin requires additional installation that
depends on environment and functionality you want to have. Detailed
instructions could be found on plugin page:
`Valloric/YouCompleteMe `_.
**Note:** Installation for Mac OS with support of clang compiler looks like
this:
.. code-block:: bash
~/.vim/bundle/YouCompleteMe/install.py --clang-completer
Key bindings
============
This configuration tends to use standard VIM and installed plugins key
bindings, but there are some custom key bindings as well:
.. code::
# Common key bindings:
inoremap jj # Esc alternative
inoremap jk # Esc alternative
nmap # Jump to the previous buffer
nmap # Jump to the next buffer
nmap q # Delete buffer
nmap " # Toggle NERDTree buffer
# Python mode key bindings:
let g:pymode_doc_key='K'
let g:pymode_breakpoint_key='b'
let g:pymode_run_bind=''
nmap g :YcmCompleter GoTo
nmap d :YcmCompleter GoToDefinition