Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

vi commands

Yucky Yacare answered on July 29, 2022 Popularity 10/10 Helpfulness 4/10

Contents


More Related Answers

  • linux install vi
  • bash vi mode
  • how to enter vim command mode
  • vim run shell command
  • vi replace
  • VIM Macros Commands
  • vi quit
  • vi editor
  • vite command
  • linux vi
  • viu linux
  • what is vi in linux
  • VIM Registers Commands
  • terminal open vim
  • vim define command
  • VIM Editing Commands
  • bash vi exit
  • how edit the vi editor page and commands
  • basic vim commands
  • How do you enter Command Mode in Vi?
  • combine vim commands in command mode
  • vi copy
  • vim beginning of line
  • show commands in vim
  • Global VIM Commands
  • VIM Insert Commands
  • VIM Visual Commands
  • VIM Exiting Commands

  • vi commands

    3

    $ vi — Open or edit a file.

    i — Switch to Insert mode.

    Esc — Switch to Command mode.

    :w — Save and continue editing.

    :wq or ZZ — Save and quit/exit vi.

    :q! — Quit vi and do not save changes.

    yy — Yank (copy) a line of text.

    p — Paste a line of yanked text below the current line.

    o — Open a new line under the current line.

    O — Open a new line above the current line.

    A — Append to the end of the line.

    a — Append after the cursor’s current position.

    I — Insert text at the beginning of the current line.

    b — Go to the beginning of the word.

    e — Go to the end of the word.

    x — Delete a single character.

    dd — Delete an entire line.

    Xdd — Delete X number of lines.

    Xyy — Yank X number of lines.

    G — Go to the last line in a file.

    XG — Go to line X in a file.

    gg — Go to the first line in a file.

    :num — Display the current line’s line number.

    h — Move left one character.

    j — Move down one line.

    k — Move up one line.

    l — Move right one character. 

    Popularity 10/10 Helpfulness 4/10 Language shell
    Source: Grepper
    Tags: shell vi
    Link to this answer
    Share Copy Link
    Contributed on Mar 28 2023
    Yucky Yacare
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    2
    Popularity 10/10 Helpfulness 2/10 Language shell
    Tags: command
    Link to this answer
    Share Copy Link
    Contributed on Jul 29 2022
    big-mac-overflow
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.