X VIM Command

How to use X Command in Linux VIM editor?


X stands for Cut
This command is used to cut previous letter from current cursor position. It works similar to the backspace.




Steps to cut text from the file using the vim editor.
  • Open the file test.txt using the command
    $ vim test.txt
  • We can notice the text in the file. The cursor focus on the letter 't'
    Cut (X) Vim
  • Let us remove the previous letter 'u' from the current position.
    Press X
  • The text after the cut operation will be as follows
    Cut (X) Vim Command

Ask Questions

Ask Question