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 Learning 5 Vi,vim

placeD Remove the anti-white placeMulti-file editingOpen multiple FilesVim filename1 filename2 Filename3 ...: N Edit Next file: N Edit Previous file: Files lists all files that are currently being opened by vim Multi-window editing: SP filename opens a new window that, if added with filename, indicates that a new file is opened in a new window, otherwise two windows are the same file content.Crtl+w+j Press CRTL+W, and then press J, move to the lower

VI and VIM command Daquan

Since 1970, VI and Vim have become one of the programmers ' favorite text editors. It was copied from other bloggers and it was very practical.Basis : E filename Open filename for edition : W Save file : Q Exit Vim : q! Quit without saving : X Write file (if chang

Daily Liunx command, VI and VIM usage

Although today is National day, but study can not stop, today is learning is liunx, more important 2 editor, VI and Vim, perhaps someone asked why to learn these 2? There is no easy-to-use Nano.Mainly because there are some other liunx version, there is no built-in Nano, this if you suddenly touch can not start quickly, and VI is each LIUNX version is built-in, a

Linux under VI or VIM operation found a swap file by the name causes and solutions

e325:attention file "******** " ******* Press ENTER or type command to continueThe reason is that in the VI or VIM operation before the use of VI or VIM operation of the file with an abnormal interruption, so in the current directory produced a. ****.swp file, this file using the LS command to view can not be

VI, VIM configuration up and down ARROW keys and delete keys

VI, VIM configuration up and down ARROW keys and delete keys1 "An example for a VIMRC file.2 "3 "maintainer:bram Moolenaar 4 "Last change:2002 Sep5 "6 "to use it, copy it to7 "For Unix and OS/2: ~/.VIMRC8 "For AMIGA:S:.VIMRC9 "For MS-dos and Win32: $VIM \_VIMRCTen "For OPENVMS:SYS$LOGIN:.VIMRC One A "When started as"Evim", Evim.vim would already has done these s

Java Classes and Objects (vi)------The difference between an instance variable and a class variable, the difference between an instance method and a class method

); System.out.println ("Tixing's" is: "+Tixing.down); }}Instance methods and class methods access to instance variables and class variablesAn instance method can manipulate instance variables of the current object, or it can manipulate class variables. An instance method is called by an instance object.Class methods cannot access instance variables, only class variables. A class method is called by a class name or an instance object. The this or Super keyword cannot appear in a class methodclass

Vi/vim Find Replacement Use method

You can use the: s command to replace a string in http://wzgyantai.blogbus.com/logs/28117977.html Vi/vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query.: s/vivian/sky/replaces the current line the first Vivian is sky: S/vivian/sky/g replaces the current line all Vivian are sky: N, $s/vivian/sky/replace

Vi/vim use

*******************************************************************1) Import the contents of other files: R/test/service.bak2) Execute the command directly in VI! Command!ls-l/test3) Import the results of a command execution directly into the edit file: R!date4) vi define shortcut keys: Map ^p i#: Map ^e [email protected]: Map ^b 0x minus # comments5) Continuous Line annotation: n1,n2s/^/#/g (^ represents t

Vi/vim command Explanation

position. Over here? Can be a letter, or it can be a numberndd# deletes the current line and its total n lines of text, and places the deleted content in the 1th delete register.Option settingsset number# Show Line Numbersset number!# No Line numbers are displayed, other options are added equally! No.set all# List all option settingsset term# set Terminal typeset ignorance# Ignore case in Searchset list# Display tab stop (CTRL+I) and Line end flag ($)set report# shows the number modified by the

Vi/vim Find Replacement Use method

You can use the: s command to replace a string in Vi/vim.The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query. : s/vivian/sky/replaces the current line the first Vivian is Sky: S/vivian/sky/g replaces the current line all Vivian are Sky: N, $s/vivian/sky/replaces the first Vivian of each row in the nth row to the last row is Sky: N, $s/vivian/sky/g repl

Common Vi/vim Commands

Vi/vim commands are complex and powerful, and here are some of the more common commands that can be used to meet general needs.To move the cursor:-Shift Left: H-Move Down: J-Move up: K-Shift Right: l-page Flip: Ctrl F, CTRL bInsert:-Insert at cursor position: I-Insert at end of line: a-Insert a new line on the next line: OEdit:-undo Modification: U-Replace the character where the cursor is located: rDelete:

VI Vim Bracket Auto indent settings and explanations

cursor to the left one characterAnd then what is IMAP mean, IMAP means the mapping operation in the Insert mode, the mapping rules of the above settings only work in the input mode, there is no such mapping rule in other modes there will be no substitution of this input, map has several mapping modes, want to set a pattern mapping rules , you can use the mapping command in this mode, such as command mode CMAP, Normal mode nmap, about the map mode can refer to this blog http://haoxiang.org/2011/

Linux Learning Notes 13--vi and VIM editor

Vi:visual Interface Visual InterfaceVIM:VI improved: Enhanced version VI recommended use!!!Full screen editor, modal editorVim mode: In different modes, the meaning of the knocked-down thing is not the same.Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current cursor, switch to input mode;A: After the character of the current cursor, switch to input mode;O: At the bottom of the current

Vi/vim Command Review and practice

=============================================================================VI/VIM Command Review and Practice:---------------------------------------The Command mode yy copies the contents of the line where the cursor is located 4yy the copy cursor is located on the line starting with the 4 line of content p paste dd Delete/cut the contents of the line where the cursor is located 2DD Delete/The cut curso

Vi/vim annotation Font color settings __vi

The font color that is commented out in VI defaults to blue and cannot be seen clearly, you can change the color configuration by setting the. vimrc file in the user's root directory. Use the Hi command to modify the color of the annotation, using the method: Set keyword Blue not bold: Hi Identifier ctermfg =blue cterm=none (bold is set to bold) 1, vi ~/.VIMRC Add the following content: Hi Comment

Vi/vim Paste Code Auto indent cause it's all messed up

Use VIM to open a blank document, and then paste the copied code into it, found that it has automatic indentation function, resulting in the pasted text line is more than one line on the right, looks mess. The quicker solution is to enter the document in command-line mode before pasting it : Set Noai Nosi then press ' I ' to enter edit mode, and then paste the copied code content so that it does not automatically indent. Sometimes, such

Linux VI (VIM) Common command Summary

cursor to the last modification line ' This command is quite powerful, it moves the cursor to the last modification point3 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

Vi/vim Common Commands

1,move command : M 13 Move the line where the current cursor is located after 13 rows : M 0 Drop the line where the current cursor is located before the first line : M $ Drop the line where the current label is located after the last row : 5,7 m 15 Move line 5,6,7 after line 15 : 5,7 m 0 Move line 5,6,7 to the front of the first line : 5,7 M $ Move Line 5,6,7 after the last l

How to get out of the VIM editor in Linux system and the difference

In the Linux family, the Vim editor is the system's own text editor, which is powerful and self-contained.I have small white, just contact with Linux, to modify a text file, it is not possible to operate like windows, and, worse, into the VI editor, can not exit so that the strong draw off the machine, it is not allowed to AH.In fact, this vim (

The difference between touch and mkdir and VI in Linux

Touch: Create a blank documentmkdir: Create a directoryVI: As with touch, it's all about creating a blank documentFor a chestnut: touch w; Create a blank document W; file W to view the properties of the document W, which shows empty, which is really a blank documentmkdir W2; Create a W2 folder at this time, file W2 can view the properties of the folder W2, at this time, the real directory, it is true that a folder was builtVI e3; Create a W3 blank document at this time; file W3 can view the prop

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.