Search code examples
vim

how to unindent in vim without leaving edit mode?


I'm writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block. Normally I can just type << to unindent, but it takes too many keystorkes, anyone have a better idea?


Solution

  • Type Ctrl-D on your keyboard, removes one tabstop at a time, works for space-replaced tabs.