It is very inconvenient when the line I'm editing is at the bottom of the screen . Because you can't see any following lines and that prevent you from take any "eye refernce" to the content of the file following the current line .
so my question is there a vim command can refresh the display and put the current line under edit to on the top of the screen ? thanks in advance.
Mappings to move lines In normal mode or in insert mode, press Alt-j to move the current line down, or press Alt-k to move the current line up.
Type "gg" in command mode. This brings the cursor to the first line.
Press the Return key to move the cursor to the beginning of the next line down.
Ctrl+f will search within the file ctrl+shift+f will search in all the files in the folder tree.
See this reference.
z<return>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With