Skip to content

Instantly share code, notes, and snippets.

@nhuzaa
Last active December 31, 2020 11:37
Show Gist options
  • Save nhuzaa/d1f73a55225a1071f450f6d98125e3d6 to your computer and use it in GitHub Desktop.
Save nhuzaa/d1f73a55225a1071f450f6d98125e3d6 to your computer and use it in GitHub Desktop.
Vim plugins need not apply
0f=20i<Space><Esc>020lvf=hx
0 goes to first column
f= finds next occurrence of = on current line
20i<Space><Esc> inserts 20 spaces before =
0 goes back to first column
20l forward 20 column
vf=hx deletes everything up to the = sign
class Products(models.Model):
prdname = models.CharField(max_length=100)
prdtype = models.CharField(max_length=20)
desc = models.CharField(max_length=300)
stock = models.IntegerField(default=0)
price = models.IntegerField(default=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment