Cursor Movement:
4 Directions
K
Hl
J
Up one page: ctrl+f
Turn down one page: ctrl+b
Flip up half page: Ctrl+u
Turn down half page: ctrl+d
Skip to the beginning of the document: GG
Skip to end of document: G
Jump to line 23:23gg or: 2
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
First remove the old vim.
1.sudo apt-get Remove vim /input re press TAB to display remove
2.sudo apt-get remove vim-runtime
3.sudo apt-get Remove Vim-tiny
4.sudo apt-get Remove Vim-common
Then download the VIM8 Source:
git clone https://
6, Vim profile User level: ~/.VIMRC (hidden, directly created) system level/ETC/VIM/VIMRC
Use vim--version to view details GCC related (emphasis) 1, GCC workflow GCC calls other processors to complete the process preprocessing-e (using
1. Cursor movement
L
Move one character to the right
H
Move one character to the left
W
Move one word to the right
W
Move right One blank separator word
B
Move one word
In order to facilitate the setting of vim, write down this article record setup process and some resources, easy to consult later. (Non-tutorial)
First of all, Vim's configuration file originates from this blog, the blogger writes very well,
Some students like to use space to do indentation. So a lot of code start at the beginning with a continuous repeating space, some are four spaces, some even eight spaces. Uncle can not endure aunt.
Vim has some retab options for indenting all
situation 1: in CentOS or Debian and other Unix systems, when using VIM to edit the file, input Chinese, Chinese garbled:
#vim/ROOT/.VIMRC
Enter the following configuration:
Syntax on
set fileencodings=ucs-bom,utf-8,utf-16,gbk,big5,gb18030,latin1
In Linux we often encounter coding inconsistencies resulting in garbled display problem, in fact, VIM provides us with a very powerful code conversion commands, including document encoding and display coding.
Enter in VIM: Set fenc= encoding
1. Label
(1) Nameless label
": This is two single quotes, meaning to jump back and forth two times before and after the jump.
: Jump back and forth between two file, is the "Global version of the command."
: Very familiar, jump back, O means older.
:
Ubuntu,vim The default external registers are +
Copy the contents of vim to the system, select the content, and then "+y, you can copy it to the outside."Copy the contents of the system to vim, select a location, and then "+p, you can copy it into
Source: http://www.cnblogs.com/xia520pi/p/3682348.html
Solarized is a color scheme that includes light and dark colors, which can make a clear contrast. Apply to many applications to make your application look more beautiful. Look at this color:
after adding the following code in. VIMRC, restarting Vim enables you to press TAB to produce 4 spaces:
Set ts=4 (Note: TS is the abbreviation of TabStop, set tab width 4 spaces)Set Expandtab
for saved files, you can use the following method for
How to use "+p
20130726 3:40
Reason:
The registers available under VI or VIM without a graphical interface include only {a-za-z0-9.%#:-"}, and do not contain" * or "+ and other options and drag-and-drop latches.
Vim--version viewing version
VIM is the God of editors
1.vimtutor (Vim comes with)2.vim-adventures3.vim Configuration
Set nocompatible
set lines=40 columns=150
set number
set go=
set ruler
syntax on
set ShowCmd
syntax enable
set Background=dark
colorscheme Molokai
set t_co=25
Reprint of the http://blog.csdn.net/king_on/article/details/8104235
Declaration of this digest from the network, the initial author is not clear, so did not leave the original link. If anyone knows, please tell them.
Vim is one of the best text
Each time you copy the code, if the code has//such comments are easy to let the format out of the way, the following settings can be avoided this situation.
Cancel Auto indent when pasting code
Vim in the paste code will be automatically indented,
Vim configuration and easy-to-use methods.
Install vim and tags using the source link address: http://blog.csdn.net/shaohuazuo/article/details/46745209 blog
VIMRC configuration file can refer to the following address: http://blog.csdn.net/shaohuazuo/
Vim three modes: Command mode, insert mode, bottom line mode. Use ESC, I,: Toggle mode.
vim [path/] Target file name : Open if it exists, new and open if it does not exist.
Basic Steps : 1. Vim hello.c 2. Type I 3. Edition 4. Type [ESC] 5. Type: Wq
Cscope recommended mappings in the documentation:
Nmap s:cs Find S =expand ("")
What is the meaning of =. An assignment statement. is the meaning of inserting a register value, = is the meaning of the expression register. So the sentence is
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.