Skip to content

Instantly share code, notes, and snippets.

@jqtrde
Created February 18, 2015 05:34
Show Gist options
  • Save jqtrde/b4923816f4e15e891c7d to your computer and use it in GitHub Desktop.
Save jqtrde/b4923816f4e15e891c7d to your computer and use it in GitHub Desktop.
Vim as a Python IDE

Vim as a Python IDE

  • Why?
    • Pre-installed everywhere
    • Use directly in terminal
    • Modal commands
    • Fast
    • Community, and all that comes with that.
  • Basics
    • How to set vim's defaults sanely for python development. Don't fight the features, use them.
    • tabstop, softtabstop, shiftwidth, autoindent
    • colorcolumn
    • python-syntax
  • Remapping keys
    • Things that you do frequently should be easy to do.
    • leader
    • capslock
  • Plugin management
    • Smarter people than you have solved your problems. Use their solutions.
    • vundle
  • Working with text and files
    • Cover basic movement patterns common to vim. TLDR, your mouse is slower than arrow keys, which are slower than hjkl, which you can improve on with plugins.
    • vim-commentary
    • vim-easymotion
    • vim-move
    • nerdtree
    • vim-vinegar
    • vim-fugitive
    • gundo
  • Syntax checking, linting, testing
    • If it's hard to verify correct syntax, you won't do it. Automate.
    • syntastic
    • vim-flake8
    • pytest.vim
    • pydoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment