Split-screen start vim
Use the uppercase O parameter to split the screen vertically.
vim-on file1 file2 ...
Use the lowercase o parameter to horizontally split the screen
vim-on file1 file2 ...
Note: N is a number that is
Vim has a variety of powerful plug-ins, not only because of the scripting language that it provides to write plug-ins, but also because of its good interface implementation, which supports the writing of plug-ins in languages such as Python viml.
Vim is a well-known powerful, highly customizable text editor like VI, which improves and adds many functions on the basis of VI, VIM is free software, and today we talk about the use of vim.This article is based on the Vim editor on Centos7, and
One, permission mask:For directory: Permission Mask 0022Maximum permissions rwxrwxrwx 777 minus the permission mask three bits is the directory permission 755For files:Highest privilege rw rw RW 666 minus permission Mask 644command to modify a
:[range]s/from/to/[flags]
range: The search scope, if no range is specified, acts on but forward.
:1,10s/from/to/Indicates a search substitution between lines 1th through 10th (containing 1th, 10th lines);
Commonly used vim operation self-summary, the great god please avoid:
Vim Open Exit SaveOpen it:Open Vim Practice_1.txt directlyYou can also open vim first, after: E file pathSave:: W file nameor exit Save: wq!Exit Vim:shift+zz in Normal mode
Edit the code in vim to copy it to the browser or somewhere else. After the copy with YY to go to another place sticky post found that is not the original copy of the content, very headache ...This is due to the fact that Vim has its own set of
In Vim, ESC is a common key, but we need to move so much to touch it, so how can we use it more conveniently?There are a lot of methods on the net, alt-[and DF Key mapping is the two methods I have used, now let's talk about their problems,DF Key
Enter into input mode in command-line mode to tap I, A, O, S, I, A, O, SThe difference between them makes a memo:
I: Start insertion at the cursor position match either
A: Start inserting in the word specifier the cursor
o: Insert a
Xu Liugen
Source:
http://blog.csdn.net/xlgen157387/article/details/53184811
Vim is a kind of vi-like text editor, but on the basis of VI added a lot of new features, Vim is generally respected as the best of the Class VI editor, in fact,
The VIM editor uses plotsVim is a kind of vi-like text editor, but on the basis of VI added a lot of new features, Vim is generally respected as the best of the Class VI editor, in fact, the real enemy from the different variants of Emacs. 1999
Vim-vi Improved:Vim is the VI editor of the upgrade version, is the standard Linux editor, with program writing ability, according to the font color to distinguish the correctness of the grammar, convenient program design.Use:# vim [OPTION] ... FILE
Vim Install yum install-y vimVim View basic information vim--versionVim Open and new file vim [filename]Vim operation after entering the fileNote: There are several modes of vim first1, shortcut key mode: Vim can only move the cursor up or down
Vi Visual Interface Bill JOY,S.U.N SPARC SunOS (Solaris)Vim:vi improvedModal Editor:Edit mode (Command mode):----> Default mode of operationLast-line mode:---->Input mode (insert mode):---->Replacement mode:---->Visualization mode:---->How to open
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current
Vim Command Collection 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
1. Need to go to the VIM website to download and install a executable file (Ftp://ftp.vim.org/pub/vim/pc/gvim74.exe) that can run on the WIN8 system.2. Set up the PowerShell environment so that the "Allow scripts to run" option is available, in 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