1. Enter Command mode. Vim's command mode is to enter ":" in edit mode, and the cursor jumps to the last line of the screen, where the colon is displayed, and the command mode is entered.
The contents of the command mode are displayed on the last
yy copies the entire row of the cursor's row. or capitalize a Y.2yy or y2y to copy two rows. Sunglass, please extrapolate well. :-)y^ is copied to the beginning of the line, or y0. Does not contain the character where the cursor resides.y$ is copied
The source I saw was not posted, I turned to http://www.cnblogs.com/feisky/archive/2012/02/07/2341932.htmlwindows. Many people use source insight to write and view code. Vim can be used under Linux, initially feeling vim like Notepad under Windows,
Linuxcenos installing VIM-related operations1. Software Installation: Yum install-y vim2. Working mode-1. Normal mode1) primarily used to browse or modify text content2) Use VIM to open the default mode of the file3) Press the ESC key in any mode to
1. Open multiple WindowsSplit up and down open the windowVsplit around the windowSwitch between CTRL + WW WindowsCTRL + WQ launch Current window2. Move the cursor:Figure 0: Move the cursor to the beginning of the current line$: Moves the cursor to
The three modes of VI and the conversion relationship between the various modesThe VIM editor modifies the configuration file to implement indentation settings to display line numbers, etc.Vim configuration file default exists /ETC/VIM/VIMRCAt the
Completor.vim of Vim PluginVundle Installation:plugin ‘maralla/completor.vim‘If you want to complete a python complement: (My VIM supports Python3, so to:)pip3 install jediThen enable the completion function, .vimrc adding:let
1.VI and VimIn the world of Linux, most of the configuration files are in ASCII Plain text form, so the use of simple text editing software can be modified settings!It's often heard: Emacs, Pico, Nano, Joe, and Vim, and so on (note 1).Use of
When using vim to write code, I like to look at the definition of the structure in the header file while writing the implementation code, so that it is often used in multiple windows to edit, view the document.1. Open multiple files at the same time
Substitution and revocation of characters (undo action) 1. Replace and revoke (undo) commandBoth the Replace and undo commands are for normal mode operations
Command
Description
r+
Replace the
This problem has been frequently encountered recently, recorded here.My environment
SystemArchlinux
VimNVIM v0.2.2 / vim 8.0.1297
PremiseRequires VIM support+clipboard
Check methodvim --version | grep clipboard
If you
Vim is a powerful full-screen text editor, which is the most commonly used text editor on Linux, and its role is to create, edit, display text files, vim no menus, only commands.Vim working mode$ VI myfile.msgESC back to command mode from insert
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
Basic ConfigurationIn the case of any plug-in, the configuration is as follows:set nusyntax onset hlsearchset tabstop=4set shiftwidth=4set expandtabset smartcaseset iccolorscheme srcery-drkVundleVundle is a plug-in manager for Vim, like Neobundle is
Vim Editor DetailedVim for File Editor: Word processorVi:visual InterfaceVim:vi improved VI's enhanced versionThere are three modes of vim:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit mode--Input mode:I: Switch to input mode
1) Description: windows is Gbk,linux, which is UTF-8. The Chinese, which is edited under Windows, is garbled under Linux. To resolve this issue, modify the secure CRT character encoding to UTF-8 2) View supported character sets: What if there is
1.vim use1.vim AccessVim 1.py has file open no file New2. Command mode: Enter the last line mode3. Last-line mode: Wq Save and exit: Q Quit!4. Insert mode ESC exits to command modeInsertPress I (inserted before cursor position)Press A (insert behind
Vim and vimVim-common sorting: 1.1 move the cursor
0 or home: Move to the beginning of the line (first line)
$ Or end: Move to the last character (end of line) of this line)
G: Move to the last row of the file.
NG: Row n of the object to be
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