Useful Notes and Links

Reynier Cruz-Torres, PhD

Splitting the screen with vim

Back to table of Contents

  1. Open the first file: vim file1.txt
  2. type: :vsplit
  3. press: ctrl + w and then press the right arrow to move to the screen on the right
  4. type: :e path/to/file2.txt to open a new file ‘file2.txt’
  5. press: ctrl + w and then press the left arrow to move back to the first screen
  6. when done just do :wq from either screen to close it