Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient: : QX starts recording macro and registers the result in register X Q Exit Record mode @x playing macro commands
This chapter describes the use of the VIM editorThe Vim editor is an enhanced version of the VI editorVim is a full-screen editor, a modal editor, called a modal editor, because Vim has multiple modes.The following are the main three modes of
Reproduced in: http://blog.chinaunix.net/uid-20614631-id-1914849.html Pro test availableFirst download the Cygwin, want to program under Linux must install VIM,GCC and GDB, now mainly to solve the vim backspace not normalUse the problem. Cygwin
Software installation:
Python-2.7.2.msiPython for Windows, which is installed in the C: \ python27 directory by default.
Markdown-2.0.win32.exeFollow the default installation path.
Gvim73.exeVim editor for Windows, which can be installed by
Address: http://vitaminj.blogbus.com/logs/35851648.html
1. In ~ /. Vim/C-support/templates can be used to set copyright information, such as the author, mailbox, and copyright ownership. C or. the CPP file is visible and lists the locations where
1. securecrt
Settings in session
1) Session option → select the font (New, or others), and select chinese_gb2312 for the character set.
2) Vim/etc/sysconfig/i18n
Lang = "zh_CN.UTF-8"
3) VI ~ /. Bash_profile
Export lang = zh_CN.UTF-8
2.
In vim, you can easily set tabs or spaces based on different file types, and set the length to be flexible.
First, let's take a look at how to set the tab width and determine whether to use a tab or space to represent an indent:
Set Tabstop=4Set
Create a tab
Use: TabeCommand and file name parameters, you can open the specified file in the new tab. You can also use: TabnewCommand to edit the new file in the new tab. Command: Tab splitThe file in the current buffer is opened in the new tab.
Basic Configuration
Terminal operation:
Vim ~ /. Vimrc
The configuration is as follows:
Set nocp "set compatible with set expandtab" set tabset shiftwidth = 4 "set the tab interval set tabstop = 4" four spaces represent a tabset STS
Recently I am reading the book "TCP/IP protocol strated volume2: The Implementation". Naturally, I need to download the source code of 4.4bsd-lite and study it together with books. When I used to learn vim, I knew that Vim could use the plug-in
Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from "Learn
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→
Vim is a powerful editor. Of course we can also configure it with a powerful ide. There are a lot of such tutorials online, so I will not repeat them here.
We often need to check the document for unfamiliar commands and plug-ins. The English
Indent settings
Autoindent (AI)
Copy indent from current line when starting a new line (typingIn insert mode or when using the "O" or "O" Command). If you do notType anything on the new line before T or CTRL-D and then typeCTRL-O or, the
Part 1: Description of buttons available in general mode, move the cursor, copy and paste, and replace search
How to move the cursor
H. move the cursor to the left arrow for one character.
J. Or a down arrow. The cursor is a character that moves
Nerdtreethe nerd tree allows you to need e your filesystem and to open files anddirectories. it presents the filesystem to you in the form of a tree which youmanipulate with the keyboard and/or mouse. it also allows you to initialize msimple
The Sessionsession plug-in has been enhanced on the mksession command of VIM, allowing you to easily store and restore the vim edit session. It can save the current settings, tabs, and windows.
To save the current session, run the savesession
Tag: Use the AR string of the strong file app
* Locate the specified row N:Enter "NG ".Or enter "ngg ".Or enter ": N"Here, n is the row number of the specified row. Note that sometimes G = GG.* Jump to the top of the screen:Enter "H ".This is the
Clang_complete vim simple configuration, clang_completevim
Vim is very powerful. You can view it through man vim (man is the manual for viewing commands, and man can view the corresponding usage by adding commands)
Below is a brief description of
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