This chapter learns how to save commands in the VI editor.Save command:There are many ways to save a long sequence of commands in VI and EX, so that when you call a saved sequence, you only need to enter a few characters.Word abbreviations:You can
: 1, $s/^}/}\r/parameter 1,$-execution interval, full text s-replace command ^}-begins with the character '} '}\r-replace the head '} ' with '}\r ', i.e. add a blank line after the end of the function. If you want to add more than one blank line,
Question: How do I implement the code folding function in vim? Workaround: Use Vim's own shortcut keys and commands directly, you can achieve a powerful folding small test folding: 1:set fdm=marker in vim to execute the command 2 5G the cursor jumps
Basic setup information (reference URL: http://hessian.cn/p/1026.html): "or configure/.VIMRC file. Syn on" syntax supports set laststatus=2 "Always show status bar set tabstop=2" The length of a tab set softtabstop=2 "a tab length (can be greater
I have always thought that Linux is very powerful, but let me say where it is strong, I really can not say. So I intend to learn Linux from today, based on the early master of some basic Linux operation commands, in this is not introduced. Good
There are two cases in which the open file appears with the ^m symbol:1. Vim is configured as Fileformat=unix, and the files you open are in DOS format. The Unix-formatted newline character is 0A (ASCII) and the newline character in ,dos format is
Start vim under Ubuntu, prompting for no color scheme blackboard (or any other),How do you choose your favorite color scheme? In/usr/share/vim/vim72/colors, (here you select the appropriate folder based on your vim version)You can see a lot of files,
Multi-line comment:1. Enter the command line mode, press Ctrl + V to enter the visual block mode, then press J or K to select multiple lines, and mark the lines to be annotated2. Press the uppercase letter I and insert the annotator, for example //3.
Vim has been learning for nearly two weeks. It is indeed a very powerful editor. I believe it will speed up text more quickly after a while.CodeEditing efficiency.
At ordinary times, I am mainly engaged in Web development. Based on the Asp.net
1. Temporary Modification
In VI, set tabstop = 4 or set Ts = 4
2. Permanent modification
Vi -- version: view the file to be modified
If it is vim, modify ~ /. Vimrc
If it is vi, modify ~ /. Exrc
Add: Set tabstop = 4
Set nu // display
In the initial growth of vimer, the combination of VIM + ctags + cs.pdf is basically a must for every vimer. Although ctags are powerful enough, csags can do more. Next, let's share a part of my vimrc script about cssag. This script can
Vim encoding method settings
Reprinted: http://www.cnblogs.com/freewater/archive/2011/08/26/2154602.html
Like all popular text editors, VIM can well edit a variety of character encoding files, which of course include popular unicode encoding
Xshell is a very good tool for embedded development. However, it may be a bit uncomfortable to see Chinese characters as garbled characters. The solution is actually very simple, that is, to change the xshell encoding method to UTF-8.
[File]->
Record the learning curve of vim.
Exercise according to the following articles:
Http://coolshell.cn/articles/5426.html
-- 2014.09.14Level 1-survival
I→InsertMode, pressESCBackNormalMode.
X→ Delete a character of the current cursor.
: WQ→
Below are some of the useful Vim plug-ins collected and organized by dianhu. Most of the plug-ins have their own detailed instructions. Therefore, we will not detail the installation and use of each plug-in here. With these plug-ins, VIM can become
In the first season, I introduced how to cut the window into what I needed. This season we will discuss how to rotate the window layout after cutting. Why do we need to rotate the window layout? The simplest answer is: any window layout will
This time, I tried to configure ralis's vim Development Environment on mac. The record is as follows: 1. macVim is available on mac, but not in the root directory of the user. vim folder, so you need to manually mkdir 2. created. after vim, need to
Delete, copy, and paste linux vim shortcut keys
Delete
In lowercase, x indicates that a character is deleted backward, that is, the character where the cursor is located is deleted.
Nx n indicates a number, indicating that each character is deleted
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
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.