Ctrl + w + K VIM Command

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

Explanation


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

Usage:

Ctrl + w K

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
    move window top
  • Now move the current window to top position
    Press Ctrl + W + K
    move window top

Ask Questions

Ask Question