Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to go back to the "smart-indent" in vim from the start of a line

Tags:

vim

When I press o or O it indents to the necessary level since I have smartindent on. However, what happens when I'm at the start of a line and want to go to where the 'smartindent' for that line would be. Is there a way to do that? Here is an example video of what I'm trying to do:

https://gyazo.com/da4351def5a0af93df5f7fff0d462adb

I suppose dd ShiftO is the best way I have thought up so far.

like image 234
David542 Avatar asked Sep 16 '25 05:09

David542


1 Answers

the most simple thing you can do is press S, it works just like pressing cc

like image 148
Chelz Avatar answered Sep 17 '25 20:09

Chelz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!