Command History
Commands with: and/start with history, you can first type: or/And then press the up and down arrows to select a history command. start Vim
Enter the following command in the Command line window
Vim starts vim directly
Vim filename
Vim EditorQuoted text:------------------------------------------------------------------------------------------------------------------often Self-reflection, a sensitive thinker, youyourself and the surrounding environmentAble to control better and
To view the encoding of a fileMethod One:1. The file encoding can be viewed directly in vim: Set fileencodingYou can display the file encoding format.Note: If you just want to see other encoded files or if you want to solve the problem of viewing
File and directory management and the use of the VI editorFile and directory management, just beginning to learn this piece of feeling a lot of content is miscellaneous, but after the completion of the summary, found in fact very organized and no
Original address: http://blog.chinaunix.net/uid-22548820-id-3477464.html1. Use the VIM comparison mode to open two files:vim-d file1 file2OrVimdiff file1 file22. If you have already opened the file File1, then open another file file2 to compare::
Press ESC to enter command mode1. Replace:%s/str1/str2/g replaces all str1 in each row as str2: S/str1/str2/g replaces all str1 in the current line as str2: N1,n2s/str1/str2/g replaces N1 line to N2 row in all str1 to STR2Note: Removing/g means
Normal processing method of vim file garbled cat file under LinuxThe server supports the Chinese character set, cat and other view file commands are now normal, vim or there is a Chinese garbled problem,1. View the file encoding formatVim file: Set
"Introduction to Plugins"Ctags tool is used to traverse the source code files generated tags files, these tags files can be used by the editor or other tools to quickly find the location of the source code symbols (Tag/symbol), such as variable name,
0. Mnemonic Chart1. Use of VIMPart I: General mode available button description, cursor movement, copy paste, search substitution, etc.Part Two: General mode switch to edit mode available button descriptionPart III: General mode switch to
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Summary of the first lecture1. The cursor can be moved in the screen text using either the arrow keys or the HJKL letter key.H (Shift left) J (downlink) K (upstream) L
zhanhailiang 日期:2014-12-17The default Vim lookup is to differentiate between uppercase and lowercase, and can be implemented in the following two ways ignoring uppercase and lowercase lookupsset ic?noignorecase1 instruction setting::set
Environment configuration"If you think Vim is just a text editor, you Lose"--from the VIM veteranVIM provides a rich set of configuration features in a concise manner, and the main configuration system consists of a file and a folder. On a
You can use the: s command to replace a string in Vi/vim. Previously only used a format to replace the full text, today found that the command has many kinds of writing (vi is really powerful ah, there is a lot to learn), record several here,
Problem Origin: Git under Mac can't complete command, color scheme is imperfectMac OS Yosemite 10.10.3git version 2.3.2 (Apple Git-55)Processing results: Git commands can be complete, the color scheme is still not perfect, but the vim color can
http://blog.csdn.net/sharp_allen/article/details/27075133 ReprintSaid so much, in fact, there is less than a word, notepad-like editor, in each operating system has an editor, in Linux, such as Gedit Editor, very convenient. You can open this editor
There are only three types of editors in the world, EMACS, vim, and other650) this.width=650; "src=" Http://feihu.me/img/posts/vim-solarized-yinyang.png "width=" 433 "height=" 434 "alt=" Vim-solarized-yinyang.png "/>Personally feel very good
Transferred from: http://my.oschina.net/u/554995/blog/59927Recently, ready to go with seniors to the Linux kernel door to see the inside of the world, although we know the door is there, but we have to find the right angle to see more comfortable,
ObjectiveSee this article today, resonance very much. It divides vim into 4 levels, and at present I am proficient in using the previous level Three command, in the cultivation habits of the fourth level. It's exactly the process I've been using vim
Vim configuration details
1. VIM configuration file1. How should VIM be set to allow users to define their own configurations to display text? The two configuration files will be read during the running of VIM.(1) The ". exrc"
Learn vi and vim Editor (4): fast moving location, vivim
Generally, the first step to edit a text is to move the cursor to the desired location. Therefore, the speed of editing a text depends on the number of buttons required to move the cursor to
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