VI is a strong function of Linux editor, we often use only the tip of the iceberg, as the saying goes: 工欲善其事, its prerequisite. So use VI to create a good environment is very important, the following several articles by chance, reproduced treasures,
1. Set the line numberVIM Displays the line number when it is opened by default, so that you can display the line number manually in command mode without having to edit it each time.To create a configuration file for a. vimrc.When Vim is started,
In the shell, remember that some of the commonly used VIM commands are more effective when operating.Cursor movementh,j,k,l,h #表示往左, J means down, K indicates toward right, l means upper Ctrl F #上一页Ctrl b #下一页 w, E, W, e #跳到单词的后面,
In general, it is only necessary to correctly set the coded identification sequence of vim and seldom encounter garbled problems:set fileencodings=ucs-bom,utf-8,utf-16,gbk,big5,gb18030,latin1This setting is sequential, and the general principle is
Vim is very powerful, but I don't really like it. Displays the default color of the comment, it is not particularly like, look at the point is not clear, the eyes are tired, as shownVIM provides a hi or highlight command to change the color, but
Vim: visual interface Improved, a powerful text editor developed from VI, describes some simple ways to use the VIM command below. Vim is a modal editor with the following three modes of operation: Edit mode (default), input mode, and last-line mode.
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
Recently found Python is a good language, it is worth learning, first configured under the environment, so that VIM has a keyword completion function, the process is as follows, I this is Fedora, other distributions similar$ su********# yum Install
Tabbar. VimThis plug-in provides functions similar to the tabs in ultraedit, and can be switched through alt-,Installation:Copy the file to [Your gvim installation directory] \ vimfiles \ plugin!Download:Http://www.vim.org/scripts/script.php? Script_
High Efficiency mobile 1. Outside of the insert mode
Basically, you should stay in the insert mode as little as possible, because in the insert mode, VIM is like a "dumb" editor. Many new users will stay in the insert mode because it is easy to use.
Method1: map :windo exe "normal \C-W>K"Method2: map :windo wincmd KMethod3: map :call HorizontAll()function! HorizontAll() windo exe "normal \K"endfunction
Summary:
1 In the string of map {RHS}, Ctrl-W is converted to a DELETE command in
For example, define F5 as the compile execution, F7 as the compile, Ctrl-F7 as the run, define F12 as the debug, because F11 is also used in the terminal under Ubuntu.
"Remap F5 to complie the C ++ Program func compilerun () EXEC "W" If &
From: http://blog.chinaunix.net/u1/37553/showart_347927.html
Like all popular text editors, VIM can edit various character encoding files, includingPopular unicode encoding methods such as UCS-2 and UTF-8. Unfortunately, howeverYou need to
Opening files in VIM editor via context menu is quite simple, but what if I want to open a file in a new tab in existing window?The solution is quite simple, at least on my Windows 7 machine, but I guess it shoshould work also on previous versions
Reference address: http://lsong17.spaces.live.com/blog/cns! 556c21919d77fb59! 603. Entry
Content:
If you only want to use the system clipboard, simply press SHIFT + inset (paste) in the input mode.VimThe help document includes the following content:
1. Open a new tabRun "vim-P filename..." when starting vim ...": Tabe [dit]*: Tabe * *: Tabedit * *: Tabnew *: Tabnew opens a new tab with an empty window after the current tab.: Tabe [dit] [++ opt] [+ cmd]{file}: Tabnew [++ opt] [+ cmd]{file}Open
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI,We often use different variants of software on different machines. Among them, VIM is relatively easy to use and widely used. Vim is short for VI
Linux text editor Vim/Vi details, vimvi
Ii. Text Editor Vim/Vi (later called the upgraded version of Vi) Vim/vi is a powerful full-screen text editor and the most common text editor on linux/unix, it is used to create, edit, and display text files.
Automatically add comments to add text information in vimTo do well, you must first sharpen your tools. In the development process, a convenient and quick development environment can improve work efficiency. A beautiful interface can make us feel
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