mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 03:50:30 +01:00
Mark plugin update, changed order for setting terminal options (turning on
256 colors)
This commit is contained in:
32
doc/mark.txt
32
doc/mark.txt
@@ -4,10 +4,9 @@
|
||||
(original version by Yuheng Xie)
|
||||
*mark.vim*
|
||||
description |mark-description|
|
||||
usage |mark-usage|
|
||||
installation |mark-installation|
|
||||
configuration |mark-configuration|
|
||||
integration |mark-integration|
|
||||
usage |mark-usage|
|
||||
installation |mark-installation|
|
||||
configuration |mark-configuration|
|
||||
limitations |mark-limitations|
|
||||
known problems |mark-known-problems|
|
||||
todo |mark-todo|
|
||||
@@ -16,7 +15,7 @@ history |mark-history|
|
||||
==============================================================================
|
||||
DESCRIPTION *mark-description*
|
||||
|
||||
This script adds mappings and a :Mark command to highlight several words in
|
||||
This plugin adds mappings and a :Mark command to highlight several words in
|
||||
different colors simultaneously, similar to the built-in 'hlsearch'
|
||||
highlighting of search results and the * |star| command. For example, when you
|
||||
are browsing a big program file, you could highlight multiple identifiers in
|
||||
@@ -24,7 +23,7 @@ parallel. This will make it easier to trace the source code.
|
||||
|
||||
This is a continuation of vimscript #1238 by Yuheng Xie, who apparently
|
||||
doesn't maintain his original version anymore and cannot be reached via the
|
||||
email address in his profile. This script offers the following advantages over
|
||||
email address in his profile. This plugin offers the following advantages over
|
||||
the original:
|
||||
- Much faster, all colored words can now be highlighted, no more clashes with
|
||||
syntax highlighting (due to use of matchadd()).
|
||||
@@ -33,7 +32,8 @@ the original:
|
||||
- Like the built-in commands, jumps take an optional [count] to quickly skip
|
||||
over some marks.
|
||||
|
||||
RELATED WORKS *
|
||||
RELATED WORKS *
|
||||
|
||||
- MultipleSearch (vimscript #479) can highlight in a single window and in all
|
||||
buffers, but still relies on the :syntax highlighting method, which is
|
||||
slower and less reliable.
|
||||
@@ -44,16 +44,18 @@ RELATED WORKS *
|
||||
==============================================================================
|
||||
USAGE *mark-usage*
|
||||
|
||||
HIGHLIGHTING *mark-highlighting*
|
||||
|
||||
HIGHLIGHTING *mark-highlighting*
|
||||
*<Leader>m* *v_<Leader>m*
|
||||
<Leader>m Mark or unmark the word under the cursor, similar to
|
||||
the |star| command.
|
||||
{Visual}<Leader>m Mark or unmark the visual selection.
|
||||
*<Leader>r* *v_<Leader>r*
|
||||
<Leader>r Manually input a regular expression to highlight.
|
||||
{Visual}<Leader>r (Based on the visual selection.)
|
||||
In accordance with the built-in |star| command,
|
||||
all these mappings use 'ignorecase', but not
|
||||
'smartcase'.
|
||||
*<Leader>n*
|
||||
<Leader>n Clear the mark under the cursor / all marks.
|
||||
*:Mark*
|
||||
:Mark {pattern} Mark or unmark {pattern}.
|
||||
@@ -63,7 +65,7 @@ HIGHLIGHTING *mark-highlighting*
|
||||
|
||||
|
||||
SEARCHING *mark-searching*
|
||||
|
||||
*<Leader>star* *<Leader>#* *<Leader>/* *<Leader>?*
|
||||
[count]* [count]#
|
||||
[count]<Leader>* [count]<Leader>#
|
||||
[count]<Leader>/ [count]<Leader>?
|
||||
@@ -130,9 +132,6 @@ this plugin is sourced. To remove the default overriding of * and #, use: >
|
||||
nmap <Plug>IgnoreMarkSearchNext <Plug>MarkSearchNext
|
||||
nmap <Plug>IgnoreMarkSearchPrev <Plug>MarkSearchPrev
|
||||
<
|
||||
==============================================================================
|
||||
INTEGRATION *mark-integration*
|
||||
|
||||
==============================================================================
|
||||
LIMITATIONS *mark-limitations*
|
||||
|
||||
@@ -165,6 +164,11 @@ http://vim.wikia.com/wiki/Highlight_multiple_words:
|
||||
==============================================================================
|
||||
HISTORY *mark-history*
|
||||
|
||||
2.4.1 13-Jan-2011
|
||||
- FIX: Using a named register for capturing the visual selection on
|
||||
{Visual}<Leader>m and {Visual}<Leader>r clobbered the unnamed register. Now
|
||||
using the unnamed register.
|
||||
|
||||
2.4.0 13-Jul-2010
|
||||
- ENH: The MarkSearch mappings (<Leader>[*#/?]) add the original cursor
|
||||
position to the jump list, like the built-in [/?*#nN] commands. This allows
|
||||
@@ -260,7 +264,7 @@ Initial version published by Yuheng Xie on vim.org.
|
||||
|
||||
==============================================================================
|
||||
Copyright: (C) 2005-2008 by Yuheng Xie
|
||||
(C) 2008-2010 by Ingo Karkat
|
||||
(C) 2008-2011 by Ingo Karkat
|
||||
The VIM LICENSE applies to this script; see|copyright|.
|
||||
|
||||
Maintainer: Ingo Karkat <ingo@karkat.de>
|
||||
|
||||
Reference in New Issue
Block a user