difference between vi and vim

Alibabacloud.com offers a wide variety of articles about difference between vi and vim, easily find your difference between vi and vim information here online.

Linux common commands (1-VI/VIM)

Vi/vim Text EditorGeneral mode:DD: Delete cursor when moving forwardDND: Delete n rowsU: Undo Step Up actionYY: Copy when moving forwardP: Pastex: Delete a letterDW: Delete a wordYW: Copy a wordshift+^: Moving to the Wardrobeshift+$: Move to Row bitShift+g: Moving to the end of the leafN+shift+g: Move to Target row: W (Save): Q (Exit):! (Forced exit): S%/old character/new character (bulk substitution)/words

VI or Vim file encryption and garbled Processing

When you use VI or Vim to edit a file, you should use WQ or X to exit when saving the disk, but sometimes you may accidentally press X,At this time, the system will prompt:Enter encryption key: If you have not carefully read the prompt, for example, continue to input: X,Enter encryption key :*Enter same key again :* In fact, this file is encrypted. You will be asked to enter the key next time you open the f

Vi/vim How to use the guide

Vi/vim Basic Use MethodThe VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions. Because the VI editor is exactly the same for any version of UNIX and Linux sy

How to use Linux Vi/vim

Vi/vim Basic Use MethodThe VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions.1, VI of the basic conceptBasically, vi

Vim command Daquan/VI command Daquan

The VIM command, as the most used text editor in Linux, is very powerful and contains various commands for manipulating text. This article collects the most commonly used VIM commands in Linux Systems/VI command Daquan. vim Command Daquan cursor control commands:Command cursor movementH move one character to the left

Vi/vim Common operations

to insert a new line from the next line where the current cursor is located, O to insert a new row from the previous line where the current cursor is locatedR, r: into insert mode, R replaces only the character of the cursor at a time, and R will always replace the text of the cursor until the [ESC] key is pressedThree, general mode switch to command-line mode available button description: W: Writes the edited data to the hard disk file: w! : Forces the file to be written if the file property i

How to insert the specified string at the beginning or end of each line in Vi/vim

Header:%s/^/your_word/End of Line:%s/$/your_word/Key operation:Note: Ctrl + V enters column edit mode, moves the cursor down or up, marks the beginning of the line that needs comment, then presses the uppercase I, then inserts the comment, such as "#", and then presses ESC, which is all commented.Delete: Press v First, enter visual mode, select the number of columns in the landscape (such as "#" comment symbol, need to select two columns), then press ESC, then press CTRL + V to enter the column

Vi/vim Keyboard Diagram-----Another desktop background good picture

Maybe there are a lot of people who are not willing to use the CLI vi/vim to write things, but when you really get used to it, its efficiency is immeasurable. The following picture, a look to understand, from now on, learning becomes no longer difficult ^_^Fill in the note:There is no search and replace in the figure, which should be used below.Top-down lookup operations /word lowercase N a

Find a string on VI or VIM

Tags: mode file Sea Arc Arch Capital Move State shiftSearch from the beginningIn command mode, enter/the character you want to findPress ENTER to see VIM move the cursor to that characterThen press N (lowercase) to see the next matchPress N (uppercase) to view the previous match,CapsLock Toggle case, or you can press Shift+n in lowercaseSearch at the end? String or character to search forSearch, open other files found also highlighted, how to closeIn

Vi/vim copy-paste command

Capital P represents the front of the cursor (top)A copy of the entire row is pasted on the cursor (bottom) row, and the non-full row copy is pasted before (after)Note:In a regular expression, ^ represents the starting position of the matching string, and $ represents the end position of the matched string.A command preceded by a number indicating the number of repetitions, plus a letter indicating the name of the buffer used. Use the English period "." You can repeat the previous command.While

Linux VI (VIM) Common command Summary

modification line ' This command is quite powerful, it moves the cursor to the last modification point 3 Copy, delete and pasteIn vi, y means copy, d means delete, p means paste where copy and delete are combined with the cursor Movement command, see a few examples to understand the YW represents the copy from the current cursor to the end of the word at the cursor the DW represents the deletion of the content from the current cursor to the end

