Ctrl + w + H VIM Command

How to use Ctrl + w + H Command in Linux VIM editor?

Explanation


Ctrl + w + H command is used to move the current window to left position in vim editor.

Usage:

Ctrl + w H

Example:

  • Open the 'one.txt' file
    $ vim one.txt
  • Open the file 'two.txt' in the split window
    Enter :split two.txt
  • Open the file 'three.txt' in the split window
    Enter :split three.txt
  • Move the cursor to 'one.txt' file
    Press Ctrl+ww
    Ctrl + w + H vim command
  • Now move the current window to left position
    Press Ctrl+w H
    move window left

Ask Questions

Ask Question