In most cases, when I copy or delete some code in Vim, use yy or dd , I also got spaces in the indent. Is there a quick command so that I can pull out a string without leading or trailing spaces?
yy
dd
I am not a magician, but:
^v$gey
works for me. You can always make an alias.
EDIT: here's the best that doesn't depend on the visual mode.
^yg_
There is another way to solve your alleged problem. After you select lines in the buffer, you can insert them using the appropriate indentation using ]p or ]p . These insert commands automatically adjust the indentation of the nested line (s) to match the indentation of the line where the cursor is.
]p
Source: https://habr.com/ru/post/886991/More articles:WPF controls, such as the favorites panel - visual-studioC # `yield return` creates a lot of garbage for me. Can this help? - garbage-collectionFind the Hardy-Ramanujan number using the R5RS circuit. Please suggest improvements in idiom and calculations. - schemeCan I safely delete .BAK files from mysql database? - fileCombining the ordered list - javaR Plyr - Order Results from DDPLY? - rC ++: intentionally restricting CPU usage - c ++java.sql.Timestamp way to store NanoSeconds - javaSql server performance and field order - sql-serverbackbone.js - controller properties from view - javascriptAll Articles