南京高淳:金花绽放游人醉
3 questions
0
votes
0
answers
37
views
Calling a function works but mapping it does not work
I found a function to highlight the current word and all the same words in file and mapped it to z/. It has worked for years, but these days it doesn't work and I couldn't find the reason.
If I run :...
0
votes
1
answer
85
views
Generate relatively unique "cache filename" for given file path (like swap files do)
For each filename, Vim generates (relatively) unique filename for it's swap cache directory.
Let's say I would like to store some information for each file (like swap files do), e.g. with :
silent ...
1
vote
1
answer
101
views
Can I map the number of search matches to a key?
I'd like to map 0 to whatever number of matches I currently have. For example:
This here has 5 matches. If I wanted to perform a macro on every instance, i'd like to be able to simply type:
0Q (Q is ...