Learning Linux using Vim to write C/D + + code is necessary, VIM plus some necessary plug-ins can make development more efficient, but in the online search of the data are copied each other and not very detailed, decided to summarize their own
If you set the auto indent set autoindent in. VIMRC, when you paste the code in insert mode, VIM automatically indents the code, resulting in a confusing format. The solution is as followsSetting the set paste option in. VIMRC does not cause
Open multiple FilesVim File1 file2: Open/:e does not close vim open fileSub-frame window: New Window: SP Landscape: VSP Portraitctrl+w window switch: TABC Close the current window: Tabo Close All windows: Ctrl+w + Vertical expansion (Increased
1. Delete charactersX: Delete the character under the cursorDD: Delete a whole line, including line breaksJ: Delete the line break of the current line and execute anywhere in the current line2. Withdrawal and annoyance cancellationU: Undo the most
Like, it's all I'm used to.Up or down: JKHLNext word: wFirst word: bNext screen: Ctrl + FPrevious screen: Ctrl + BSearch some_string:/some_stringReplace the global some_string with new_string:%s/some_string/new_string/gContinue search Next:
As we all know, when using JS's regular to verify Chinese, you can use: /[\u4e00-\u9fa5]+/.test (' Chinese ') However, when you use this regular in Vim, you will be prompted not to find a match E384: The Beginning (end) of the file found is still
IntroducedFinally found a plug-in, for vim under the code block auto-completion support is very good. Recommend Snipmate to everyone.Snipmate can help you implement similar textmate functions on vim, the ability to automate code blocks is very
Press i to enter edit modewq! force Save and exitQ! Do not save, force quit! Have the meaning of compulsionDirectional keying:KH J LCtrl + F Move down one pageCtrl + b Move up one page0 at the beginning of a linethe last side of the $ linethe last
I've always wondered how a good software like Vim doesn't have a detailed documentation.Again excellent, novice will not use is useless ah. Besides, who was born to be a veteran?Only that simple tutor?Although this tutor can be used, but as the "God
Save the following content as Darkslategrey.vim, and put it in the ~/.vim/colors directory."Vim Color File"maintainer:jiqing ()"create:2011-04-11"Last Change:2011-04-11"Cool Help Screens": he group-name": he highlight-groups": he cterm-colors"your
Jostree Reprint Please specify the source http://www.cnblogs.com/jostree/p/4030057.html0, the Operation shortcut key: for block, press Ctrl+j can jump quickly.First, the Environment shortcut keys1.f52. In the Insert State, enter a shortcut string
Today I will share with you how to find and replace vim.
For example, there is an article. Chinese and English are not limited. If you want to find the text or words in the notepad of the win system, press Ctrl + F to query them.
In vim, you
This article is from svitter's blog
Was Vim used about a year ago? This is also an uncertain time. The specific time when Vim was used has been forgotten.It is still easy to use, but many things have not been carefully studied yet. The simplest
Edit. vimrc in the Home Directory (create if none exist ).
SYN on "syntax supports" common conf {general configuration set ai "automatic indent set BS = 2" in insert mode, use the return key to delete set showmatch "code matching set laststatus = 2"
In centos, only vim-minimal-7.x is installed by default. Therefore, whether you enter VI or Vim to view files, the syntax function cannot be enabled normally. Therefore, you need to install two other components with Yum: vim-common-7.x and
1 "show row number 2 set nu 3 4" Hide assist prompt 5 set shortmess = ATI 6 7 "syntax highlight 8 syntax on 9 10" file type automatic detection 11 filetype on 12 13 "Use Vim keyboard mode 14 set nocompatible 15 16" No need to back up 17 set nobackup
Linux-vim, the most common operation, linuxvim
1. Open a file
Vim + #: open the file and locate it in line #
Vim +: open the file and navigate to the last line.
Vim +/PATTERN: open the file and locate the first line of the line matched by
SecureCRT ᬠ½ Ó linux £;vim ñé «{{}}}}}â
When Zookeeper 2 then 'zookeeper VIM £ ;?###************************ during» möö§ Ö öguíà à ³ Ð Ó? please refer to the following example for more information: 'I have bought £° ******************************
Vim-ctags-taglist-netrw, vimtaglistctags
Vim ConfigurationIn ~ /. Configure the following content in the vimrc file, or perform global configuration in/etc/vim/vimrc. Common configurations are as follows:
syntax onset tabstop=4set nuset
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