ge VIM Command

How to use ge Command in Linux VIM editor?


This command is used to move the cursor to the previous word. The cursor will move to the last letter of the previous word. Here we can use numeric prefix to move cursor before multiple words together.




  • Open the file test.txt
    $ vim test.txt
  • You can view that the cursor is focused on the word 'largest'
    ge Vim Command
  • To move the cursor to end of previous word
    Press ge
    Move Cursor to Previous Word Vim
  • To move the cursor backward for multiple words
    Press 3ge
    ge Vim Command Editor

Ask Questions

Ask Question