Comments (5)
Help files use hard-coded values for the isk
setting. I strongly recommend not to try to mess with those
from vim.
Help files use hard-coded values for the
isk
setting. I strongly recommend not to try to mess with those
Hi Chris,
It does not mean my script is wrong and this difference is acceptable, right?
The purpose of the script is to highlight occurrences of a word when cursor is inside the word, and cancel highlight when cursor is outside the word.
autocmd CursorMoved,CursorMovedI * execute 'match Visual' (getline('.')[col('.')-1] =~# '\w' ? '/\<' . escape(expand('<cword>'), '/\.*$^~[]') . '\>/' : '//')
Thanks
from vim.
You can get fancy and save and restore the isk
option value before/after you call the expand(<cword>)
thing.
But usage questions belong rather to vi.stackexchange.com or reddit or the vim-use ml.
from vim.
It's better now.
Thanks.
let save_isk=&isk | set isk=@,48-57,_,192-255 |
\ autocmd CursorMoved,CursorMovedI * execute 'match Visual'
\ (getline('.')[col('.')-1] =~# '\w' ?
\ '/\<' . escape(expand('<cword>'), '/\.*$^~[]') . '\>/' : '//') |
\ let &isk=save_isk
from vim.
let's close it then.
from vim.
Related Issues (20)
- select breaks syntax highlighting in bash HOT 7
- [vim9]Memory Leak when assigning a lambda function decorated in a HigherOrder function to a variable
- Escaped `,` and `:` in patterns in `b:match_words` is not correctly unescaped
- listchars: trailmultispace to easily identify the number of trailing spaces HOT 6
- Msys vim's executable() can't find programs despite them being add in the PATH HOT 10
- Minor syntax highlighting issue with swayconfig files HOT 3
- no help for comment.txt for the newly introduced comment.vim plugin HOT 3
- search() vs ignorecase vs smartcase HOT 4
- A correction to the docs HOT 2
- New compiler warnings in 9.1.444 HOT 5
- HighlightedYank feature HOT 10
- No indentation of HTML tags in PHP files HOT 2
- Update defaults.vim HOT 11
- Update syntax/markdown.vim: Don't allow space between link text and URL HOT 2
- [''] and [{}] behave differently as repeat function parameter HOT 2
- Vim syntax bug HOT 4
- how to use Vim
- :echo works incorrectly in gVim HOT 1
- Left shift is incorrect with vartabstop and shiftwidth=0
- BufWinEnter event cannot be triggered using `tabnew .`
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.