Ctrl + w + L VIM Command

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

Explanation


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

Usage:

Ctrl + w L

Example:

  • Open the 'one.txt' file
    $ vim one.txt
  • Open the file 'two.txt' in the split window
    Enter :vsplit two.txt
  • Open the file 'three.txt' in the split window
    Enter :vsplit three.txt
  • Now the cursor is in 'one.txt' file
    move window right
  • Now move the current window 'three.txt' to right position.
    Press Ctrl+w L
    move window right

Ask Questions

Ask Question