1, vim ~/.VIMRC into the configuration file
If you don't know where the VIMRC file is, you can use: Scriptnames to view
Set Nu #行号
Set tabstop=4 #一个tab为4个空格长度
Set AI #设置自动缩进
Syntax on #高亮
2, basic
Space bar to move one grid to the right
x Delete
configuration file
Vim has multiple configuration file vimrc, such as/ETC/VIMRC, which affects vim throughout the system. And ~/.VIMRC, this file only affects the vim of the user. Also, the configuration in the ~/.VIMRC file overrides the
Vim plugin: nerdtree[Tree Catalog]
The Nerdtree Tree directory plug-in can browse through all file system files under Vim and can open files. You can also filter some files by configuring Nerdtree to not be browsed by a tree structure.
Github:the
The VI editor has 3 modes: Command mode, input mode, and last line mode. It is important to master these three modes: the Command mode: The default entry is the command mode after startup, the command can be switched from this mode to the other
Modify ConfigurationIf you want to modify the configuration of the global vimvim /etc/vim/vimrc
1
However, this is not recommended and can only be modified by the current user's vim configurationvim ~/.vimrc
1
Add the
VI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. VI is the abbreviation for "Visual Interface", Vim is
We provide a full-text selection and then run Macros in the selected row. Normal is a very useful thing. Its meaning is to run some operations under the norm model in the command, it provides the possibility of many combined operations and expands
V1. the default character encoding is utf8. To open a file encoded with gb2312, all Chinese characters are garbled. How can I restore the normal display?Enter edit ++ ENC = cp936
V2. how to execute commands in the vim system?Enter! CMD
V3
High Efficiency mobile 1. Outside of the insert mode
Basically, you should stay in the insert mode as little as possible, because in the insert mode, VIM is like a "dumb" editor. Many new users will stay in the insert mode because it is easy to use.
ArticleDirectory
Modified _ vimrc automatically takes effect
Enable culture in VIM
Set Font
Basic settings for editing PHP code
Set your favorite color scheme
More useful editing settings
Use nerdtree to implement
1. Delete characters
To delete a character, you only need to move the cursor over the character and press "X ".
2. delete a row
Use the "DD" command to delete a whole line of content. After deletion, the following lines will be moved up to fill
Common basic commands in Linux-ls favoritesThese are frequently used and powerful commands in Linux, but although you may be using these commands every day, I believe you do not fully understand these commands. If so, then you will surely gain
Vim practice manual (6) shortcut keys for common search and bookmarking operations
Author: poechant
Blog: blog.csdn.net/poechant
Email: zhongchao. USTC # gmail.com (#-> @)
Date: January 27Th, 2012
Update: February 27Th, 2012
1. Search for
Vim command collection
Command history
Commands starting with ":" and "/" have historical records. You can first type ":" or "/" and then press the up or down arrow to select a historical command.
Start Vim
Enter the following command in the
Recently I want to read this book on UNIX advanced programming. I wanted to use the code: blocks under Ubuntu. It was quite uncomfortable to use it alone. Finally, I decided to use the simple Vim. below is the configuration of the programming
Those who have used source insight must be impressed with its auto-completion function. In many integrated development environments, it also supports auto-completion. Vim, as an excellent editor, is indispensable. Moreover, as a General Editor,
Original article address: Two good Vim skillsAuthor: Liurhyme
Note the following before reading this article:1. The goal of this article is to provide some Vim usage skills, which can improve the efficiency of VIM operations. Some tips can also be
A lot of Linux software development is not actually performed in the case of X Window. At this time, we cannot start a graphical window based on X Window, in this case, the main editors we can use are vim and Emacs. (PS: Although Emacs and Vim are
Go to: http://zhwen.org /? P = articles/cs1_tags
The linux Source Code provides the make command to create a cssag index file and a tags file.I. Software Installation
Install cscope first:
sudo apt-get install cscope
After installing
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.