Configuration
Vim users to modify the current configuration:
vim ~/.vimrc
Fill in the information as follows:
set ts=4
set expandtab
set autoindent
Bring it into force:
source ~/.vimrc
hot key
command | Explanation |
---|---|
0 | First row |
$ (shift+6) | End of line |
gg | Text of the first |
G(shift+g) | Bun'o |
A(Shift+a) | End of the text, and edit |
ctrl + f | Turn up the whole page |
ctrl + b | Scroll down the entire page |
ctrl + u | Turn up half a page |
ctrl + d | Turned down a half page |
Digital + gg | Jump to a specified line number (e.g., 25gg or 25G, jumps to line 25) |
After the command mode input number Enter | Jump to a specific line numbers |
/text | Find text, according to a look - n, N lookup on a |
?text | Finding text (reverse lookup), a lookup on a press n, N lookup |
*/# | Find the current cursor word, equivalent / text |
:set ignorecase | Find ignore case |
:set noignorecase | Find not ignore case |
:nohlsearch | Close the current highlighted recovery highlighted when looking up again |
:set incsearch | Gradually search mode, the current character typed to find, without waiting for the completion of input |
:set wrapscan | Re-search when searching for the header or tail, Back Search |