PS: Intended to document the configuration of Vim under Windows Gvim and Linux. Every accident in the province is searched for a blog, reconfigured.An ancient and powerful editor. Simply like to write code silently under the cool terminal.(Used
ESC: Command-line modeI: Insert command a: Additional command o: Open command C: Modify command r: Replace command s: Replace command above enter text input mode: Enter the last line modelast-line mode:W: Save Q: Exit, no save can not exit Wq: Save
Liunx basic 1, directory? /: root directory, generic root directory only, there is only one root directory under Linux. Everything starts here, for example:/home is first from the root directory/start, and then into the House directory.
Create a new VIMRC in the user's home directory. For example:Vim ~/.VIMRCthen you can copy it in. The configuration is as follows:"turn off VIM consistency principleSet Nocompatible"Show Line NumbersSet number"sets the row and column information for
Vim is the most common text editor on Linux systems, and almost any Linux distribution will be installed by default. Yes, it's a free software. It's good to learn the basic operation commands of the Vim editor, which can make your work more
(iv) General mode common operation"H (or left ARROW key)" Cursor moves left one character"J (or DOWN arrow)" Cursor moves down one character"K (or Up ARROW key)" Moves the cursor up one character"L (or right ARROW key)" Cursor moves right one
Vim is called the god of the editor, so when we operate the Linux system, does the editing work feel powerless? Today, I am talking about some of the VIM's operational commands I have summed up with you to share, there are shortcomings also please
Vim is divided into three different modes: Command mode, edit mode, last line mode.Command mode: Copy, paste, replace, move cursor search and so on.Edit mode: Used to add, delete, modify, and so on the document.Last-line mode: File save, launch,
About VIMVi:visual Interface, Text editorText: ASCII, UnicodeType of text editing:Line Editor: SEDFull Screen Editor: Nano, VIVim-vi improvedOther editors:Gedit a simple graphical editorGvim a graphical version of the VIM editorOpen file: # vim
Vim can be copied and pasted in multiple sections. That is, the content x is copied to the register "1", the content y is copied to the register "2", paste can be selected from "1" or "2" paste.(1) VIM has 13 pasteboard, respectively 0, 1, 2 、...、 9,
Create a modified file with vimVim Text EditorFormat vim [[/directory/] file name]Three different modesCommand modeInput mode (insert mode) input contentLast-line mode save and exitTo hit the corresponding command in the appropriate modeCommand mode
Introduction to Vim
Yum install-y vim-enhanced installation package
Vim is an upgraded version of VI
Vim is color-displayed
Sub-general mode, edit mode, command mode
Vim color display and move cursor in general mode
The same
Vim edit mode
I enter edit mode from where the cursor is located
I enter edit mode from the beginning of the cursor position
O Enter edit mode from below the line where the cursor is located
O Enter edit mode from the line where the
Introduction to Vim
Vim is an upgraded version of VI
Vim is a color-display
Installing Vim:yum install-y vim-enhanced
General mode, edit mode, command mode
Vim color display and move cursor
Vim editing files are
1. Copy the specified line to the next line of the current cursor.#假设当前光标在10行, want to copy line 5th to line 11th: 5copy. #copy命令有2种简写 ' Co ' and 't', so you can also write the following format: 5co.:5t.Reference: http://liuzhijun.iteye.com/category/
Vim's commands are too many to forget, so I decided to sort out the various commands of VIM, including vim insertion and deletion, cursor Movement, Multi-window editing, copy-and-paste, find-and-replace, and some common commandsDelete operationDD
Type command 1. Command format:Type [parameters] [command]2. Command function:Use the type command to easily find out whether a given command is an alias, a shell built-in command, a file, a function, or a keyword. You can also find the actual path
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.