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
Too simple to say, just find a manual can find, here to say some tips, but also recently used to force out of the study, hehe, but quite convenient.
1. Global replacement(1) v + G + $ Select all, then enter: s/original string/target
Vim is the most famous text/code Editor on Linux systems, and the enhanced version of the Vi editor in the early years, and GVim is its Windows version. Its biggest feature is the full use of keyboard commands for editing, while leaving the mouse to
Many of the things in a Linux system are in the form of scripting code, configuration files, and you need to edit them frequently when using Linux systems. Obviously, if there is no text editor, the road to the river is impossible.
My choice is vim.
http://denven.blog.hexun.com/11727196_d.html using NETRW plugin: NETRW supports reading and writing files across networks.
Commonly used:
Gvim ftp://username@hostname[:p Ort]/full_directory/filename
Vim ftp://username@hostname[:p Ort]/full_directory/
Vim editor and Shell command script vim text editorThe Vim text editor features three modes: Command mode, last line mode, and edit mode.Command mode: Control cursor movement, can delete, copy, paste and find text.Input mode: Normal text
Basic Operation Open File vim [option] file +n. :打开文件后,让光标处于第n.行的行首,+默认行尾 \\ vim +5 file 打开file并让光标处在第5行Enter insert mode i \\ 在光标处输入 I \\ 当前光标行的行首输入 a \\ 在光标所在处后面输入 A \\
1. Copy the/etc/profile to/tmp/directory and use the Find replacement command to remove the white space characters from the beginning of the/tmp/profile file %s/^[[:space:]]*\([^[:space:]]*\)/\1/g2. Copy the/etc/rc.d/init.d/functions file to
This problem has been frequently encountered recently, recorded here.My environment
SystemArchlinux
VimNVIM v0.2.2 / vim 8.0.1297
PremiseRequires VIM support+clipboard
Check methodvim --version | grep clipboard
If you
permissions are numeric:Basic Permissions r=4 w=2 x=1Additional permissions suid=4 sgid=2 Stiky bit=1Set permissions by using numeric formSpace occupied by the statistics file: Dudu [Options] ... [Directory or file]-S: Counts the total amount of
1) Description: windows is Gbk,linux, which is UTF-8. The Chinese, which is edited under Windows, is garbled under Linux. To resolve this issue, modify the secure CRT character encoding to UTF-8 2) View supported character sets: What if there is
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
Unit 41. Managing input and outputIn a Linux system, the correct output number is 1, the error output number is 2Perform "student" with ordinary users in the system650) this.width=650; "Src="
VI and VIM editor up and down into ABCDProblemOne time when using the VI and Vim Editor in Redhat with ordinary users, found in the VI and Vim Editor: in the command line mode can normally use the upper and lower keys, but in the non-command line
Installing the VIM plug-in rainbow bracketsVIM website Recommended Pluginhttp://www.vim.org/scripts/script.php?script_id=4176Download the latest version, currently the latest isRainbow.vim3.4.02015-11-187.3Before installing the rainbow brackets650)
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
Daily CollectionVim editor:how do I enable and disable VIM syntax highlighting?Building a Python environmentvim editor:how do I enable and disable VIM syntax highlighting?Perfect
First step: Install Git and configure CurlNot much to say, Vundle is based on the GIT architecture, so, which is a must.Download Msysgit and install it (see Http://drupalchina.cn/content/windows-xi-tong-xia-gitan-zhuang-tu-jie) and Git The cmd 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service