http://top.jobbole.com/1370/
The Sublime Text Editor has a very powerful "multiple selection" feature that supports "one edit, multiple changes". Since the vim-multiple-cursors this plugin, VIM users no longer need to envy Sublime Text users. After you install the plug-in, select multiple selections by pressing Ctrl + N. After selection, you can combine Vim wi
I. VIM's editing modeSecond, vim command modeThird, VIM practice operation# Cp/etc/dnsmasq.conf/tmp/1.txt (1) Move Down, right, left, and up 6 characters (6j 6l 6h 6k) respectively. (2) turn down and up two pages (two times ctrl+f and Ctrl+b respectively). The (3) Moves the cursor to line 49th (49G). (4) Move the cursor to the end of the line, and then move to the beginning (Shift+4, shift+6). (5) moves
as a stringYou can also write this:1, $s #/etc/hosts#xiaobo.com#g: 1, $s/dnsmasq/aminglinux/gNote: 1. Replace ":" before adding "2.$ that the end of the line can also be represented by a number, such as 1,100 for the first row to the 100th row3. s means replacement4.////Front two/middle write what to replace two/middle write what you want to replace5. G global variable represents allDe-translation:where/etc/hosts/need \ de-translationor///change to # # # or @@@Small knowledge:: Wq and: X If the
Cainiao configures vim and cainiao vim
I don't know how cainiao configures vim.
If you want to make your vim and VS similar, you must use this URL.
Http://www.open-open.com/lib/view/open1429884437588.html
After Linux is started, it is inevitable to use the vim editor. At the
Extremely easy-to-use Vim configuration and Vim ConfigurationHttps://github.com/ma6174/vim-deprecatedsimple installation tips:
Open the terminal and execute the following command to automatically install it:
wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
Or manually install: (ubuntu is used as an e
Before using vim, let's take an appetizer and learn some common commands in Vim. With these basic commands, we can use Vim more conveniently and speed up our work ~
Note: The following commands are mainly used in the normal mode of VIM.
1. Create/modify a file
When you need to edit an object, the object
Mastering the common commands of the Vim editor can greatly improve the efficiency of our text editing. Basic Operations
When we first contacted the Vim editor, we learned some of the following things:
Just enter the Vim editor, we are in Normal mode , press I on the keyboard, we enter the insertion mode . In insert mode, if you press ESC, you are back in normal
Dark Horse programmer-vim Editor, dark horse programmer-vim
I. Basic operations
1. ENTER the vim Editor: vim filename
2. move the cursor
Left shift: h
Shift right: l
Move up: k
Move down: j
3. Delete the character where the cursor is located: x
4. insert or add text:
I insert text before the cursor
A attaches text beh
Vim shortcut keys and vim common shortcut keys
1. vim ~ /. Vimrc enter the configuration file
If you do not know where the vimrc file is, you can use scriptnames to view it.
Set nu # row number
Set tabstop = 4 # A tab has four spaces.
Set ai # set automatic indent
Syntax on # Highlight
2. Basic
Move the Space key to the right
X Delete the following character X D
Linux vim commands and linux vim commands
A detailed introduction of vim commands in linux.
Some advanced editors will contain macro functions, which are certainly not missing in vim. It is very convenient to use Macros in vim:
: Qx starts to record macros and saves the resu
Talk Vim together (21st back: NerdTree continuation of Vim plug-in), vimnerdtree
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we introduced the NerdTree in Vim
Plug-in .. In this case, we will continue to talk about the NerdTree plug-in, but the last time we talked a
Python auto-completion (vim) and python auto-completion vim
I. vim python Automatic completion plug-in: pydiction
The following python code can be automatically completed:
1. Simple python keyword completion2. python function completion with parentheses3. python module completion4. Functions in the python module and variable completion5. from module import sub-mo
Run the VIM exit command and run the vim exit command.
Note: These commands are preceded by a colon:
You can use either of the following methods to exit Vi and return to shell after editing the document.
In command mode, two uppercase letters are used for a connection. If the edited document has been modified, Vi saves the document and exits, and returns to shell; if the edited document has not been modifie
Vim basic operations and vim basic commands
Copy y
Paste p
Cut d
When the row processes yy (copy row), dd (cut row)
Multi-row processing nyy (copying multiple rows) and ndd (cutting multiple rows)
Line paste when row copy is used
Partial row pasting when using region Replication
Intra-row processing y ^ (copying from the cursor to the beginning of the line), y $ (copying
Vim environment variable configuration, background color configuration, and vim environment variable background color
When we use vi or vim, if we want to display the row number, we may do this: switch to the command mode, enter set nu, and then press the Enter key to display it; in addition, when programming, sometimes we want to press the Enter key, the cursor
Vimdiff --- VIM comparison and merge tool, vimdiff --- vim merge
This article comes from the IBMDW http://www.ibm.com/developerworks/cn/linux/l-vimdiff/
Comparing and merging source program files (usually plain text files) has always been an important part of software development. Many powerful dedicated comparison and merge tools on the market, such as BeyondCompare. Many IDE or software configuration mana
1. Vim Common copy and Paste commandVim's copy-paste command is undoubtedly y (Yank), p (paster), plus yy,pPs:Vim has a very interesting convention (I think it is a convention), that is, the case of a command is to achieve a certain function, but the direction is different, such as:W Jump to the next word,w: Jump to the last WORDF a line forward to find and jump F: Reverse ....Then some double-written letters have line operations:YY Copy line dd
One, vim repeat command 1. Repeat the last commandIn normal mode . (decimal point) means the last command operation is repeatedCopy test files to a local directory$ cp /etc/protocols .Open a file for editing$ vim protocolsNormal mode input x , delete the first character, the input . (decimal point) will be deleted again a character, in addition to also can be repeated dd delete operation2. Execute commands
Common vim commands, vim
VIM is generally divided into several modes to distinguish whether the input is a text or a command through different modes:1. Normal mode (common mode, c-mode ):Once you enter VIM, it is in c-mode. You can only enter commands and text. These commands may be commands for moving the cursor, edit
Linux learning notes (10) Text Editor vim, learning notes vim
Vim is a powerful full-screen text editor, the most common text editor for Linux/Unix. It is used to create, edit, and display text files. Vim features no menus and only commands.
Vim mainly has three working mode
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.