Vim Setup Code FoldingToday looked at someone else to write the program's source code, found to be written with Vim, the code is interesting to use vim to fold the code, at first I thought it was a plug-in, and later on the Internet to check, to
Multi-window open multiple filesVim-o file1 file2 ...----default up/down split windowvim-0n file1 file2 ...----vim defaults to n + windowsSplit window: [v]split file----open files with split (v) or Portrait split current window (equal to split): [N][
Multi-line comment:1. Enter the command line mode, press Ctrl + V to enter the visual block mode, then press J or K to select multiple lines, and mark the lines to be annotated2. Press the uppercase letter I and insert the annotator, for example //3.
CodeNaturally, the text editing tool Vim is indispensable. Automatic indentation uses tabs. Even if you delete the tabs and change them to four spaces, the tabs will continue to be used in the next level of indentation, this causes a mix of spaces
I recently built a vim-ide on Ubuntu, but it cannot interact with the system clipboard .... I read n online strategies, all of which are "+ Y and" + P commands, but they do not work .... Finally, I found the cause. It turns out that my vim does not
1. Display hexadecimal data in VIM
: %! Xxd-G 1 indicates that each byte is one group.
: %! Xxd-G 2 indicates that every two bytes is a group (default)
: %! Xxd-G 4 indicates that each 4 bytes is a group of 1
: %! Xxd-r restores Vim to the
Address: http://blog.csdn.net/ruixj/article/details/3765385
WriteProgramOften encounter case-insensitive conversion problems,VimIt provides many easy case-sensitive conversion commands, which can be used in combination with vim's cursor
Beautiful perl formatCodeIt is not only pleasing to the eye, but also easy to read.
Perltidy is a small project of SourceForge. After we finish writing the messy code, he can organize the code like magic. Come and try it !!!
Perltidy home:
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
After adding this plug-in to VIM, write c ++ Java and so on.ProgramYou can automatically add some fixed-format structures, just like Eclipse. For example, you can enter for to see the complete
For (=;+=){}
Press the tab key one by one to locate
Vim mode Introduction
Introduction to Vim's three modes
Vim has three working modes: Command mode, insert mode, and baseline mode.
Command mode: Enter the vim command and start Vim to enter the command mode by default. At this time, all keys are
This section describes some advanced functions of VI and Ex.
Configure vi
The configuration file. exrc can be saved in your home directory and executed when VI is started. However, you can place a configuration file in the current working directory
First of all, it is worth mentioning that the PDF version of my vim tutorial has been completed. You can download it here, which is csdn: Click here to download it. If the download on the left fails, you can also enter the following address in the
Labels: common Linux Vim commandsZookeeper
First learned vim, see http://blog.csdn.net/u011848617/article/details/12837873
After that, I once lost my skills. After learning again, I found that it is essential to master Common commands. Below are
Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from "Learn
Replacement of strings in Linux batch files
Sed-I "s/oldstring/newstring/g" 'grep oldstring-rl Path'
Vim multiline replacement:: L1, l2s/str1/str2/g only Replace "str1" in line L1 to line l2 In the file with "str2"
: S/Vivian/sky/Replace the
The title is very long and happy!
In ubuntu, VIM is selected because the command line of window is very difficult to use, and the color scheme and input method are not fixed. These are not problems in gnome-terminal. I don't know whether it is my
Vim learning Notes configuration file (vimrc)
When Vim is started, it first searches for the configuration file and runs the command. These initialization files are generally vimrc, gvimrc, and exrc.
Exploitation:versionCommand to obtain detailed
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
Common Vim/Vi operations (version 2)
Colleagues around you are either using vim or Emacs. If you use ultraedit, you are embarrassed to say hello to others. What plug-ins are there? syntax highlighting and spelling check, everything that can be
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