Comments (2)
This error is caused by the <unique>
. I don't usually put that in my plugins; any existing mapping would then be silently overwritten. But the original Mark plugin had it like that, and there are both pros and cons for each approach. If you have a strong opinion here, I'd like to hear it!
How to solve this depends on what exactly you finally want:
Keep the existing mapping, want to use different keys for this Mark mapping:
Just define your own mapping, e.g.
nmap ,,n <Plug>MarkClear
This must be done before Mark is loaded; usually in your ~/.vimrc
.
Keep the existing mapping, I don't want this Mark mapping at all:
Define a dummy mapping to a <Plug>Disable...
key combo that will never trigger:
nmap <Plug>DisableMarkClear <Plug>MarkClear
If the other plugin does not use <unique>
in its definition, you could also switch the order of sourcing the plugins (so that Mark comes first), but that's overly complex and not very clear.
Override the existing mapping with Mark's default:
If the other mapping also uses this canonical <Plug>
-mapping approach, you can use one of the above. Some plugins may use g:...
variables to disable mappings. Worst case, you have to edit that plugin and comment out / change the mapping directly in the script.
That's a general plugin configuration problem, by the way; nothing special about Mark here.
from vim-mark.
Keep the existing mapping, want to use different keys for this Mark mapping:
Just define your own mapping, e.g.
nmap ,,n <Plug>MarkClear
@inkarkat
Just remind that
map
is better than nmap
here, because some original mapping are xmap
, see this line:
Line 248 in f368693
from vim-mark.
Related Issues (20)
- :windo add a jumplist HOT 1
- neovim: "invalid address type value: other" HOT 2
- Can't copy marked word? HOT 1
- Installation should mention dependency on vim-ingo-library HOT 1
- cccccclbeccdrbivffhhcenrbbubtiivulrrhdlclvkr HOT 1
- I often encounter this mistake for no reason:mark#UpdateMark HOT 5
- for a multi-line mark, * on cursor degrades to vim search HOT 2
- Setting mark as part of vim modeline HOT 2
- ":NMark pattern" produces "E16: Invalid range" when N exceeds number of lines in buffer HOT 2
- Window with WinBar gets smaller every time add or delete mark HOT 3
- Cannot search github.com for this plugin because it is forked HOT 1
- allow not clearing mark when it re-added HOT 2
- [Unrelated to the plugin] Help creating an anonymizer plugin HOT 5
- Declare dependencies HOT 3
- Ability to use n/N to perform `MarkSearchAnyNext`/`MarkSearchAnyPrev` HOT 2
- Global variable to prevent default mappings HOT 1
- How to delete the slot saved by MarkSave HOT 1
- Tiny Suggestion: Make clearer that one needs to install dependency vim-ingo-library HOT 1
- Sourcing .vimrc file breaks highlighting HOT 3
- add 'missing dependency' error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-mark.