The VIM as the main editor of ACM for a long time, with the benefits of vim needless to say,Here is a summary of the Vim configuration method in ACM, the configuration is directly written into the ~/.VIMRC can be.14-line configuration for
Do back-of-the-envelope calculations in placeIn Vim, we can use the expression register to directly perform mathematical operations and then insert the results into our documentation.The expression register can be = accessed by accessing, in insert
1, Vim ~/.VIMRC Enter the configuration fileIf you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI #设置自动缩进Syntax on #高亮2. BasicSPACEBAR to move one cell to the rightX Delete the
About MapMap is a map command that maps frequently used long commands to a new function key. Map is a powerful reason for vim, you can customize a variety of shortcut keys, used naturally handy.Types of mappingsThere are five kinds of mappings
Transferred from: http://www.xefan.com/archives/83568.htmlThis is a very useful plugin for programmers, supporting multiple language complements, but also support a single line of comments, batch annotations, and other command mappings.To use,
Notes on playing vim-It's been more than a week since the last blog post, and I've been working on the origins of the editor's Vim, installing and introducing two modes and some simple operations. The use of VIM will continue to be introduced in
Meet the Global CommandThe :global command allows us-to-run an Ex-command on the matches a particular pattern. Let's start by studying its syntax. The:global command takes the following form (See:h: g):: The global command allows us to execute the
The command vim can start the VIM editor normally we use Vim in the form of a vim target file path if the target file exists, use VIM to open the file if the destination file does not exist, then create and open the file. Vim has three modes: 1,
Find by CharacterThe command to quickly navigate to a character in Vim is fThe The FX command does nothing. Vim searches forward for a occurrence of the "X" character, but no matches is found, so the cursor doesn ' t move. The FO command finds an
Vim tips for useInstall, find packages[email protected] ~]# which VI/bin/vi[Email protected] ~]# Rpm-qf/bin/viVim-minimal-7.2.411-1.6.el6.x86_64[Email protected] ~]# RPM-QF ' which VI 'Vim-minimal-7.2.411-1.6.el6.x86_64[Email protected] ~]# RPM-QF '
When you have just installed Ubuntu or Debian, you will find gedit and vim open Chinese will be garbled, here is the solutionOpen VIM configuration file, location in/ETC/VIM/VIMRC in which to join Set fileencodings=utf-8,gb2312,gbk,gb18030Set
Vim tab Turn four spacesVim/etc/vim/vimrcSet et sta sw=4 sts=4
For a saved file, you can use the following method to replace the Space and tab:tab is replaced with a space:: Set ts=4: Set Expandtab:%retab!Space is replaced with tab:: Set ts=4:
Originally in vim paste from other places copied from the text, always use SHIFT + inert, then think, can not directly like P paste, do not have to enter the insertion mode and then paste. Later read the "Vim practical skills" on the introduction of
Recently bored, suddenly want to play with Tianchi data mining, found that the data is big, want to switch to MySQL database, phpMyAdmin import when importing wrong! Data file Big! So, ready to intercept a small piece to another file test first,
Vi/vim Basic Use MethodThis article describes the basic use of VI (VIM), but for the average user is basically enough! I/vim the difference is simple, they are multi-mode editor, the difference is that Vim is the upgrade version of VI, it is not
The use of Vim to browse the C/s code can be generated with ctags tag file, so it is convenient to jump to the function definition of the place, this function almost all the graphical interface editor, such as Vs,source insight and so on, but Vim's
Why isn't use tabs (introduced in Vim 7)? You can switch the between tabs :tabn :tabp with and, with the :tabe can add a new tab; and with a regular :q or :wq you Close a tab. If you map :tabn :tabp and the Your F7 / F8 keys you can easily switch
1,move command
: M 13
Move the line where the current cursor is located after 13 rows
: M 0
Drop the line where the current cursor is located before the first line
: M $
Drop the line
has been very tangled Linux under no similar jcreateor lightweight javaide,vim with Javacomplete although there are a lot of imperfections, but to some extent, to solve the problem of the completion of Java code. Installation process:
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.