Many programmers want to add some information about the author's information to their own programs, so how should we implement this requirement?As an example of a shell script, just modify the/ETC/VIMRC configuration file and add the following to
Vim is really powerful.M Direct start vimVim filename opens vim and creates a file named filenameFile commandsOpen a single fileVim fileOpen multiple files at the same timeVim file1 file2 file3 ...Open a new file in the Vim window: Open FileOpen a
1, Vim ~/.VIMRC Enter the configuration fileIf you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI #设置自动缩进Syntax on #高亮2. BasicSPACEBAR to move one cell to the rightX Delete the
Excerpt from: http://blog.csdn.net/niushuai666/article/details/7275406I. Installation of VIMsudo apt-get install vimSecond, useTwo modes of vim: Normal, Insert
After starting vim, Vim is in Normal mode.
Let's go into Insert mode, press
Reference Address: Https://github.com/ma6174/vimVIM/ETC/VIMRC " Below is the Add F4 hotkey to automatically add the file header note Information Map ms:call addauthor () ' Sfunction addauthor () let n=1 while n This article from "Do not
Vim is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. VI is the abbreviation for "Visual Interface", Vim is VI
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
Practice One:Add or remove users by accepting user-entered user names,./adminuser.sh --add User1,user2,jack,donggen means adding 4 users who are automatically entered, with the same password as the username entered--del means to delete
Http://www.cnblogs.com/end/archive/2012/06/01/2531147.htmlYou can display the available registers, which note two special registers: "* and" +. These two registers are communicated with the system, the former relates the system selects the buffer,
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
The VIMRC file is a VIM environment settings file.The overall vim setting is in the/ETC/VIMRC file.Modifying the/ETC/VIMRC file is not recommended, and each user can set up vim in the user's root directory and create a new ~/.VIMRC.My VIMRC
vthe character visualization mode entered with the command (characterwise visual modes). The text selection is in characters.
Vthe line visualization mode entered with the command (linewise visual modes). The text selection is in the behavior unit.
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
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
My first blog, 2 o'clock in the morning overtime do not want to sleep, casually write points. I rookie one, study hard, strive to become a great God.The first article to write something, I am currently engaged in the operation of the dimension, as
Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
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
-Youcompleteme exact words: On Ubuntu 16.04, Python support is not working due to enabling both Python2 and Python3. Read answer by Chirinosky for workaround.-The first one to answer the question,
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