Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mcnemesis/5c90786f5ecd68087bac to your computer and use it in GitHub Desktop.
Save mcnemesis/5c90786f5ecd68087bac to your computer and use it in GitHub Desktop.
- ensure to have the `~/.vim/plugin` directory
- clone the vim-autopep8 plugin git repo into your .vim:
git clone https://github.com/tell-k/vim-autopep8.git
- symlink the plugin file into your vim plugins directory
ln -s $(realpath -f vim-autopep8/ftplugin/python_autopep8.vim) plugin
- open your python file using vim
- add/edit code
- then press the <F8> key to have your code auto-formatted to comply with supported PEP8 guidelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment