In my use of secure CRT, there is a problem: in the process of using VIM programming, the cursor is often invisible because of the window's switching.
Analysis of the reasons, may be related to the WINDOW8 version I used, my colleagues use the
Vim-vi Improved:Vim is the VI editor of the upgrade version, is the standard Linux editor, with program writing ability, according to the font color to distinguish the correctness of the grammar, convenient program design.Use:# vim [OPTION] ... FILE
The philosophy of the Linux system is all documents, we usually need to fill in the content of the file is often used in the text editor before we learned the Nano editor, but the Nano editor features a single, not suitable for complex operations,
Installing the VIM plug-in rainbow bracketsVIM website Recommended Pluginhttp://www.vim.org/scripts/script.php?script_id=4176Download the latest version, currently the latest isRainbow.vim3.4.02015-11-187.3Before installing the rainbow brackets650)
1. Multi-line Comment: A. Press CTRL + V to enter the column mode; B. At the beginning of the line, select the lines that need comment; C. Press "I" to enter insert mode;D. Then enter the comment symbol ("//", "#", etc.); E. Press the "ESC" key. 2.
Vim keyboard mapping (map) Setting keyboard mappingUsing the: Map command, you can bind a key on the keyboard to the VIM command. For example, using the following command, you can enclose the word in curly braces with the F5 key:: Map i{ea}Where: i{
1 repeating last commandIn normal mode . (decimal point) means the last command operation is repeatedNormal mode input x , delete the first character, the input . (decimal point) will be deleted again a character, in addition to also can be repeated
Vim file coding recognition and garbled processing in Vim, there are four encoding-related options: Fileencodings, fileencoding, encoding, and termencoding. In actual use, any one of the options error, will cause garbled. Therefore, each Vim user
1. Copy the/etc/profile to/tmp/directory and use the Find replacement command to remove the white space characters from the beginning of the/tmp/profile file650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/9B/wKioL1ep0naTId0XAAAHBfRpwpQ2
Https://github.com/junegunn/vim-easy-alignInstall with Vundle, add below to VIMRCPlugin ' Junegunn/vim-easy-align ' "Start interactive easyalign in visual mode (e.g. VIPGA) xmap ga (easyalign)" Start Interactive easyalign for a Motion/text object
since the beginning of learning Linux, like Blake Multi-operation is not familiar with, encountered some difficulties, recorded here. 1 Install VIM. I now understand that Vim has a console version and a GUI version. Console version seems to be the
1 Introduction to the project plugin for VIMThe purpose of the project plugin is to help users manage the source code in the form of projects.2 Download the project pluginA) Official website: http://www.vim.org/scripts/script.php?script_id=69.b)
When using Vi/vim on Putty or Xshell, press the number key on the keypad when you open NumLock and you cannot enter a number, but instead appear a letter and then wrap it (in fact, the key that corresponds to the top or bottom of the command
VI into VIM, the following # number indicates the numberFullselectedThe correct answer is:GgvgExplain the above command a little bit.GG lets the cursor move to the first line,VimOnly valid, VI invalidV is entering visual (visual) modeG cursor moves
VI and VIM are all editors in Linux, the difference is that vim is more advanced, can be regarded as the upgrade version of VI. VI is used for text editing, but Vim is more suitable for coding.The command line for Vim is now collected under:VI has 3
VIM Tutor makes you know enough commands-easily use VIM. If you wanna get full version of VIM Tutor, execute vimtutor in the shell. Lesson 1
The cursor is moved using either the arrow keys or the HJKL keys:h (left), J (off), K (UP), L
OutlineFirst, what is the vi text editor?Second, vim common mode and switchThird, VIM usage detailedFirst, what is the vi text editor?Text Editor can basically be divided into 2 categories: Full screen editor and line editor, such as SED is the line
NERD Tree Directory plugin
• Introduction to PluginsNERD Tree is a vim TreeView File Explorer plugin. NERD tree allows you to navigate through your file system in vim and open the desired file or directory.• Plug-in installation? Download Nerd
Reprinted from:-Tiansheng's diary-NetEase BlogThere are two problems with the character encoding of Vim/gvim under Chinese Windows:
No encoding detection function by default
If a file itself uses a character set larger than GBK (such as
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.