Sometimes the project has been deployed in Tomcat, but you need to modify some of the contents of the configuration file or modify the content of a JSP file, you will think of the local modified files uploaded to the server and then replace it, in
1, the concept of vim and basic operation
VI command line below the text Editing tool, Vim is VI's enhanced version. Command vim to start the Vim editor. Vim can generally be used in the form of a vim+ destination file path. If the destination file
First, Introduction
Spf13-vim is a release version of the Vim plug-in and configuration, including a set of carefully selected Vim Plug-ins, with Vundle for plug-in management, and can be personalized through the following files
~/.vimrc.local
Modify ConfigurationIf you want to modify the configuration of the global vimvim /etc/vim/vimrc
1
However, this is not recommended and can only be modified by the current user's vim configurationvim ~/.vimrc
1
Add the
Basic operation of Vim
Start vimEnter the command in the terminal: Vim in the terminal interface or gvim separate out a window.
Text inputEnter the character "a" or "I" in normal mode to enter text editing mode.
File SaveAfter the text is
Character Set (charset) code pointIn ASCII, for example, it assigns a numeric ordinal to each character, such as A's coded point is 65, and the set of all code points is called the character set.Character encoding (char encoding)Character encoding
Vimshortcut Keys1.1 Vimthe mode in1th Command mode G GG i A2nd mode of editing I o C A3rd Bottom-line mode:1.2Move Cursor1. Move the cursor to the first line of the file GG2. Move the cursor to the last line of the file G3. Move the cursor to the 100
The last time we talked about how to configure tabs/spaces in vim. Recently, many web pages are written. You do not want to replace the tab when editing HTML, and one tab occupies two spaces. You still need to use four spaces when editing other
On Debian wheezy, a new user, Walter, is added. When using vim, Walter exits when editing text:
No Protocol specified no protocol specified
This is because the added user has the permission to read the $ Xauthority file.
Wolf @ wheezy :
The official version of vim7.3 has been released. The Vim version installed with APT-Get In ubuntu 10.10 Is 7.2. If you want to experience the new feature of 7.3, you can only compile it by yourself. The Installation notes are as follows:
1.
As we all know, Vim'sCodeIt is maintained by Bram using patches, a typical centralized management, although edyfoxThe https://vim.svn.sourceforge.net/svnroot/vim maintains the SVN version, but it only imports CVSThe problem is that when you want to
Original article: Vim tips-quick Edit
Common basic commands related to VIM settings:
Display row number: set number or: Set nu
Hide row number: Set nonumber or: Set Nonu
Auto indent: Set autoindent or: Set AI
Not auto indent: Set
When Vim is used in the terminal for editing, by default, no line number, high syntax brightness, and smart indentation are displayed on the editing interface.
. To better work in Vim, You need to manually set a configuration file:. vimrc.When Vim
Remember to keep it in mind. The following method does not need to change the securecrt configuration, so it does not affect the display of other Chinese characters.Problem:For example, if a file is UTF-8 encoded, the file header is:
1#!
In this installation, VMWare is installed in the Windows 7 environment and then the virtual machine is installed as follows:
1. Download vim-7.3.tar.bz2 from a website: http://download.csdn.net/detail/wxwd521/4484808;
2. Copy the installation
12.12.06 use Vim to write a programPosted in Linux related § Linux at PM by Zhou. B02Tags is VimAlgorithms have been developed to generate practical code. The efficiency in MATLAB is really low. I only use C, and I did not find a user-friendly pure
As a loyal user of VIM, I learned from help more than two years ago: Edit.
++ ENC = xxx, I have never learned about Vim encoding settings. Over the years, I have encountered encoding errors, always: Edit
++ ENC = xxx. Today: I helped encoding and so
1. Press V to enter the visual state, select multiple rows, and use> or
2. generally, auto indent layout is used based on language features: In the command status, the current row is used = (two connections by =), or N = (N is a natural number)
Vim split screen function
To sum up, ctrl + w and a key letter are used to trigger a function.(1) open several files in shell and split the screen:Vim-On file1 file2...Vim-on file1 file2...
Large O represents vertical, and small o Represents
How to Use the VI (Vim) editor on Linux
VI (Vim) is a commonly used editor on Linux. By default, VI (Vim) is installed in many Linux distributions ). There are many VI (Vim) commands, but if they are used flexibly, the efficiency will be greatly
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