previous VIM Command

How to use previous Command in Linux VIM editor?


previous command is used to move the control to the previous file.




  • Open the files 'one.txt' and 'two.txt'
    $ vim one.txt two.txt
  • Vim displays the first file, 'one.txt'.
  • Move to the next file using the command
    Enter :next
    previous vim command
  • Move the control back to previous file using the command
    Enter :previous
    Move Control to the Previous File Vim

Ask Questions

Ask Question