Install this plugin because some of the wrong operation cost a lot of time, the process is recorded, later need to install to avoid wasting time.Some preparatory work:1. First install VIM:1 sudo Install VIM-GTK2. After the installation is complete,
One, common commands1. "Sudo vim file name", edit the file as Administrator.2. ": q!" Force exit(PS: When you change the httpd.conf file, you will be prompted E45: ‘readonly‘ option is set (add ! to override) when you save ", must use": wq! " Save ..
The two days began to use Vim to learn the C + + language, the middle of the need to compile. Just wrote two small examples began to find that every time you have to quit vim to compile, it is too troublesome. That's when I thoughtBefore in a book
Open Terminal: ctrl+alt+tInto the vim file: Cd/etc/vimOpen VIMRC file: sudo gedit vimrcThen add the following to the end of the line if statement, "This symbol is a comment, the following content does not need to joinSet Nummber "Show line
From yesterday afternoon to now has been studying vim, beginner, from the most basic of vim command start to look at. is learned through the vimtutor.When I see the last chapter, I find the tip of the iceberg in the knowledge and knowledge of
First, if Vim is not installed, just enter the command in the terminal sudo apt-get install vim installation.Second, the configurationBy default, our newly installed Ubuntu editor is not displaying line numbers, syntax highlighting, smart indenting,
Https://github.com/lvxiaobo616/vim-indent-guidesReference Https://github.com/Yggdroot/indentLineInstall Yggdroot/indentlin FirstSteps:1. Download FontForge.2. Open the font you want to patch with FontForge.3. Click Goto in the View menu and select
This article mainly introduces the common editing commands of vim:Character editing: x: Delete the character at which the cursor is located; #x: Delete the # characters at the beginning of the cursor;Replace command: R: Replaces the
VIM Code Folding Vim code folding can be set using the "foldmethod" option, such as: Set Foldmethod=indentThere are 6 ways to fold code1. Manual//manually define folding 2. Indent//With indentation for folding 3. Expr//Use an expression to define
1. Mobile$: Move to end of line0: Move to the beginning of the lineG: Jump to the beginning of the last lineGG: Jumps to the beginning of the first line+: Move to the beginning of the next line-(not minus): Moves to the beginning of the previous
Using the Vim text editor in CentOS, there is a problem with Chinese garbled characters.The problem of any character garbled is caused by the problem of character set mismatch. The character set mismatch here is only a mismatch between the encoding
Vim Tips: Folding shortcut keysUsed in a very familiar, a period of time without, shortcut keys and forget, have to re-read the manual, today special finishing, and later find more convenient.ZC folds, folds only the outermost foldsZC collapses all
Often use SECURECRT under Linux to modify some configuration files, use VI to open always a color, looking up compared to the big head.Because VI does not support highlighting, you need to use VIM.Install Vim:yum install-y vim (Ubuntu using
CentOS system, modify the Vim profile/ETC/VIMRC add the following: 1) open VIMRC, add the following statement to make syntax highlighting: syntax on2) If the syntax is still not highlighted, then in the/etc directory Add the following statement to
Create a new file in the shell
# Vim A.txt
VIM has three modes: General mode, insert mode, bottom line modeThree modes of operation1. Command modeMove cursorHjklYY copyNYY copy n rows from cursor down0 move the cursor to the beginning of the
1, the source directory under the search.Ctags-r *2, search tag and open with Vim:Vim-t 3, some of the actions under VIM:
Keyboard command
Action
CTRL]
Jump to the tag underneath the
The default number of colors in the terminal of the VPS seems to be low. The support for Molokai has been bad.After finding out: Vim terminal mode defaults to 16 colors, and Molokai for 256 color schemeI thought it was a hardware problem, there was
First, Introduction 1. Vim is a powerful text editor, if used skillfully, will effectively help us improve the efficiency of editing text, programs. Vim Editor's use of the threshold is relatively high, many people are afraid to remember a lot of
when I just started using VI text Editor, I hate it! I think this is the most painful and anti-human editor ever designed. But I decided I had to learn it, because if you're using Unix,vi is everywhere and is the only editor that guarantees that you
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.