Advanced Editor, will contain macro features, Vim is certainly not missing, in Vim, the use of macros is very convenient:
: QX starts recording macros and stores the results in register X
Q Exit Record mode
@x play the Macro command recorded in
A moment with vim, a moment with Emacs, the big artifact commands are all confused. For_wind
vimtutor Tutorial
Beginners must see OH.
VIM Tutor
most basic command
Insert: I
Save exit:: Wq
Do not save exit:: q! Ignore The basic concept of
Simple to write a text editor, the function is very simple, but enough to the file IO related operations familiar with the possible function or the size of the allocation is not perfect. Please refer to the reference:
#include #include #include #
Vim View header file, library function method:
1, the simplest way is to install the corresponding library of the man Manual, directly in the terminal man XXX (function) such as man printf will see PRINGF related information, this method is simple
Key word: Vim
Objective
Vim is a Super Cow editor, can be said to be designed for the programmer editor, powerful some incredible. But its learning curve slightly steep, the first two days on the internet to find a small chart, relatively full, if
My Vim IDE Interface:
1, install VIM and vim Basic plug-in
First install VIM and vim Basic plug-in. These can be installed using Apt-get:
Lingd@ubuntu:~/arm$sudo apt-get install vim vim-scripts vim-doc
The vim-scripts is a few of Vim's basic
VIM open, cursor Movement, edit mode, normal mode, command mode toggle command
1. Cursor movement in the screen text can use both the keyboard and the left and right arrow keys, you can also use the HJKL letter key.
H (Shift left) J (downlink) K
First, Linux common commands-Has learnedCD (Path switching) RM (after-RF can delete files or folders) ls (view files and folders under current path) mkdir (Create folder) Touch (create file)Cat (view file contents) MV (move or rename files) rmdir
Requirements: Use VIM to develop Python for simple configurationCD to the user host directory vim. VIMRC paste the following:Version One:Set Encoding=utf-8"Remove the consistency of VI"Set nocompatible"Show line number"Set numberSet NobackupSet
VIM has six modes (but commonly used on three kinds of normal, insert, command line)???Normal mode??? In normal mode, the editor commands, such as moving the cursor, deleting text, and so on. This is also the default mode after Vim is started. This
Many beginners start vim, do not know how to enter characters: Press the half-day letter, the result screen is still empty.Vim is not the same as Notepad or word, and it is in normal mode when you enter text without opening it.There are 4 modes of
ThreeVI and VIM The biggest difference is to edit a text VI does not display color, vim display color.
Installation: Yum install-y vim-enhance
There are three modes of VIMA: General mode
Up or down cursor KJHL
ctrl+b Text
1. Vim Base operationVim is a text editor developed from VI. Code completion, compilation and error jumps have done some enhancements1.1 Entering edit mode
Command
meaning
I and I
I insert before the
Linuxcenos installing VIM-related operations1. Software Installation: Yum install-y vim2. Working mode-1. Normal mode1) primarily used to browse or modify text content2) Use VIM to open the default mode of the file3) Press the ESC key in any mode to
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorThe options and meanings of VIM commandsOption Comment-C command executes the command command before editing the file -r filename
: W writes data to the hard disk: w! If the file property is read-only, the file is forced to be written. However, it is important to note that this is true if your permission can be changed .: Q Leave Vim: q! Modified the file, and did not want to
1 install vim-gnome
1.1 switch sudo Su to root
1.2 apt-Get install vim-gnome
2 select text content
2.1 switch to visualization mode by V
2.2 press the arrow key to select the content (if you need to select the full text, press Gg to position
Reprinted please indicate from "LIU Da's csdn blog": http://blog.csdn.net/poechant
Through the vim practice manual (8) vimide-build your own IDE (A) and VIM practice manual (9) vimide-build your own IDE (B) you may not be satisfied with the two
Common Vim/VI commands:
Its replacement function is very useful. For details, see vimreplacement function. html
Search for a word:/word, or move the cursor to the word using the * command. Vim will get the word on the cursor and use it as 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.