VI and VIM have always been talked about, in the end what makes them so popular?VI is divided into 3 modes: General mode, edit mode, command line mode.(1) General mode:After entering VI, the default is the general mode.Useful: Easily move cursor,
1 phenomena Both cannot map the ALT+J key combination.(1) Use the: H key-notation command to view the mapped characters of the function keys. There is no exception. (2) Use the: Map command to view the configured mappings. Discovery et were
common commands and usage of the Vim editor in Linux ( note strictly case-sensitive and in Chinese and English ):The VIM editor has three modes : edit mode, input mode, and last line mode.Mode conversion:Edit Mode "Input mode:I: Before the character
Copy/paste
p→ paste after the current position
p→ pasting before the current position
dd→ Delete the current row and save the deleted row to the Clipboard
yy→ copy Current line of business in DdP
Edit
ArchLinux the process of installing and configuring the Vim complement plug-in youcompleteme.Reference:Https://github.com/Valloric/YouCompleteMeHttps://github.com/gmarik/Vundle.vimHttp://www.cnblogs.com/zhongcq/p/3630047.html1. Download
Vim Editor is a powerful text editor, divided into edit mode input mode in the last line mode, using Vim to edit a fileThe default mode is edit mode;Default mode: Command mode; edit modeInput mode:Last-line modeMode conversionEdit mode---> Input
1. Enter the command mode. In the command mode of VIM, enter ":" In edit mode. The cursor jumps to the last line of the screen and displays the colon. Now the command mode is started.The command mode is displayed on the last line of the screen.
The following is a record of VIM configurations that I am used ~ _~
"File encoding set fileencoding = utf-8set encoding = utf-8set termencoding = UTF-8" enable syntax highlighting syntax enable "prevents adding a Line Break Set noendoflineset
I have been in contact with vim for some time. I have been using some basic operations of VIM, but the program has not been written much, but I am gradually recovering from the status recently.
To do good, you must first sharpen your tools. As a
Repository Address requested: http://git.oschina.net/eemcmc/kenvim
First, I would like to know how to submit files in oschina git?
Git add file Add the changes to the cache git commit submit file to local library add-M "submit information" Git
This section describes some advanced functions of VI and Ex.
Configure vi
The configuration file. exrc can be saved in your home directory and executed when VI is started. However, you can place a configuration file in the current working directory
When you look for source code from the Internet, you will often find that the code is well formatted, but with the line number in front, copy and paste it directly to remove the line number in front to compile, and worse, with the line number in
1. Overview
In general, jump in code is inseparable from ctags.
In fact, the Code redirection in VIM is completed by the vim tags module, and the tags module depends on the tags file.
Ctags (generate tag files for source code) generate the tags file.
1. Vim Mode
Vim has three modes: general mode, edit mode, and command line mode.
2. General Mode
Open a file with vim and enter the normal mode. In this mode, you can delete characters and lines and copy and paste the file data.
2.1 move the
From: http://coolshell.cn/articles/5426.html
Basic commands:
i→InsertMode, pressESCBackNormalMode.
x→ Delete a character of the current cursor.
:wq→ Save disk + exit (:wStorage,:qExit) (Chen Hao note: the file name can be followed after W)
dd→
1. W [file name] is equivalent to saving
2. R [file name]: add the content of [file name] to the end of the line with the cursor
3. N1, N2 W [filename] Save the content from N1 to N2 as [filename]
4. 50dd delete 50 rows of 5X Delete 5 Characters
5.
First, paste a VI/Vim keyboard image found on the Internet. You don't need to remember this figure. You will learn it in the process of using it. At present, I am also exploring some of the shortcut keys that I often use.
1. when I look at code
This chapter introduces the ex editor. Why should we introduce such a new editor? In fact, the ex editor cannot be regarded as a new editor. VI is just its visual model, which is more common, line-based editor. Ex provides more mobile and range
[VIM] vim tipsThis series is the Reading Notes and summary of Practical Vim, which mainly includes the following aspects: 1. How VIM solves the problem-constructing repeated modifications
1.1 Basic operation unit-character, word, row, paragraph1.2.
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.