First, installation1) DNF InstallationFEDORA22 belowsudo Yum Install VimFedora22 and abovesudo Install VimIf you encounter an error similar to the followingfile /usr/share/man/man1/vim. 1 install of vim-common-2:7.4. 1718-1file from the package
Vim是一个类似于Vi的著名的功能强大、高度可定制的文本编辑器,在Vi的基础上改进和增加了很多特性。[1] VIM是纯粹的自由软件。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
I thought about it, to do something good, 1, first of all like it's the most motive to understand it 2, hearsay about that thing, will go to understand and go to play a turn 3, interest needs to be cultivated One add VIM header information. System:
To move a command:H: Shift LeftL: Move RightK: Move UpJ: Move Down^: Move to the first non-whitespace character of the bank0: Move to the first character of the bankGG: Move to file headerg = Shift + G: Move to end of fileTo switch to edit mode:I
The function of Vim editor in Linux is very powerful, many commonly used shortcut keys are very convenient, here will I learn the introduction of vim some of the commonly used shortcut keys to share to everyone, hope to help you.This is the bird in
Solarized is not really a strict plug-in, it is just a theme, this theme seems to be very good. One thing, because the final effect of Vim is also related to the Ubuntu terminal color, so we also need to make other settings. The specific process is
The Vim tool on the Linux platform can be said to be very well known and powerful, so this tool has to be said!Use the command vi file name directly to create and edit the file.Three modes of VIM:Command mode;Insert mode:Bottom line mode;The default
It is generally not recommended to change/ETC/VIMRC This file because this file change takes effect for all users,So generally only change the current user that changes the file Vim ~/.VIMRC (. indicates hidden files)The comments in the file are ",
Vim modeEdit mode (Command mode)Input modeLast-line modeConversion ModeEdit-InputI: Convert to input mode in front of the character that the current cursor is inA: After the current cursor character, convert to input modeO: Create a new line below
using the VS code plugin Amvim to quickly edit the code, memorize the following commandCommand key for switch to insert mode from normal mode
I
Enter body on the left of the cursor
I
Enter body at the
When opening a Test.java file with VI or VIM under Linux[Email protected] tmp]# VI Test.javaThe following information appears:e325: attention found a swap file by the name " . TEST.JAVA.SWP " owned by: root dated: Wed Dec 7 13:52:
/*************************************************************************** * Vim exit Keep displayed content * Disclaimer : * This article is mainly a record of what determines the VI exit when clear screen or not clear screen, because in the
command to enter VIVI FileName: Opens or creates a new file and places the cursor at the beginning of the firstVI +n FileName: Opens the file and places the cursor at the beginning of nthVI + FileName: Opens the file and places the cursor at the
First, move the cursor1, left shift H, right shift L, Move down J, move up K2. Page Down CTRL + F, PAGE up Ctrl + B3. Turn down half a page Ctrl + D, turn up half a page Ctrl + U4, move to the end of the line $, move to the beginning of 0 (number),
New VIM script to automatically add author information (script)Vim/etc/vimrc################### #尾部添加以下代码 ###############################Map ms:call addauthor () ' sfunction Addauthor ()Let N=1While n Let line = Getline (n)If line =~ ' ^\s*\*\s*\s*
As an old and enduring editor, Vim has its own strengths. Many people think that Vim's learning curve is too steep, in order to be able to use VIM, have to memorize a large number of commands. If you are new to Vim, just start to face a vast amount
Delete blank lines in a file:g/^$/d
g = Global, full file
^ is line start, $ is line end
D means to delete the
This can only be matched to a blank line without a white space character, if you want to delete a blank line with whitespace,
/************************************************************************************** * VIM Ctr L-v Conflict with Windows Paste * Declaration: * This article is primarily intended to document the problem that CTRL + V cannot enter visual block
Windows vim using the Vundle management pluginFirst install Gvim and Git, add the C:\Program files\git\cmd to the PATH environment variable, and then execute it in cmd:git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundleAdd the
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