Switch to root user: sudo su quits root user: ExitTerminal:
Generate multiple terminals: Shift+t right-click Split
Toggle ALT + Digital CTRL + up/down/left/right in different terminal keys
Vim Installation plugin:
Add
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
How to cut shortcut keys:dd:剪切光标所处当前行n + dd:剪切光标所在行及以下共 n 行按 p 粘贴在光标所在行Command line mode:例如剪切1到10行,并粘贴在12行处:1,10 m 12How to copy shortcut keys:yy:复制光标所处当前行n + yy:复制光标所在行及以下共 n 行按 p 粘贴在光标所在行Command line mode:例如复制1到10行,并粘贴在12行处:1,10 co 12To delete a
Reprinted from Https://www.jetbrains.com/help/idea/using-intellij-idea-as-the-vim-editor.htmlThis feature was only supported in the Ultimate edition.The following is only valid when Ideavim Plugin is installed and enabled!Before you startMake sure:
NAMEVim-vi improved, a programmers text editor #vi的改进, a program1. How to move the cursor
Ctrl+f
The screen moves down one page
0 (number 0)
Move to the beginning of the line
$
Move to end
Tag: Pos Post search detects down art ble MRC consistencyVIM basic Commands
Cursor movement
G last lineNG moves to nth row n return cursor moves down n rowsGG First Line
Find and replace
/wordn Repeat previous Find
Eighth chapter, vim text editor chapter content
Three main modes of using VI and VIM
Move the cursor into insert mode
Change, delete, copy text
Undo Change
Search Documents
Vim Register
Visualization and Multi-window
When vim pastes the code, the pasted code (SHIFT+INSERT) is automatically indented, resulting in a very confusing format.Two methods are described below:(1) in Vim, enter the command mode input: Set paste, in the paste, it will not garbled. However,
have been looking to see if there are quick ways to Select all , but many of the web is repeated, and the wrong, such as:1, $y, what is this? To write also written: 1, $y, but I tell you, write: 1, $y is all copied, not a full selectionDG, this is
Help on viewing Help in System 1.vim
Press F1 vim to open your own preset help document in normal mode
Enter :h shiftwidth shiftwidth The open Help file in command line mode
Input :ver display version and parameters in command line
Fast indent 1. Use commands to quickly adjust indent operationsThis section learns how to indent quickly in vim and indent operations are effective in normal modeOpen a file for editing$ vim protocols
Normal mode input 15G , jump to 15
Linux EditorEdit the file to be quick and not brokenWhat is the current editor? Learn Which? The first thing to consider is what to do with the editor, if you are editing plain text files, no choice, only vim.Common in Linux system Default editor is:
Vim Editor1 vim ModeEdit mode (command-line mode)Last-line modeInput mode2 Mode ConversionCommand line------> inputI: Switch to input mode before the current cursor characterA: After the current cursor character, switch to input modeO: Under the
When using a Docker container, there are times when Vim is not installed, and when you tap the VIM command, you are prompted to say: Vim:command not found, this time you need to install VIM, but when you knock Apt-get install Vim command,
One, when the Vim is not installed, prompt installation[Email protected]:~/test$ VIM ABCThe program ' Vim ' is already included in the following packages:* VIM* Vim-gnome* Vim-tiny* Vim-athena* Vim-athena-py2* Vim-gnome-py2* VIM-GTK* Vim-gtk-py2*
Before you beginThe human brain's processing of words is flat, so we browse articles, find materials, or refactor code, either horizontally or vertically, or use search to make text as a whole. While editing text, writing code is not horizontal or
Note content:L 5.1 Vim Introduction L 5.2 Vim color display and move cursor L 5.3 Vim general mode move cursor L 5.4 Vim general mode copy, cut and paste Note Date:2017.8.45.1 Vim Introduction Vim is a similar toViThe well-known powerful, highly
Some of the commands commonly used by the VIM editor under Linux (what to add)Command mode:: Set Nu #显示行号: Syntax on #语法高亮: Set tabstop=4 #tab back four gridVI has three modes: insert mode, command mode, low line modeInsert mode: You can enter
Find a lot of online, use up a variety of problems, especially in a variety of formats, find an article here, write down.Insert header file template implemented in pure VimscriptAutocmd bufnewfile *.c Exec ": Call SetHeader ()" func! SetHeader ()
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.