Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pro tip: after you paste code, it might not be indented correctly in the new context. You can select just pasted lines and autoindent them with V`]=. This should fix the indentation in most cases.

A better alternative: issue the ":set paste" command just before pasting text. That way you keep the original indentation.



You can also use a "]" before the "p" (i.e., "]p") to make a new paste follow the existing indentation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: