Vim Multiple Line Indent tips
1. Enter the visual state by V, select multiple lines and indent or indent with > or 2. Automatic indent typesetting is usually used according to language features: in the command state = = Two for the current line, or
http://denven.blog.hexun.com/11727196_d.html using NETRW plugin: NETRW supports reading and writing files across networks.
Commonly used:
Gvim ftp://username@hostname[:p Ort]/full_directory/filename
Vim ftp://username@hostname[:p Ort]/full_directory/
Move cursorOn: K NK: Move up n rows 9999k or GG can move to the first line G move to the last rowUnder: J NJ: Move Down n rowsLeft: H NH: Move n columns to the leftRight: L nl: Move n columns to the rightW: Cursor moves forward with a word NW: the
Shear Board SharingThis is very important, or every time the right-click menu will be dashed.In the 用户设置 add: "vim.useSystemClipboard": true,Changes in the cursorI think this is also important, after all, in the Vscode, the status bar is
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
1. Home directory create the. vimrc fileSet Nu # Sets line numberSet tabstop=4 # tab TAB indentSet Autoindent # Auto IndentSet Showmatch # parentheses match highlightingExecute Pathogen#infect () # # # # # # # # # # # Syntax on this three line is
First, move the cursorH,j,k,l, down, left, right.CTRL-E Mobile PageCtrl-f up a pageCtrl-b down one pageCtrl-u Half Pagectrl-d down half a pageW Jump to the next word, split by punctuation or wordW jumps to the next word, long jump, as end-of-line is
are all moving in command mode:J----> DownK----> UpL----> rightH----> LeftSave:W----> SaveExit:Q----> ExitQ!---> do not save forced exitPositioning:Number, G: Quickly navigate to the beginning of a lineG----> Navigate directly to the beginning of
1. Background informationSince joining Redhat, I have switched the default login user Veli of the home desktop (Ubuntu 16.04 LTS) to Huanli, primarily to align with the company's computer configuration to facilitate future WFH, but have triggered a
1) yy (function Description: Copy the current line of the cursor)Y digit y (function Description: Copy a paragraph (from the first line to the first line))2) P (function Description: Arrow moves to Destination line to paste)3) U (function
Why does ^m appear?1. 在windows下的文本文件的每一行结尾,都有一个回车(‘\n‘)和换行(‘\r‘)2. 在linux下的文本文件的每一行结尾,只有一个回车(‘\n‘);3. 而在linux下打开windows编辑过的文件,就会在行末尾显示^M; 4. 注:^M在vim中为crtl+MHow to fix? Method one in the VIM command line
I. VIM's editing modeSecond, vim command modeThird, VIM practice operation# Cp/etc/dnsmasq.conf/tmp/1.txt (1) Move Down, right, left, and up 6 characters (6j 6l 6h 6k) respectively. (2) turn down and up two pages (two times ctrl+f and Ctrl+b
5.1:vi and Vim:Vim is a text editing tool for all Linux systems, the same as with Windows Notepad, used to manipulate and edit files:Vim is an upgraded version of VI, VIM (will display font color): VI (no color is displayed)1, the installation of
Vim brace matching is highlighted in the vim7.4 version, which is turned on by default. But the default parentheses matchThe highlight color is light blue, in the light of the blind at the same time, seriously affect our writing code, the most
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
Using the VIM Editor:VI is working in the character terminal environment of the full-screen editor, by the command to achieve the corresponding editing and operation functions, vi Editor can use three different modes of operation:Command mode: Start
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
In the Linux family, the Vim editor is the system's own text editor, which is powerful and self-contained.I have small white, just contact with Linux, to modify a text file, it is not possible to operate like windows, and, worse, into the VI editor,
You can undo one operation by pressing u in VIU undo the last step operationCtrl+r Redo the previous undo operationVim is the most famous text/code Editor on Linux, and the GVim of the Vi editor of the early years, while the Windows edition of 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.