About 8,490,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 …

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

    Apr 15, 2015 · 1 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 …

  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. 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, 9 months ago Modified 4 years, 11 months ago Viewed 34k times

  6. 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?

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

    Dec 15, 2019 · To delete multiple lines in vi, use something like 5dd to delete 5 lines. If you're not using Vim, I would strongly recommend doing so. You can use visual selection, where you …

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

    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 …

  9. 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 …

  10. How can I copy and paste content from one file to another?

    Here's one way to do it; Start Vim and open file1 which is the file you're working on. : e file2 which will bring up file2, the file you want to copy lines from. locate the lines you want to copy. If it's …