first VIM Command

How to use first Command in Linux VIM editor?


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




  • Open the files 'one.txt', 'two.txt', 'three.txt' and 'four.txt'
    $ vim one.txt two.txt three.txt four.txt
  • Vim displays the first file, 'one.txt'.
  • Move the control to last file, 'four.txt' using the command
    Enter :last
    first vim command
  • Move the control back to first file, 'one.txt' using the command
    Enter :first
    Move Control to the First File Vim

Ask Questions

Ask Question