Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I move my cursor to the bottom line displayed in the current window?

Tags:

vim

I've been flipping thru the help files and can't seem to find any command that would let me easily move my cursor position to the last line displayed on screen. The closest thing I can think of is the zX commands (zb, zt) but those move the window, not the cursor position.

Any ideas?

like image 918
dsummersl Avatar asked Feb 29 '12 15:02

dsummersl


People also ask

How do I move my cursor to a specific line?

Jump to a specific line number ↩Press Ctrl+G, or select Goto > Goto Line, to open the Goto Line palette. Type in the number to which you want to jump. Press Enter, & your cursor will now be on that line.

What is the command to move the cursor to the end of the current line?

Press e (“end”) to move the cursor to the last character of the current word.

How do you move the cursor to the end of the line in vi?

In short press the Esc key and then press Shift + G to move cursor to end of file in vi or vim text editor under Linux and Unix-like systems.

How do I get to the top of the page in vim?

Type "gg" in command mode. This brings the cursor to the first line.


1 Answers

You can use the Shift+L to go to the bottom of window.

Actually, there are a group of commands:

  • Shift+H ==> goto Head of window
  • Shift+M ==> goto Middle of window
  • Shift+L ==> goto Last of window
like image 105
kev Avatar answered Nov 16 '22 00:11

kev