all users.
Windows VIMRC is located under the C:\Program files (x86) \vim folder. The name is _VIMRC, assuming that the everything is installed, the direct search VIMRC a step can be located.
Vim configuration file VIMRC"-----------------------------------------------------------------------------------: IMAP II Vim's frequently used commands Efficiency
repetitions, plus the letter indicating the name of the buffer used.To get help, by using: helps [content or commands]
VI set tab to 4 and automatically convert to space 2009-10-30 15:33
: Set tabstop=4 "Force tabs to being displayed/expanded to 4 spaces (instead of default 8).: Set softtabstop=4 "Make Vim treat : "I don ' t think this one would do and you want.: Set Expandtab "Turn tab keypres
Summary of common Vim commands
It's not long to use Vim, but now we can't do without the familiar Vim editing mode. The learning curve of Vim is very steep. At the beginning of learning, it is often discouraged to remember many operation
Under Linux to do development, and even only do management maintenance work, but also the use of vim. As a novice, I have just come in contact with this section of my daily use or collection of vim commonly used commands recorded.
Of course, just enter on the command line: Vimtutor, you can learn all the commands of
replaced by W.K Move up one characterJ Move down one characterThe above four commands can be used with the number, such as 20J is to move down 20 lines, 5h is to move 5 characters to the left, in vim, many commands can be used with the number, such as delete 10 characters 10x, after the current position after inserting 3! , 3a! W moves forward one word (the curs
Practical Manual: over 130 common Vim commands to improve development efficiency
Vim is a text editor developed from vi. Code Completion, compilation, error jump, and other convenient programming functions are particularly rich and widely used by programmers. It is used in parallel with Emacs to become your favorite editor for Unix-like systems. The
saving the contents of the file, exit the vim Editor.) ): w! Enter ( forces the file to be written, that is, to overwrite the original file. This command can be used to force writes if the original file's access permission does not allow writing to the file, for example, if the original file is a read-only file. ): wq! Enter ( forces the file contents to be saved and exit the vim Editor.) )That's all! Hope
is a commentSet Nu "Show line numberSet Hlsearch "lookup string anti-white displaySet backspace=2 "Can be deleted at any time with backspace barSet autoindent "Auto IndentSet ruler "show status on the bottom rowSet Showmode "display mode in the lower left cornerSet Bg=dark "displays a different background color and can also be lightSyntax on "Grammar check, color display(12) DOS and Linux break characters (file conversion)Dos2unix [-kn] file [NewFile]Unix2dos [-kn] file [NewFile]-K: Preserves t
: At the end of the line where the cursor is located, convert to input mode
O: Create a new row below the current cursor line and switch to input mode
O: Create a new row above the current cursor line and switch to input mode
S: Delete the character of the cursor
R: Replace the character at the cursor
You can use the direction keys to move the cursor in input mode3.3 Baseline Command mode (last line mode)Command mode to enter a colon to the bottom line command modeBaseline p
label:
1.
Vim
#Enter vim in the command line to enter the vim editor
2.
i
#Click the i button, the lower end shows --INSERT--
# Insert command, any character in vim may have a role
3.
Esc
# Exit i (insert) command for other commands
4.
:r filename
#Read in a file and write
Labels: common Linux Vim commandsZookeeper
First learned vim, see http://blog.csdn.net/u011848617/article/details/12837873
After that, I once lost my skills. After learning again, I found that it is essential to master Common commands. Below are some of the commonly used Vim comman
, vimrc is located in the c: \ Program Files (x86) \ Vim directory and named _ vimrc. If everything is installed, you can directly search for vimrc to locate it.
Vim configuration file vimrc
"Identifier: imap ii
Common Vim commands
# Efficiency. # repeat recent text operations # file: Q # exit Q-> quit: W # Save w->
Two commands create Vim as the Python IDE method, vimpython
Run the following two commands to configure Vim (including plug-ins) to Python IDE. Currently, MAC and Ubuntu are supported.
curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.shbash vim.sh
Example
What have you done?
A convenient bash sc
be closed to the top of the fold.Found collapsed inside will be folded open, after processing, you will fold the folding closed.Folding Options:Allows vim to automatically fold according to syntax, indentation, and markup. Set with Set Foldmethod=foldoption. You can check the Foldmethod.Keep Folding:(1) To open the next time also keep folding can leave the time: Mkview, and then come in: Loadview on it.(2) Of course, the two sentences can be added to
The three modes of VIM in Linux are: command mode , last line mode , and edit mode . here is a diagram of the three:Switch between the three modes:The command mode is the default mode in Vim.Command mode switch to last line mode : Use colon (:) in English.last-line mode switches to command mode : Press ESC or double ESC or delete all commands from the last line.Command mode switch to edit mode : Key I or a
Introduction to Vim code folding commands
1. Code folding through OFDM: set OFDM = xxx
There are 6 Ways to fold:
| Fold-manual | manual Folds are created manually.| Fold-indent | indent Lines with equal indent form a fold.| Fold-expr | expr 'foldexpr' gives the fold level of a line.| Fold-marker | marker Markers are used to specify folds.| Fold-syntax | syntax Syntax highlighting items specify folds.| Fold-
Tags: vimvim 存文本编辑器Syntax format: VIM "option" "File" vim [options] [file]Attention:1.vim command and subsequent options and files, there must be at least one space between each element2.vim can be divided into three modes: normal mode, edit mode, command mode.Vim three modes of conversionSeveral ways to open vim1.
This article introduces the basic usage of vi (vim), but it is enough for common users! The vi editor is a standard editor for all Unix and Linux systems. it is not inferior to any of the latest text editors. here we just briefly introduce its usage and a few instructions. For any version of Unix and Linux systems, the vi editor is the basic usage of vi (vim) described in this article, but it is enough for
Vim is a powerful editor. In addition, most of these commands can be combined. For example, the 9yy command indicates copying 9 lines of content, 9 indicates the number of lines to be copied, and 100dd indicates deleting 100 lines. When the number and command work together, it is more powerful than a simple command. Similarly, the c command indicates erasure, w indicates word, cw indicates erasure of a word
I read some documents and summarized some basic Vim commands suitable for programmers. they are not very complete, but at least practical... All are the most basic vim tutorials. open the terminal under fedora. Input vimfilename to enter the vim // basic file. ..
I read some documents and summarized some basic
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:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.