"Under the directory/etc/, there is a file called VIMRC,"This is a public vim profile in the system and is valid for all users." And in each user's mainDirectory, you can set up your own private configuration file, named:. VIMRC
"Cancel Automatic
VIM Regular Expression bulk Modify text
Demand
TXT text of country area code and area, turn into plist file example used on iOS
Test.txt
+93:afghanistan
+355:albania
Amend it to
country
Afghanistan
code
+93
country
The Vim configuration file path is typically/ETC/VIM/VIMRC
CTRL + P//prompt to be padded
GG=G//Automatic typesetting
$//Move the cursor to the end of the bank.
: X//Save exit
:%s/emacs/vim/g//Replace all Emacs in the current line with VIM
The
There are three modes of VIMCommand mode, default into command mode;Edit mode, a I o enter the editing mode, you can edit the text content; Esc tangent back to command modeExpansion mode,: Enter the expansion mode, you can save the exit and other
1.1 Installing VIMTerminal Input Command InstallationInstalling Vim:yum install vim under CentOSUbuntu installation Vim:sudo Apt-get install vimNote: If you are not prompted for permission at the time of installation, you are need to being root to
0 indicates the beginning of a line, and $ indicates the endG moves to the end of the line, Ng moves to n rows, GG moves to the beginning[ENTER] jumps to the next line of the current cursor/word down looking for word this wordWord looks up word this
Vim Editor
Commands commonly used in the Vim editor are stored in the ~/.viminfo file
There are 3 modes in the VIM Editor: Command mode, last line mode, and input mode, and three modes are converted as shown:
Vim file name #
June 21 Task5.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
VI Common usagedescription, all commands do not include "", If "" "(half-width double quotes), is a command character, please note the distinction. Insert:"I" starts before the cursor positionthe "I" cursor moves to the beginning of the current
Upload the. vimrc file to the user's home directoryThe contents of the file are as follows:Autocmd bufnewfile *.py,*.cc,*.SH, *.java exec": Call Settitle ()"func settitle ()ifExpand"%:e") =='SH'Call Setline (1,"#!/bin/bash") Call Setline (2,"########
Vim configuration file is VIMRC, location under/etc/vimSet nu--sets the line number, where Nu is the abbreviatedSet autoindent--setting Auto IndentSet ts=4--sets the indentation of the TAB key to 4 spaces, where TS is the abbreviation for TabStop,
The common use of VI1. General modeCtrl+f Move Down one pageCtrl+b Move up one pageCtrl+d Move Down half a pageCtrl+u move up half a pageN[enter] cursor down n line, n for number, Enter for keyNG moves to the nth row of the fileG move to the last
About VIVI is the abbreviation of "Visual interface", its status on Linux as if the edit program on DOS. It can perform many text operations, such as output, delete, find, replace, block operations, and so on, and users can customize them according
Vim's shortcut keys(0) 3 The toggle between modes is default in command mode. I key, from command mode, into insert mode. The colon (:) key, from the command mode, enters the last line mode. Esc key, from insert mode, last line mode, into command
from:http://cenalulu.github.io/linux/all-vim-cheatsheat/The most complete Vim shortcut key map in history--getting to the advanced level
Article welcome reprint, but reproduced when please retain this paragraph text, and placed on the top of
vim Normal mode, insert mode, command mode switchVIM open, cursor Movement, edit mode, normal mode, command mode toggle commandThe cursor can be moved in the screen text using either the left or right arrow keys on the keyboard or the HJKL letter
Vim Tree Menu Plug-in installation Nerdtree1. mkdir ~/.vimCD ~/.vimmkdir Bundlemkdir AutoLoad2. Curl-sso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/ Pathogen.vim3.vim ~/.VIMRCAdd this
One, vim toolsVim is an upgraded version of VI, VIM with color display, divided into general mode, editing mode and command mode1. Install Yum install-y vim-enhanced2, Vim color display is based on the contents of the file display, its configuration
The configuration file for Vim is the. vimrc file in the current user host directory by default. The following configuration is a common vim configuration for Python development."Highlight when moving forwardSet Cursorline"Set the tab to a width 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.