About 8,240,000 results
Open links in new tab
  1. vi - How do I exit Vim? - Stack Overflow

    May 24, 2017 · Vi is a finite state machine with three main states. It starts in COMMAND mode, where you perform editor functions using very short keystroke sequences, blindly.

  2. How can I delete multiple lines in vi? - Stack Overflow

    Apr 10, 2013 · I have tried to follow the following: How to delete selected text in VI editor but 5dd gives E492: Not an editor command: 5dd I then tried: 5d Which only deletes a single line. How can I del...

  3. bash - copy and paste in vi - Stack Overflow

    Apr 15, 2015 · 2 After trying everything suggested here and in other answers including trying to format the file afterwards with vi (m) commands and seds, I got smart and just heredoc'd what I wanted to …

  4. How can I use vi command in shell script? - Stack Overflow

    Jun 2, 2016 · I am using CentOS 6.7 I want open test.txt by vi and insert text "hihi" then save and quit from vi.

  5. Is there a short cut for going back to the beginning of a file by vi ...

    Feb 6, 2013 · After opening a file using vi 1) You can press Shift + g to go the end of the file and 2) Press g twice to go to the beginning of the file NOTE : - g is case-sensitive (Thanks to @Ben for …

  6. Running vi within a bash script and executing vi commands to edit ...

    Running vi within a bash script and executing vi commands to edit another file Asked 11 years, 10 months ago Modified 4 years, 11 months ago Viewed 34k times

  7. vim - Copy all the lines to clipboard - Stack Overflow

    Oct 25, 2009 · Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not using clipboard to store those lines. So is it possible?

  8. What are the most-used vim commands/keypresses?

    Here's a tip sheet I wrote up once, with the commands I actually use regularly: References vim documentation online advanced vim tips more useful tips and graphical cheat sheet General Nearly …

  9. How to delete selected text in the vi editor - Stack Overflow

    Dec 15, 2019 · So, vi has no idea that you just selected some text. (There are exceptions to this, but in general mouse actions aren't transmitted.) To delete multiple lines in vi, use something like 5dd to …

  10. vi - How do I use vim registers? - Stack Overflow

    Sep 30, 2009 · Registers in Vim let you run actions or commands on text stored within them. To access a register, you type "a before a command, where a is the name of a register. If you want to copy the …