Requirements:
Find a batch of HTML files from the current directory and use an HTML file to express their addresses with hyperlink so that other pages can be accessed through this page in the browser.
1. Find.-INAME "* Valid *. *"> valid.txt
Two steps:
1. Remove the annoying VI consistency mode to avoid bugs and limitations in earlier versions.Set nocompatible
2. There are several ways to work with backspace. By default, backspace is VI compatible. This is not a habit for new users.
1. First install the common Vim
Pkg_add Vim
2. The Vim plug-ins on the server are not rich enough. I have provided the plug-in package here and decompress it to the Linux directory.
/Files/kungfupanda/vimsettings.rar
3. Copy pluin (in the
In the past, the vim provided by Debian was Vim. Tiny. syntax highlighting and other functions were not supported. Run the following command to find that Vim is under/usr/bin.
Whereis Vim
The following command shows that both VI and Vim are linked
VimIntroduction
Source: http://www.cnblogs.com/Henrya2/archive/2009/02/21/1395584.html
Vim (VI improved) is a text editor similar to VI. It adds many new features and functions based on VI. With its powerful functions and customization capabilities,
1. install and use ctags in VIM
Http://blog.csdn.net/duguteng/article/details/7412652
2. Install the vim plug-in taglist in Ubuntu
Http://www.lampblog.net/2010/08/ubuntu%E5% AE %89%E8%A3%85vim%E6%8F%92%E4%BB%B6taglist/
3. Vim file browser
In the past, when setting the VI encoding method, the relevant method was directly found on the internet, mainly to add the following content to the/etc/vimrc file:
Set fileencodings = UTF-8, Latin-1, gb2312, GBK, gb18030Set termencoding = UTF-8Set
Author: gnuhpc http://blog.csdn.net/gnuhpc/
1. move the cursor
Move the cursor effectively in the current row. Note that these letters can be used with deletion, movement, and other operations.FX: move the cursor to the next X of the current row.
In vim, there are four encoding-related options:fileencodings,fileencoding、encodingAndtermencoding. In actual use, any option error may cause garbled characters. Therefore, each Vim user should clarify the meaning of these four options.
1. Encoding
The Code pasted into Vim from other editors is often incorrectly formatted due to abnormal indentation. Found in Vim's official FAQ (http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl:Format full text: Gg = GAuto indent current row: =This is an
Summary of common replacement modes in vim.
1. Simple replacement expression
The replacement command can replace another word with one word in the full text:
: % S/four/4/g
The prefix of "%" indicates that replacement is performed in all rows. The
The following command will sort all lines and remove duplicates (Keeping Unique lines ):
:sort utips: here "u" maybe short of the word "unique" I guess:)
If you need more control, here are some alternatives.
There are two versions, the first
% S/$/\ r/g% S/\ N // GIn Linux, "\ n" indicates a line break, and "\ r" indicates a carriage return.
% S .... the/g search replacement format can only ensure that you are replaced multiple times in a row, but once you insert a row terminator (\
There are three programming tools in the world: Emacs, Vim, and various ides. Over the past 10 years, the IDE programming environment has gained considerable market position thanks to the great promotion of funds. However, the historical development
--------------------------------------------------
In ubuntu, how does one right-click the terminal?Right-click the terminal and add a menu. Sudo apt-Get install Nautilus-open-Terminal
--------------------------------------------------
Install
I often press the "Q" key or something, and the annoying "Recording" is displayed in
Below the editor. Sometimes I am crazy when I want to exit the editor.
Today, I am free to study what the recording is...It was used to record the buttons, and then
File Operations
Vim 【VI]// Open an empty file
Vim [VI] a.txt// Open the.txt file in the current directory. If the file does not exist, create a file named a.txt (specify the storage location as the current directory)
Vim [VI] E: \ a.txt// Open
Vim command: % S/^ \ n/g
It indicates that all the characters starting with the carriage return are replaced with null.
By the way, I studied
If there are multiple consecutive empty rows, you want to keep one
Vim command: % S/^ \ N $/g
The usual Vim skills are recorded on the blog to facilitate searching.
In vim, move the cursor to the first word of the next word, use the command "W" to move the cursor to the first word of the previous word, and use the command "B "; move the
0,: G/null/d
Locate the null row and delete it.
1. Simple replacement expression
The replacement command can replace another word with one word in the full text:
: % S/four/4/g
The prefix of "%" indicates that replacement is performed in all rows.
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.