VI & VIM Copy, paste, cut text

I often use VI editor, but basically still the habit of windows, no system to learn its function, today encountered a copy of the text there is no way to see the solution as follows:Reference text:--------------------------------------------------------------------------------------------------------------- ---Often self-reflection, sensitive thinkersYou can control yourself and the surrounding environment better and more thoroughly than the average p

Linux VI, VIM command Daquan

the N2 line to find Word1, and replace word2:%s/word1/word2/g The entire article looks for word1 and replaces it with WORD2:W Save the edited data to a hard disk file: w [filename] saves the edited data to another file on the hard disk: R [FileName] when you edit the data, it is read into another file. Data, add the contents of the filename file to the line next to the cursor: WQ or: X Save and exit: Q Exit, applies to unmodified files: q! Force quit,

Create files and write content directly in the terminal, without the VI, vim and other editors to complete

[[email protected] ~]# Touch pmfiles Create this file[email protected] ~]# cat pmfiles> ABC> 123> 321> NBA> CBA> WBA> TBH> EOF[[email protected] ~]# cat Pmfiles ViewAbc123321NbaCbaWBATBHThis article is from "How long, how long to learn." "Blog, be sure to keep this provenance http://tonytu.blog.51cto.com/3696621/1677723Create files and write content directly in the terminal, without the VI, vim and other e

2.vi and Vim Editor

A text editor under the command line of the Linux systemThree different modesGeneral mode: Opens the default mode for a documentEdit modecan be edited to enter edit mode from normal mode by pressing I-O-R lettersPress ESC to exit edit modeCommand modeYou can save, exit, display line numbers, search, batch replace, etc.To enter in general mode: or/or? Access to command line modeSwitching relationships between three modes  2.vi and

Vi,vim Common editing commands

cursor and presses ESC to endU Undo Previous ActionCtrl+r Redo the previous undo operation6. Search and search for replacement commands/string search ignores case when searching for a specified string: Set ICn searches for the next occurrence of the specified string:%s/old/new/g full text Replace specified string: N1,n2s/old/new/g replaces specified string within a certain range7. Save and Exit commands: W Save changes: W new_filename Save as specified file: Wq Save changes and exitZZ shortcut

Use of the Vi/vim editor

the wordDD//delete cursor in the rowNDD//Delete the row below the line nD1G//Delete all data from the row of the cursor to the first row.DG//Delete all data from the line to the last row of the cursor.YW//Copy the wordyy//Copy all data from the line where the cursor is locatednyy//the next n rows where the cursor is copied, n is the numberY1G//Copy the cursor line to the first row of all data.YG//Copy the cursor line to the last row of all data.P//Paste the copied data to the following lineP//P

VIM/VI editing tools for multi-line comments and uncomment

Tags: multi-line Comment cancel multiline comment LinuxSystem: LinuxMulti-line Comments: Go to command line mode-- Move the cursor to the first line where you want to comment- Press CTRL + V to enter Visual block mode-- Press the letter J, or K (or move the key up or down) to select the line that needs to be commented-- Press the capital letter I to enter insert mode-- Enter a comment symbol, such as # # (you need to add a few columns to enter a few)-- Press the ESC key t

Spark's way of cultivation (basic)--linux Big Data Development Basics: Fifth: VI, VIM editor (i)

The main contents of this section Three modes of the VIM editor Move cursor Input mode Modify text Zhou Zhihu L.Number: ZhouzhihubeyondNET Name: Rocking Teen Dream1. Three modes of the VI editorLearning to use the VI editor is one of the most essential techniques to learn Linux systems, because Linux servers are not GUI-based, and Linux

Linux Text editor Vim/vi detailed introduction

II: Text Editor Vim/vi (Wake up call Vi late upgrade vim) Vim/vi is a powerful full-screen text editor, the most commonly used text editor on Linux/unix, which is to create, edit, and display text files.

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.