I just started playing vimgolf and saw a solution that used this command to select a line and copy it to the line specified. I searched google and vim's documentation and couldn't find anything about what this command is. I was only able to find :m
which would move lines but this one seems to copy lines and paste them. What does the 't' stand for, is it still "til" because that doesn't make sense to me?
0
-
See this answer, from not so long ago: vi.stackexchange.com/a/12206/5395 – grodzik Apr 24 '17 at 16:15
1
You probably just needed to include the colon in your help search. It's in there.
:[range]co[py] {address} *:co* *:copy* Copy the lines given by [range] to below the line given by {address}. *:t* :t Synonym for copy.
As to why it's a synonym for copy, it doesn't say. There may be a history reason but I don't know it.
See :help :t
.
-
-
Well... it looks like I need to learn how to use vim help because that was exactly what I was looking for I just didn't know how to get there. I was looking under the help for cmdline. – Kasper-34 Apr 24 '17 at 16:45