Comments (3)
Thanks for the report, should be working now.
By the way, if you are using ~/.vim/miniSnip
, the plugin ought to look there automatically if g:miniSnip_dirs
is empty, so there's no need to set it.
Is miniSnips backwards compatible?
It's not out of the box, but I made it quite configurable, so for very basic snippets it's theoretically possible to configure it roughly to match the old syntax. Although I never tried to and I suspect rewriting snippet would be easier.
Seems like a small collection like this would make a good addition to miniSnip -- I would be happy to do a pull request if it sounds like such a thing would be useful.
I'm more than happy to put a link to such collection into README like other snippet plugins do, but shipping them by default would be not a good idea since users (including me) would often prefer having their own (and not worrying about overlaps).
from minisnip.
Thanks so much for the quick turnaround -- that merge fixed the problem!
I see what you mean about backwards compatibility -- it's rather trivial to convert to the new syntax.
That's the good news.
The bad news is this:
E117: Unknown function: miniSnip#trigger
The error occurs, of course, when I try to complete a snip name with C-g
(my mapping for miniSnip_trigger
). This error happens only on macos (Ventura 13.2.1). On arch and manjaro, miniSnip with my revised snips work perfectly fine (although it is a bit slower than vim-minisnips
classic).
I am installing as follows:
Plug 'Jorengarenar/miniSnip'
I suspect the problem has something to with the mixed-case name of miniSnip
. In its typical configuration, macos preserves case, but it does not differentiate a mixed case from all lower case file name. I don't know enough about how vim plugins are structured to explain the precise mechanism for the failure to find the function, but given that it works fine on a normal linux distro I cannot think of another explanation.
Incidentally, to avoid this problem for my snipit files, I have the location as follows:
let g:miniSnip_dirs = [ '~/.vim/minisnip_modern' ]
The reason I had set the value to the default location in my original post of the issue was because i had been experimenting with this kind of thing because of the potential for issues with mixed case.
Does this explanation sound all plausible? Have you run into it before with macos (of course I searched the issues but nothing jumped out at me). Does a workaround come to mind?
Many thanks!
--Phil
from minisnip.
Interesting, could you please submit a issue for this too?
from minisnip.
Related Issues (20)
- Expanding from an autocmd HOT 1
- Expanding snippet jumps to placeholder outside of snippet template HOT 4
- replacing placeholders deletes placeholder
- Creating more than one snippet for the same filetype fails.
- Forward & Backlash in snippet value do not expand reference snippet properly HOT 6
- snippet
- <C-x><C-u> opens split window as preview HOT 4
- Problems with expanding HOT 9
- Problems with indentation in HTML HOT 6
- Unknown function: miniSnip#trigger HOT 9
- Odd comment character placement when fo+=r
- Strange placeholder behavior
- Unexpected indent on last line of snippet HOT 2
- Expansion without file snippet HOT 2
- Hope minisnip add selection region HOT 4
- After latest commit (11bc4fd), snippet name is left behind after expanding HOT 1
- Snippets that contain an indent do not expand to spaces when `'expandtab'` is set HOT 2
- When expanding <tab>'s, `'smarttab'` is not respected HOT 2
- Placeholder value with ampersand causes subsequent values to append instead of replace
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 minisnip.