![]() z + b to move the current line I’m on to the bottom of the screen.z + t to move the current line I’m on to the top of the screen.z + z to move the current line I’m on to the center of the screen.ctrl + e to move the screen down one line.ctrl + y to move the screen up one line.As long as my cursor does not go off-screen, I can remember my current spot while reading through the file. When I’m writing code and want to understand related functions, I tend to use other commands to keep my cursor in place. The above commands can move the screen so that I can read my entire file, but they also alter my cursor location. 2k to move 2 lines upĪs an engineer, I use the above commands when I’m reading through code and don’t care about cursor placement.Similar to how you navigated to specific rows, we can leverage this command to move up and down multiple rows. To move up and down a single row instead of a whole page: ctrl + f to move a page screen front or “down”.ctrl + b to move a page screen back or “up”.The following commands will move the page up and down based on the current screen size. Page up and downĪ page is considered to be the screen size of your terminal. To start, make sure that you are not in Insert mode and that you are in Normal mode by pressing ESC. Paging up and down with keyboard shortcuts is one of the most efficient and flexible ways to hop around. While the most intuitive way to navigate around the terminal may be scrolling and using the arrow keys, Vim offers multiple shortcuts to move around the screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |