On the Linux platform, there are many good shell command combinations to do multiple file lookups/replacements, such as these commands: Find,sed,grep,awk,perl. But other platforms such as windows are less convenient, and Vim's built-in multiple file
Command 1: [VYDC] [IA] [Pair_char]
The above command means that the command consists of three parts, each part of which can be any one of the characters inside []
The first section specifies the action type
The second and third sections specify
1. Multi-line Comment: A. Press CTRL + V to enter the column mode; B. At the beginning of the line, select the lines that need comment; C. Press "I" to enter insert mode;D. Then enter the comment symbol ("//", "#", etc.); E. Press the "ESC" key. 2.
Split screen start vimUse the uppercase O parameter to split the screen vertically.vim-on file1 file2 ...Use the lowercase o parameter to split the screen horizontally.vim-on file1 file2 ...Note: N is a number that is divided into several
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
The command to edit the file on Mac always can't remember, leave a reference!!!If it is vim, then: ESC exits edit mode and enters the following command:: Wq after saving exit VI, if: wq! After forcing the store to exit (common): W Save but do not
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
In Linux without a desktop environment, the command-line mode terminal operation is inevitably a bit difficult, but learning to use some shortcuts will do more with less. Common shortcut keys under the Linux command line are:Delete:CTRL + D deletes
1. Vim Common Operation1.1 Vim Introduction(1) Vim is a powerful full- screen text editor , which is the most commonly used text editor on Linux/unix, and its function is to create, edit and display text files.(2) Vim has no menu, only commands.(3)
Split screen start vim
Use the uppercase O parameter to split the screen vertically.vim -On file1 file2 ...
Use the lowercase o parameter to split the screen horizontally.vim -on file1 file2 ...
Note: N is a number that is divided
When writing the files configuration of the NPM. Pakege.json file, if you have a file that you do not want to include, create a. npmignore file to exclude, but the Windows system does not allow you to create a file named after the point?This is the
Source: Vim Command Collection Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim
Recently transferred from the IDE to vim, a lot of habits inconsistent, specially configured a vim environment. On the Internet to find the great God's post, afraid to forget, hereby commemorate.Portal Http://www.cnblogs.com/ma6174/archive/2011/12/10
Text replacement in Vim: 1. Replace the contents of the current line: :s/from/to/ (S is substitude) : s/from/to/ & nbsp : replaces the first from in the current row with the to. If the current line contains multiple
"Ctags Features":Generate index files for source variables/objects, structs/classes, functions/interfaces, macros, etc. for quick positioning. Currently supports 41 languages."Installation of Ctags"1) Online Installation:sudo apt-get install ctags
Vim automatically increases indentation when pasting data from the Clipboard, which is a nightmare for Python, a language that requires strict indentation. How do you make it non-indented and keep it in the original format? The answer is paste
Basic commands commonly used by vim1. w [filename] is equivalent to save as2. R [File name] Add the contents of [filename] after the cursor line3. N1,n2 W[filename] Save the contents of N1 to N2 as [filename]4.50DD Delete 50 lines 5x Delete 5
since the beginning of learning Linux, like Blake Multi-operation is not familiar with, encountered some difficulties, recorded here. 1 Install VIM. I now understand that Vim has a console version and a GUI version. Console version seems to be the
Solve vim garbled characters in centos
My system is centos 6.8
UTF-8 is selected for xhsf-connection.
When I use vim for editing, Chinese characters always show garbled characters. Although cat is normal, it is inconvenient for editing.
The
The so-called "to do a good job, you must first sharpen the tool", the so-called "sharpen the knife without mistaken cut firewood".In Linux, vim is the most common editor, and many linux distributions come with their own (however, Ubuntu must be
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