Button operation:
Add Note: Ctrl + V to enter the column editing mode. Move the cursor down or up, mark the beginning of the line to be annotated, and press I in uppercase, then insert the annotator, such as "#", and then press ESC. All of them
You can download the configuration color here.
Http://vim.sourceforge.net/scripts/script.php? Script_id = 1, 625
Download the colorsamplerpack.zip package under the webpage.
The color configuration preview is shown here. Each preview has a
I believe that anyone who has been familiar with Linux must have used vim, a powerful text editor. As long as GCC is definitely used for writing C language in Linux, I haven't been familiar with Linux for a long time, but I think these two things
Vim User Guide in Ubuntu
ESC: This is one of the omnipotent function keys in Vim. Basically, pressing this key at any time can return the normal state of vim.
I: In normal state, you can press I to enter the "insert" Edit state. At this time,
First install ctags and tlist:Http://linux.chinaunix.net/techdoc/desktop/2009/01/05/1056779.shtmlIf the installation fails, you can find a lot of information on the Internet.
Use ctags and tlist
Tlist:The simplest use is to use Vim to open (. C
I really don't want to install a VPC on my limited-memory machine, so it is a good choice to install cygwin. But I don't know why Vim cannot be used after I install it. The cursor is always at the beginning and does not go forward at all. I am still
I wrote the first csdn log today to commemorate it. Haha, start your own technology path. Haha ~~
1) gedit
. Run gconf-editor, modify the automatic detection encoding settings of gedit, and add several gb18030, gb2312, and GBK (gb18030 is
Both Emacs and VIM can influence the current document by setting some variables in the file. In Emacs, it is called local variables or file variables. In vim, it is called modeline. The functions are the same, but there are some differences in
Wcdj
Winhex is a small tool dedicated to dealing with various daily emergencies. It can be used to check and repair various files, restore and delete files, and data loss caused by hard disk damage. It also allows you to see the files and data
In ubuntu, the vim configuration file is stored in the/etc/Vim directory. The configuration file name is vimrc.
In fedora, the vim configuration file is stored in the/etc directory. The configuration file name is vimrc. In Red Hat Linux, the vim
1. Configuration File LocationUnder the/etc/directory, there is
VimrcFile, which is a public Vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file named"
. Vimrc".
-- Help ---------------------------------------------------------------
\ HM show manual for word under the cursor (n, I)\ HP show plugin help (n, I)
-- Comments -----------------------------------------------------------
\ Cl end-of-line comment (n,
Author: Yang Shuo,Hua Qing vision embedded college lecturer.
Every programmer has his/her own favorite code editing and viewing tools. I believe many programmers in Linux like vim, although Vim does not look as powerful as sourceinsight's
The Code pasted into Vim from other editors is often messy due to abnormal indentation.Format full text: Gg = GAuto indent current row: =Format the next 10 rows of the current cursor: 10 =Format the selected row: V (select from top to bottom)
Problems with vim arrow keys in Ubuntu
After Ubuntu is installed, the direction keys in VI are displayed with letters.In the $ home/WYC/. vimrc file (a new one is created if no one is available), add the following sentence:Set nocompatible
2. Add
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
A Vim file can be opened in hexadecimal notation
The edited hello. c
$ Arm-Linux-GCC hello. C-O hello
$ Arm-Linux-readelf-s hello
The offset of the. rodata segment is 4d0.$ Vim-B Hello //-B Indicates special protection for opening a binary
Watch Chen Hao Big Brother blog (http://coolshell.cn/), Learning vim, macro recording magic in my mind lingering, can not help but sigh Vim powerful.
Example:
Macro recording:
qaOperation Sequence
q,
@a,
@@
qaRecord your operations in the
Source: success,
1) the view of all windows is saved in the session information, and global settings are added.
2) The viminfo information contains the command line history, search string history, input line history, and non-empty register content),
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.