1 download: http://www.vim.org/scripts/script.php? Script_id = 1, 1026
2. decompress the file visualmark. Vim to the/usr/share/Vim/vim70/plugin folder.
3. Help;
4 usage:
This "bookmark" has a major disadvantage: invisible.
The visual mark plug-in I will introduce below has nothing to do with "mark" in Vim, not to make it visible, but to itself be "visible bookmarks ", next, let's look at it. The author's words are like "bookmarks in ultraedit ".
In addition, there are plug-ins that make the mark in VIM visible on the Internet, but I tried it. It seems that visual mark is not easy to use and I will not introduce it.
After visual mark is installed according to the above method, you do not need to set anything. If it is gvim, you can directlyCodePress Ctrl + F2. If Vim is used, use "mm". How can I find that the row where the cursor is located is highlighted? See:
After visual mark is installed according to the above method, you do not need to set anything. If it is gvim, press Ctrl + F2 on the Code directly,
If it is vim, use "mm". How can I find that the row where the cursor is located has become high? See:
If you have set multiple bookmarks, you can use the F2 key to switch forward during the period, and use Shift + F2 to switch backward during the period.
Okay. I have finished introducing visual mark. It's easy enough. ^_^.
If you suspect that the color of the bookmarks is poor, you can define it by yourself, but you can modify the source code of the plug-in script,
In the directory ~ /. Vim/plugin/, find and open visualmark. Vim, and find the following code:
If & BG = "dark" // set different bookmarks based on your Background Color Style
Highlight signcolor ctermfg = white ctermbg = blue guifg = wheat guibg = Peru
Else // modify the value of guibg to set the color of the bookmarks.
Highlight signcolor ctermbg = white ctermfg = blue guibg = gray guifg = royalblue3
Endif
I still have a few questions:
1. This bookmarks cannot be automatically saved. If you disable vim, it will be gone.
2. You cannot switch between different files when switching bookmarks. You can only switch between the same file.
Related content from: http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx