: Half-screen to the end of the file
CTRL+F: Flip a screen to the end of a file
ctrl+b; Turn one screen to the top of the file
NZ: Rolls line N to the top of the screen and scrolls the current line to the top of the screen when n is not specified.
VIM Insert Text command
I: Before the cursor
I: At the beginning of the current
A: After the cursor
A: At the end of the current line
O: A new line below the current
Summary of the first lecture1. The cursor can be moved in the screen text using either the arrow keys or the HJKL letter key.H (Shift left) J (downlink) K (upstream) L (shift right)2. To enter the Vim editor (from the command line prompt), enter: Vim file name 3. To exit the Vim ed
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 cursor, switch to input mode;A: After the character of the current cursor, switch to input mode;O: At the bottom of the
Text editor, word processor
Ascii
Nano, SED
Vi:visual Interface
Vim:vi improved
Full screen editor, patterned editor
Vim mode:
Edit mode (Command mode)
Input mode
Last line mode
------------------------------Mode conversion:
Edit--> Input:
I: Switch to input mode at the front of the character at the current
Linux text editor Vim/Vi details, vimvi
Ii. Text Editor Vim/Vi (later called the upgraded version of Vi) Vim/vi is a powerful full-screen text editor and the most common text editor on
1. Introduction to the VIM editor modeVim typically has 4 modes:
Normal Mode (Normal-mode)
Insert mode (Insert-mode)
Command mode (Command-mode)
Visual Mode (Visual-mode)
1.1 Normal ModeNormal mode is generally used to browse files, but also include some copy, paste, delete and other operations. In this case, the general key/key combination will be treated as a function key without
Vi:visual Interface---------------------- full screen editor, modal editorVim:vi IMprove
Vim mode:
Edit mode (Command mode)Input modeLast-line mode
Mode conversion:
Edit → Input
Input → edit ← last line
Edit → last line
i: input before the cursora: input after cursoro/o: New Line inputI: Input at the beginning of lineA: End o
VI Editor: Full-screen text editor
Vi:visual interface, visual interface;
Vim:vi improved
Vim has more new features relative to VI:
1. Syntax coloring display;
2. More orders;
3. Historical records;
Vi: Patterned text editor
mode:
Edit mode (command mode), default working mode
Insert
Vi:visual InterfaceText editor, word processorAsciiVim:vi imporvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character that the current cursor is in, switch to input mode:A: After the current cursor character, switch to input mode:O: Under the current cursor line, create a new row and switch to input mode:I: Convert
Sublime InstallationSublime Text is a code editor. Sublime text was developed by the programmer Jon Skinner in January 2008 and was originally designed as a vim with extensive functionality.Sublime text has a beautiful user interface and powerful features such as code thumbnails, Python plugins, code snippets, and more. You can also customize key bindings, menus, and toolbars. The main features of Sublime T
About VIMVim is a powerful full-screen text editor, which is the most common text editor on Linux/unix, which is used to create, edit, and display text files.Vim has no menu, only commandsThree modes of VIM: Command mode, insert mode, edit modelowercase letters i/a/o from command mode to insert modeReturn from Insert mode to command mode with ESC keyFrom command
, if you use the "E" key in insert mode, the letter "E" is entered. If you want to achieve the same effect in insert mode, you need to define it as follows:This allows you to enter the "E" key in insert mode to move the cursor to the end of the current word and still remain in insert mode. However, there is a problem: You can no longer enter the text "E". If you want the character "E" to return to normal text input mode, you can use the following command: ": unmap! E "(But this command does not
How to enable the vim editor to display the row number permanently?There may be n accounts in linux, so there are two ways for vim to display the row number: to display the row number only for the current user and to display the row number for all users
I. only ask the current user to display the row number and enter the command:
Switch to the previous file: Last switch to final file: first to switch to file oneExit: QA All exits17, split screen display a fileCtrl+w,s: Horizontal splitter windowCtrl+w,v: Vertical splitter windowToggle the cursor between windowsCtrl+w, W: QA Closes all windows18. Edit multiple files in a windowVim-o: Horizontal Split displayVim-o: Vertical Split display19. Save some of the contents of the current file as a different file: W: Addr1,addr2w/path/to/some/where20. Populate the contents of ano
Today, I use VIM to edit HTML pages in Centos7 and find Chinese garbled. So Baidu, found that everyone seems to be around why it will occur in Chinese garbled, but the solution is not very in place. Garbled is nothing more than character encoding, decoding way there is a problem, we need to find the Vim configuration file about the character encoding, that is, the VIMRC file. The point is, where is the VIMR
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 :yum install-y vim-enhanced 2. Configuration file:/ETC/VIMRC #全局配置文件/HOME/.VIMRC #用户配置文件 (does not exist, needs to
Vi and vim Editor (8): Global replacement (1), vivim
This chapter describes the global replacement commands in the vi editor. The global replacement command can be used to automatically replace all words in the file. Generally, two ex commands are used for global replacement: ": g" (global), ": s" (substitute ).
Replacement command:
The syntax of the replace comm
expression, you can include other elements in addition to literal characters:
Character class: The POSIX character class includes keywords enclosed in [: and:].
Proofing symbols: A collation symbol is a sequence of multiple characters, but must be treated as a unit. and use [. and.] Enclose the required characters.
Equivalence class: The equivalence class lists all the character sets that should be treated as equal, enclosed in [= and =].
All three classes must appear in a
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.