VIM Configuration for Python / Cython / C Development.
Keep calm and use VIM!
- VIM 7.4
- git
- bash 3.2+
You can install it by using CLI just have next command executed:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/srdjanalea/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.
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:
~/.vim/bundle/YouCompleteMe/install.py --clang-completerTo finish command-t module installation do the following:
ruby ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/extconf.rb
cd ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/ && makeThis configuration tends to use standard VIM and installed plugins key bindings, but there are some custom key bindings as well:
# Common key bindings: inoremap jj # Esc alternative inoremap jk # Esc alternative nmap <C-t> # Toggle Command-T search nmap <C-b> # Toggle Command-T buffer search nmap <C-j> # Toggle Co nmap <F8> # Toggle NERDTree buffer nmap <F9> # Jump to the previous buffer nmap <F10> # Jump to the next buffer nmap <leader>q # Delete buffer # Python mode key bindings: let g:pymode_doc_key='K' let g:pymode_breakpoint_key='<leader>b' let g:pymode_run_bind='<F5>' nmap <leader>g :YcmCompleter GoTo<CR> nmap <leader>d :YcmCompleter GoToDefinition<CR>
