Small and nifty Vim Plugins useful in Python / Django

Introducing a Plugin that solves a few problems when coding Python in Vim.

Plugin with IDE-level features such as python-mode, jedi-vim Is nice, but the Plugin that can reach the itchy place is also good.

python_match.vim A plugin that enhances% (matchit) for python.

You will be able to move between keywords such as if / else / else, for / continue / break, try / except / else / finally, while / continue / break with%. It doesn't seem to support for / else at the moment.

django-template-textobjects

Personally, this is the most Life Changing Plugin I'll introduce this time. Makes Django Template's built-in tags correspond to text-objects. I don't use the essential text-objects so much, but it works with matchit.vim to matchit between blocks / endblocks. I'm happy to be. It didn't seem to support the elif tags added since Django 1.4 so far, so I tried [pullreq](https://github.com/mjbrownie/django-template-textobjects/pull/ 2). It depends on textobj-user, so let's include it as well.

indentpython.vim It is a Plugin that makes the indentation PEP8 compliant. When used in combination with autopep8, there will be no cases of receiving fine tsukkomi around the indent.

Other

Other small Plugins include django.vim, python-syntax. ), Python-indent was also included, but with the latest Vim 7.4, there is no problem even if it is not included, or it conflicts with other Plugins. I stopped using it because I was doing it. Regular reviews are important. ..

Summary

matchit important. Also, the small Plugin is easy to contribute a little if vim-script and English are somehow understood.

Recommended Posts

Small and nifty Vim Plugins useful in Python / Django
Install Python 3.7 and Django 3.0 (CentOS)
Stack and Queue in Python
Unittest and CI in Python
I got an error in vim and zsh in Python 3.7 series
MIDI packages in Python midi and pretty_midi
Difference between list () and [] in Python
Difference between == and is in python
View photos in Python and html
Sorting algorithm and implementation in Python
Automatically format Python code in Vim
About dtypes in Python and Cython
Assignments and changes in Python objects
Check and move directories in Python
Ciphertext in Python: IND-CCA2 and RSA-OAEP
Hashing data in R and Python
Function synthesis and application in Python
Export and output files in Python
Reverse Hiragana and Katakana in Python2.7
Reading and writing text in Python
[GUI in Python] PyQt5-Menu and Toolbar-
Create and read messagepacks in Python
Overlapping regular expressions in Python and Java
Differences in authenticity between Python and JavaScript
Notes using cChardet and python3-chardet in Python 3.3.1.
Modules and packages in Python are "namespaces"
Avoid nested loops in PHP and Python
Differences between Ruby and Python in scope
AM modulation and demodulation in Python Part 2
Eigenvalues and eigenvectors: Linear algebra in Python <7>
Implementation module "deque" in queue and Python
Implement FIR filters in Python and C
Differences in syntax between Python and Java
Check and receive Serial port in Python (Port check)
Search and play YouTube videos in Python
Difference between @classmethod and @staticmethod in Python
Difference between append and + = in Python list
Difference between nonlocal and global in Python
Write O_SYNC file in C and Python
CentOS 6.4 with Python 2.7.3 with Apache with mod_wsgi and Django
Read and write JSON files in Python
Easily graph data in shell and Python
Private methods and fields in python [encryption]
Linear Independence and Basis: Linear Algebra in Python <6>
Call sudo in Python and autofill password
Write a simple Vim Plugin in Python 3
Tips for making small tools in python
Differences in multithreading between Python and Jython
Module import and exception handling in python
How to use is and == in Python
Project Euler # 1 "Multiples of 3 and 5" in Python
Create a Python image in Django without a dummy image file and test the image upload
Create a Django project and application in a Python virtual environment and start the server
Organize python modules and packages in a mess
What is "functional programming" and "object-oriented" in Python?
How to generate permutations in Python and C ++
[Vim] [Python] Bugs around jedi-vim and multibyte characters?
File DL, byte value and delete in Python3
Python variables and data types learned in chemoinformatics
Import-linter was useful for layered architecture in Python
Python numpy ignores very small values ​​and displays