Comments (4)
Notably, :iabbrev _foo bar
always works, this is the only non-alphanumeric character that is not affected it seems.
from neovim.
How is this a regression? The behavior is the same in v0.4.0.
from neovim.
I can't do
:iabbrev @ii @include
even with@
being present in my&iskeyword
.
This works if you :set iskeyword+=@-@
. This is because @
has a special meaning, as mentioned in :h 'isfname'
which is referenced by :h 'iskeyword'
:
If the character is '@', all characters where isalpha() returns TRUE
are included. Normally these are the characters a to z and A to Z,
plus accented characters. To include '@' itself use "@-@". Examples:
"@,^a-z" All alphabetic characters, excluding lower
case ASCII letters.
"a-z,A-Z,@-@" All letters plus the '@' character.
And the behavior matches :h abbreviations
:
There are three types of abbreviations:
full-id The "full-id" type consists entirely of keyword characters (letters
and characters from 'iskeyword' option). This is the most common
abbreviation.
Examples: "foo", "g3", "-1"
end-id The "end-id" type ends in a keyword character, but all the other
characters are not keyword characters.
Examples: "#i", "..f", "$/7"
non-id The "non-id" type ends in a non-keyword character, the other
characters may be of any type, excluding space and tab.
Examples: "def#", "4/7$"
So this is working as intended.
from neovim.
How is this a regression? The behavior is the same in v0.4.0.
Hmm, perhaps. I've had an :iabbrev :foo bar
type of thing in my config for a while and this only came up recently (last couple of weeks). I don't mind, I just changed them to :iabbrev _foo bar
, but that made me think it was a regression. It's possible this was caused by some more complex interaction.
from neovim.
Related Issues (20)
- Upstream :Lsp commands from nvim-lspconfig HOT 8
- `:finish` can no longer be used in `exrc` files since v0.9.0
- Docs: describe priority between editorconfig and autocmd like FileType
- vim.lsp.rpc.connect doesn't works on windows HOT 5
- laststatus = 0 doesn't remove statusline from horizontal splits HOT 2
- Lsp goto definition loading buffer twice slow in 0.10 HOT 4
- redraw a specific floating window ignoring other pending screen updates HOT 18
- Reattaching to headless ui with multigrid causes missing events HOT 1
- vim.treesitter.foldexpr: attempt to index field 'foldupdate_range' (a nil value) HOT 5
- Add option to avoid vertical offset when using cursorcolumn along with concealer HOT 1
- After attaching ext_messages, `'cmdheight'` is set to zero for current tabpage only HOT 1
- New lsp keybindings: `crr` in visual mode breaks visual selection -> `c` workflow HOT 7
- Lua: improve vim.keymap.set() HOT 4
- cbuffer doesn't take visual selection as range '<,'>cad HOT 1
- vim.snippet: merge jumpable() with active() HOT 6
- Executing `:highlight clear` in headless process can lead to not proper screen state HOT 3
- `:highlight Normal` reports "Last set from" non-existing file (with `-V1`) HOT 3
- Treesitter: Injections lose highlights with 'spell' enabled after scrolling to the right HOT 1
- Bracketed paste doesn't work during macro recording
- Weird output when running a system command with vim.cmd via a mapping HOT 4
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 neovim.