Setting Commands is simple
The code is as follows
Copy Code
echo "Export Editor=/usr/bin/vim" >>.BASHRC
Then reopen the terminal, input crontab-e, found that the default vim has been used.
Linux under the VIM
Often, during the development process, we often write code, compile, and modify compilation errors, a process that can be repeated hundreds of 10 of times. If you are based on the compiler output error information, open the wrong file, find the
Reference: http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.htmland VIM Help documentationThis code can be used to achieve F5 compilation
"C,c++ F5 compile run
map : Call COMPILERUNGCC ()
func! COMPILERUNGCC ()
exec "W"
if &filetype
System: LinuxMulti-line Comments:
Go to command line mode--
Move the cursor to the first line where you want to comment-
Press CTRL + V to enter Visual block mode--
Press the letter J, or K (or move the key up or down) to select the
Enter edit modeEdit mode, which is the mode that we can modify the document, configureI insert in the current word match eitherI (uppercase) is inserted at the beginning of the line where the cursor isA inserts after the current characterA
VI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. VI is the abbreviation for "Visual Interface", Vim is
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 directlyVim filename opens vim
v Character selection, the cursor will go through the place of the anti-white selection! V (uppercase) line selection, will be the cursor through the line anti-white selection!
va{Select {} intermediate content, including {}va[SELECT [] intermediate content, including {}VA (check () middle content, including {}vi intermediate content, including <>Change the above a to I, not including the corresponding brackets;VI "SELECT"
VI test.txtOrVim Test.txtVim is an upgraded version of VI, with more commands and stronger functionality.The following is a collection of vim usage, when you want to implement the exit in Vim, the first thing to do is to press "ESC", and then enter "
I was learning how to use Vim. I wanted to learn Linux for a while and then suddenly found that Vim is a good thing to learn and use. Today I found that, you cannot use Ctrl + C/Ctrl + V to copy and paste data with other applications in the system.
This is even worse. In the words of csloud itself-"you can think of it as a ctags that exceeds the frequency", its functions and power are evident, I will not elaborate on its introduction. If you have installed the help manual in Chinese described
It is for your reference only. If you have any mistakes, please correct them.
"All system-wide defaults are set in $ vimruntime/Debian. Vim (usually just
"/Usr/share/Vim/vimcurrent/Debian. Vim) and sourced by the call to: Runtime"You can find
The Vim configuration file for http://nootn.com/blog/Tool/22/ Daniel has been updated.
There is a 1.24 update vimrc on the blog. I directly paste to my
In vimrc under the/etc/Vim directory.
It turns out that Chinese characters are garbled, and VIM
We recommend a good article about how to use Vim to write c efficiently. The ctags function is similar to source insight.If you want to work in Linux, you don't need to copy the code to Windows every time, and then use source insight ....... It's
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
[Objective]
SuSE connected through securecrt. Vim is installed in the server, but its current terminal does not display the color when editing text files using Vim. Therefore, the purpose is to add the color, enable syntax highlighting
[Methods and
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
Syntax highlighting settingsIn linux, the vim or vi editor does not highlight nginx Syntax by default.Manual configuration is required.1. Download vi syntax highlighting configuration ~ /. Vim/syntax. This directory is created if it does not exist.
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.