Vim is the most famous text/code Editor on Linux systems, and the enhanced version of the Vi editor in the early years, and GVim is its Windows version. Its biggest feature is the full use of keyboard commands for editing, while leaving the mouse to
4, vim switch from command mode to edit mode A: Insert large A from the back of the cursor: End of line insert I: With a, insert large I: start at the beginning of the cursor Insert O: start at the beginning of the current cursor Insert Big O:
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
1, the concept of vim and basic operation
VI command line below the text Editing tool, Vim is VI's enhanced version. Command vim to start the Vim editor. Vim can generally be used in the form of a vim+ destination file path. If the destination file
My Vim IDE Interface:
1, install VIM and vim Basic plug-in
First install VIM and vim Basic plug-in. These can be installed using Apt-get:
Lingd@ubuntu:~/arm$sudo apt-get install vim vim-scripts vim-doc
The vim-scripts is a few of Vim's basic
I thought I was not particularly proficient in regular expressions, but there was no problem with the basic usage. But recently encountered a problem or let me stretched, thanks to Nango guidance.
Let's start with a general understanding of regular
Folding:
The folding commands in Vim start with Z and have 6 folding methods: Manual,indent,expr,syntax,diff,marker. Among them, manual the most basic, its command is universal, mastered the basic command of manual, folding is almost. To confirm
let g:AutoPairs = {‘(‘:‘)‘, ‘[‘:‘]‘, ‘{‘:‘}‘,"‘":"‘",‘"‘:‘"‘}Set the symbol to be paired automatically
let g:AutoPairs[‘‘Add symbols to auto-pair <>
let b:AutoPairs = g:AutoParisSet the symbol to be automatically paired, default to G:autopairs,
1. Vim Base operationVim is a text editor developed from VI. Code completion, compilation and error jumps have done some enhancements1.1 Entering edit mode
Command
meaning
I and I
I insert before the
First, VimEditor1.1 concept and its roleText Editor for writing, modifying text, which is already installed on Linux by default, similar to Windows word1.2 Vim three modes of Operation 1) Command mode: Vi/vim default mode, cannot input characters,
Command HistoryCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.start VimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
1. Home directory create the. vimrc fileSet Nu # Sets line numberSet tabstop=4 # tab TAB indentSet Autoindent # Auto IndentSet Showmatch # parentheses match highlightingExecute Pathogen#infect () # # # # # # # # # # # Syntax on this three line is
5.5 Entering edit mode5.6 VIM Command mode5.7 Vim PracticeExtendedSpecial usage of vim http://www.apelearn.com/bbs/thread-9334-1-1.htmlVim Common shortcut key summary http://www.apelearn.com/bbs/thread-407-1-1.htmlVim quickly deletes a character
1 install vim-gnome
1.1 switch sudo Su to root
1.2 apt-Get install vim-gnome
2 select text content
2.1 switch to visualization mode by V
2.2 press the arrow key to select the content (if you need to select the full text, press Gg to position
Reprinted this article please indicate from "LIU Da's csdn blog": http://blog.csdn.net/poechant
After the vim practice manual (8) vimide-build your own IDE (a), we all know that if tags is used to improve productivity. This article introduces
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
Common Vim/VI commands:
Its replacement function is very useful. For details, see vimreplacement function. html
Search for a word:/word, or move the cursor to the word using the * command. Vim will get the word on the cursor and use it as the
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
1. Substitute)
: [Range] S/pattern/string/[C, E, G, I] 5. 1
Range
It refers to zookeeper. 1, 7 refers to the entire article from the first row to the seventh row, and 1, $ refers to the entire article from the first row to the last
System Environment: ubuntu10.04 complete installation of VIM gvim
Problem: The Chinese Characters in VIM on the terminal are garbled and some solutions are searched online. However, it is strange that none of these methods can implement gvim menus
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