"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/vi Mode of work
First, insert text
Command
Describe
I
Inserts text match either the current character
I
Inserts text at the beginning of a line
A
Add text after the current
Original address: http://www.cnblogs.com/joeyupdo/archive/2013/03/03/2941737.html
-----------
In vim to edit a Chinese text, sometimes seems to have garbled, before are tinkering to get no garbled, the problem has always been bothering me. Suddenly
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
For the first use VI, there are a few notes to remind:1. When you open a file with VI, you are in command mode, and you want to switch to insert mode to enter text. Toggle method: Click on the letter "i" "Command mode" to enter "Insert Mode", then
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 #
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,"########
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
Vim Editor vim是vi编辑器的增强版,是unix/Linux系统默认的文本编辑器Vim three modes of operation 命令模式: vim 输入模式: 按键 I 进入输入模式 末行模式: 按键ESC : 进入末行模式Vim can create and modify files 新建:Vim 文件名 修改:Vim 已存在的文件 Wq : 保存并退出VIM Command mode
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
Recently work in need to change files on the Linux server, suffering from the various commands of VIM is not familiar with, today we summarize and familiar with a variety of VIM commands, so as to improve work efficiency. Late Continuous updateVim
1. Direction keyH: equivalent to left buttonL: Equivalent to right-clickK: equivalent to the upper keyJ: equivalent to the next key###############################################################2. Move the cursorMove the cursor to the first line of
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
Liunx basic 1, directory? /: root directory, generic root directory only, there is only one root directory under Linux. Everything starts here, for example:/home is first from the root directory/start, and then into the House directory.
Posted on November 7, 2011 by Sam This time has been in Python with the idle editor, but this idle code indentation really hurt, when you use the If:elif:, the Elif: not automatically aligned, which makes me often in the debugging time only to find
1.Recently, under the guidance of colleagues in the company, learned to use this thing to write code, the efficiency has improved a lot. So record it and make it easy for everyone to use.1. Download the Gvim74.exe file and install it. Note There are
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