Text editor, word processor
Ascii
Nano, SED
Vi:visual Interface
Vim:vi improved
Full screen editor, patterned editor
Vim mode:
Edit mode (Command mode)
Input mode
Last line mode
------------------------------Mode conversion:
Edit--> Input:
one or one-like mode: Delete, copy and paste Class command
X,x x to delete one character backwards, X to delete a character previously
NX (n represents number) Delete n characters backwards
DD Delete when forward
D Delete all characters in the
The method is simple enough to add the following code to the _VIMRC:""""""""""""""""""""""""""""""Solve the Chinese garbled problem under windows
The code is as follows
Copy Code
"""""""""""""""""""""""""""""Set Encoding=
Vim combines regular expressions to achieve complex functions, such asCommon find substitution%s/matching strings/replacement strings in vim/gIf you want to match only the number of strings:%s/string/&/gnN, which represents only the number of
The scripting language is really strong.
My goal is to add my default dock function to Vim.
/****************************************************************************** * Copyright NOTICE * Copyright (c) 2014 All rights reserved *----Stay
Recently on personal blog http://foocoder.com will introduce a vim plug-in every day, think of the garden has not been updated for a long time, but also to update an article.
Today, according to the request of the reader, introduce the next text
Add in VIMRCVnoremap : call addcharofcursor () "Incrementing characters in column modefunction! S:addcharofcursor ()Let C = col ('. ')Let L = line ('. ')Let L0 = line ("' Let L1 = line ("' >")Let char0 = Strpart (Getline ('. '), c-1,1)for k in range
Vim Install yum install-y vimVim View basic information vim--versionVim Open and new file vim [filename]Vim operation after entering the fileNote: There are several modes of vim first1, shortcut key mode: Vim can only move the cursor up or down
1. Just enter command mode2. I enter insert modeYou can only enter content in insert mode, if you want to delete the content, you need to switch to the command line mode and move the cursor to delete.3. ESC exit Insert mode to enter command line
Sometimes you copy and paste code from the editor into Vim, and the code format is completely messed up. The reason for this is that vim turns on smartindent (smart reduction) or autoindent (auto align) mode. In order to maintain the format of the
have been looking to see if there are quick ways to Select all , but many of the web is repeated, and the wrong, such as:1, $y, what is this? To write also written: 1, $y, but I tell you, write: 1, $y is all copied, not a full selectionDG, this is
1. Introduction of VIbasically , VI is divided into three modes:Command mode Open a file with VI directly into the command mode. In this mode, you can use [up or down ] keys to move the cursor, delete characters to process the contents of the file,
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,
1. when looking up the/etc/issue file, use man issue to find manual in See also appears MOTD (5), Agetty (8), Mingetty (8). And what issue (5) means at the beginning of the document.Man man is explained after:1 executable programs or shell commands--
When we use VI or VIM, if we want to display line numbers, we may do this: switch to command mode, then enter set Nu, then press ENTER to display, and we are writing programs, sometimes we would like to press ENTER, the cursor is not always at the
1 find/xxx (? XXX) means searching the entire document for a string matching xxx,/means looking down,? It means looking up where xxx can be a regular expression, not much about regular typing. Generally case-sensitive, if you want to be
Makefile Rules:[email protected]: target file$^: All dependent files$-C: Output target code, do not output executable file-G: Compile the compiler to provide information later on the program debuggingTarget:rulesGcc-o [email protected] $^InstallCP
The first step:Open terminal, enter on terminal, vim ~/.vimrc return.Step Two:Input:set helplang=cn "Chinese help document (if the Chinese package is down) syntax Enablesyntax on" Automatic syntax highlighting set number Show line number
Generally, editing software provides the "cut window or freeze window" function, so that one or more files are displayed in multiple windows. Vim also has this function.The following is a summary of the multi-window operations in Vim.I. Opening and
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.