Http://homepage.ttu.edu.tw/u9106240/page_main/vim_menu.html
Enter input mode
Enter the following instruction in command mode, and the program will enter the input (insert) modeThe user can then modify the file,If you want to jump out of the input
Key word: Vim
Objective
Vim is a Super Cow editor, can be said to be designed for the programmer editor, powerful some incredible. But its learning curve slightly steep, the first two days on the internet to find a small chart, relatively full, if
When writing a configuration file, often forget to switch to root, resulting in file editing, typing: Wq exit save, appear E212: Unable to open and write file error prompts. This is due to the fact that the current user does not have write
Http://zhwen.org/?p=articles/cscope-tags
The Linux source code provides make commands for making Cscope index files and tags files. First , the installation of software installation Cscope:
sudo apt-get install Cscope
In the installation ctags:
http:
The VIM editor can basically be divided into 3 modes, namely command mode, insert mode (insert modes), and end line mode, which shows a diagram of how Vim's various modes convert to each other.
Command mode: Controls the movement of the screen
CTRL +F PAGE DOWN CTRL+B Page Down u cancel the last operation u cancel the current line Operation ZZ Saves the current content and exitsGG Jump to the first lineG Jump to last line#gg Jump to # Line:w /root/123~///old/new/find character and replace
1.vim Editor: Command mode, edit mode, extended mode2. Command-line commands:A. Delete cursor line: DD left undo: U Right undo: Ctr+rB. Delete the down n rows (including the current line) where the cursor is located: NDDC. Copy cursor line: YY copy
Article turned from: http://blog.csdn.net/shell_picker/article/details/6033023Excerpted from the Vim Handbook:Options :1. TabStop: Indicates how many spaces a tab displays, default 82. Softtabstop: When editing (such as pressing backspace or TAB) A
Copy the vim content to the clipboard and copy it to vimluo Weifeng 2011-7-16
About Vim clipboardArticleThe lecture is in place. Http://hi.baidu.com/abobo1986/blog/item/6c0c766e7dd9bedc81cb4a9a.html
Here, I will provide the operation process to
The clipboard-related content in the Vim Help document is as follows:
Vim has 12 clipboard, which are 0, 1, 2,..., 9, A, ", and +. You can use the: Reg command to view the content of each clipboard. In vim, simply copy Y to the "(double quotation
Sometimes, copy text (especiallyCode) To vim, the format will be disordered. It seems that automatic indentation is a curse. This article does not go into the cause and provides a solution.
1. paste Mode
Run the following command to enter the
Vim/VI Practical Skills
1. Import files
: R [file name] # import to the currently edited File
For example, R/etc/inittab
The upper part of the file is the/etc/services file, and the lower part is the/etc/inittab file.
2. Run the command [do not
If you have written a little bit of code, you will be able to know how convenient the integrated development environment (IDE) is. Whether it is Java, C, or Python, it is much easier to write code when ide will help you check the syntax, compile in
Scenario:
When writing a Python script using vim, the default tab is inconvenient because python is strictly aligned with spaces. We can change the vim configuration file to four spaces when writing a Python script.
Supplement:
You can learn
In ubuntu, the vim configuration file is stored in the/etc/Vim directory. The configuration file name is vimrc.
In fedora, the vim configuration file is stored in the/etc directory. The configuration file name is vimrc. In Red Hat Linux, the vim
1. The first line of the GG file and the end line of the G File
2 Vim auto-completionGenerally, CTRL + N is used to automatically complete the configuration. After vim7, C/C ++ functions, variables, or class members use Ctrl + X, CTRL + O can also
Reprinted please indicate the link and author huihui1988
After using Vim for a while, I like this simple and efficient editor. Just as I was learning QT, I turned Vim into a tool for developing QT. The specific configuration is as follows.1.
Remember to keep it in mind. The following method does not need to change the securecrt configuration, so it does not affect the display of other Chinese characters.Problem:For example, if a file is UTF-8 encoded, the file header is:1 #!
From: http://www.kukaka.org/home/showonews/372
It took a long time to use vim as a PHP development tool. Previously, netbeans was used to directly press ctrl and then click the mouse to jump to the function definition. tracking code is very useful,
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