Vim - How to move the result of a search to the beginning of the file?
search, vim
Solution
How about the simple move command?
:g/^C/m0
:g/^B/m0
:g/^A/m0
Problem
I want to search some text and move the entire line where the text belongs to the beginning of the file. Just that.