On Friday, July 28, 2017 at 4:28:23 PM UTC-4, Charles Campbell wrote:
> Hugo Gagnon wrote:
> > Hello,
> >
> > When I pick two files in Explorer and then right click -> "Diff with Vim" I get the E97 error. I did read the E97 help file and checked if I had diff.exe installed but I couldn't find anything odd.
>
> By "Explorer", are you referring to netrw? If not, ignore the rest of
> this note, please.
>
> Netrw does not provide a "Diff with Vim". It does allow you to select
> files (shift-leftmouse -or- mf), then select [Netrw:Marked Files:Diff]
> This process uses vim's diffthis on the marked files.
> The self-installing version of vim under Windows includes a diff program
> with it; vim doesn't do diff on its own.
> If you have a diff.exe (from which I'm inferring that you're using
> Windows) make sure that its on your Windows path. My windows speak is
> rusty; that may be %PATH% ? Someone please correct me on that.
>
> Regards,
> Chip Campbell
Since C:\WINDOWS is already in my path I copied diff.exe into it and it now works. I know, using C:\WINDOWS is probably a bad idea. In any case thanks for the input.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Monday, July 31, 2017
Sunday, July 30, 2017
Re: [OT] "steep learning curve" ... but what is it actually?
I think the learning curve is said to be steep by comparison with an
uphill path. So x would be how far you get and y would be the amount
of expended effort.
But does Vim really have a steep learning curve? IMHO what it has is a
virtually unlimited set of capabilities — considering that it has a
Turing-complete configuration language which seems more or less
Algol-like to me (though without begin..end statements, instead with
specialised endif, endwhile, endfunction, etc.) it feels to me that
the power of Vim, especially of a feature-rich "huge" build, is
limited only by the user's ingenuity and by his/her command of the
scripting language.
Who says Vim has a "steep" learning curve after all? I may be wrong,
but I have a hunch that it's mostly people who tried Vim for an hour
or maybe a day and noticed that they were still far from knowing all
and every bit of the ins and outs of Vim. So what? My take on the
subject is that, on the contrary, Vim is easy to learn because:
• there is the vimtutor, a very well thought-out step-by-step
hands-on tutorial;
• the online help is at your fingertips and it covers every single
bit of what there is to know about Vim.
• there is even help about how to use the help: see :help helphelp
Other programs have a page or two of online help — when they have any
— and even with their limited featureset, their help falls far short
of it. I admit that there are a very few, extremely few even,
exceptions such as Mercurial. But even the Mercurial help, which is
quite complete compared to many other programs' help, doesn't compare
with the Vim help for ease of use. In Vim, once you're in the help,
you go from one topic to another by double-clicking or hitting Ctrl-]
on any word on which you want help, allowing you to learn Vim by
reading its help by the Monte-Carlo method, as you would an
encyclopædia, by going from one topic to another in no predefined
sequence.
But — yes, there is a but — with Vim, unlike with, say, Notepad, there
is a lot to learn. You can master Notepad in a few minutes, a few
hours if you're a slow learner. With Vim's, Socrates's maxim comes
into its full force: «The more I learn, and the better I see how
little I know.» To my way of looking at it, this is not a defect but a
quality: it means that Vim packs so much power that it is worth
learning it bit by bit, a little every day for years after years.
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
uphill path. So x would be how far you get and y would be the amount
of expended effort.
But does Vim really have a steep learning curve? IMHO what it has is a
virtually unlimited set of capabilities — considering that it has a
Turing-complete configuration language which seems more or less
Algol-like to me (though without begin..end statements, instead with
specialised endif, endwhile, endfunction, etc.) it feels to me that
the power of Vim, especially of a feature-rich "huge" build, is
limited only by the user's ingenuity and by his/her command of the
scripting language.
Who says Vim has a "steep" learning curve after all? I may be wrong,
but I have a hunch that it's mostly people who tried Vim for an hour
or maybe a day and noticed that they were still far from knowing all
and every bit of the ins and outs of Vim. So what? My take on the
subject is that, on the contrary, Vim is easy to learn because:
• there is the vimtutor, a very well thought-out step-by-step
hands-on tutorial;
• the online help is at your fingertips and it covers every single
bit of what there is to know about Vim.
• there is even help about how to use the help: see :help helphelp
Other programs have a page or two of online help — when they have any
— and even with their limited featureset, their help falls far short
of it. I admit that there are a very few, extremely few even,
exceptions such as Mercurial. But even the Mercurial help, which is
quite complete compared to many other programs' help, doesn't compare
with the Vim help for ease of use. In Vim, once you're in the help,
you go from one topic to another by double-clicking or hitting Ctrl-]
on any word on which you want help, allowing you to learn Vim by
reading its help by the Monte-Carlo method, as you would an
encyclopædia, by going from one topic to another in no predefined
sequence.
But — yes, there is a but — with Vim, unlike with, say, Notepad, there
is a lot to learn. You can master Notepad in a few minutes, a few
hours if you're a slow learner. With Vim's, Socrates's maxim comes
into its full force: «The more I learn, and the better I see how
little I know.» To my way of looking at it, this is not a defect but a
quality: it means that Vim packs so much power that it is worth
learning it bit by bit, a little every day for years after years.
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [OT] "steep learning curve" ... but what is it actually?
> On 2017-07-30 09:10, tuxic@posteo.de wrote:
>> Suppose this "steep learning curve" would be a graph
>> in the mathematical sense -- I would think, that
>> the X-axis represents t (time) and the Y-axis represents
>> the amount of knowledge k in turn.
>
Really, the cliche's the wrong way around. It depends on whether you are
looking at it as the rate of acquisition that's possible, (in which case a
steep vertical represents an easy task), the rate that's necessary to
survive, e.g. in an emergency, (in which case a steep gradient represents
a challenge, learn quickly or die), or the effort required to achieve
proficiency, with the X axis as proficiency and the Y axis as effort.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>> Suppose this "steep learning curve" would be a graph
>> in the mathematical sense -- I would think, that
>> the X-axis represents t (time) and the Y-axis represents
>> the amount of knowledge k in turn.
>
Really, the cliche's the wrong way around. It depends on whether you are
looking at it as the rate of acquisition that's possible, (in which case a
steep vertical represents an easy task), the rate that's necessary to
survive, e.g. in an emergency, (in which case a steep gradient represents
a challenge, learn quickly or die), or the effort required to achieve
proficiency, with the X axis as proficiency and the Y axis as effort.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [OT] "steep learning curve" ... but what is it actually?
On 2017-07-30 09:10, tuxic@posteo.de wrote:
> Suppose this "steep learning curve" would be a graph
> in the mathematical sense -- I would think, that
> the X-axis represents t (time) and the Y-axis represents
> the amount of knowledge k in turn.
I think the confusion comes because it seems to be a factor of two
things over time: there's how much you need to know before you can
accomplish something productively, and how completely you know the
editor. With something like nano or notepad, you start typing and
the text appears. There are on-screen menus to guide you in
quitting/saving and basic search/replace. Additionally, their
feature-set is sufficiently small that you quickly learn all their
limited functionality[1]
Meanwhile, the next set of editors (Sublime, Visual Studio, Atom,
etc) tend to make things accessible via menus and GUIs. They present
a lot more power and complexity, but still manage to keep things
approachable for basic activities.
Finally, editors like vi/vim, emacs, and ed have next to no help (vim
improved on this with the opening screen's tips, but they're not
visible if you are dumped in a file). Vi/vim/emacs have huge numbers
of features (I've been using vim since around the turn of the
century and am still learning new tricks ~18yrs later) that can be
combined for combinatorial functionality, including scriptability
meaning they can grow functionality that the original authors never
created.
So the proverbial graphs tend to refer to "how quickly can you get
started" as well as "how limited are you".
-tim
[1] notepad does have one or to obscure features like the timestamped
log, and nano does have additional functionality to learn like syntax
highlighting. But these "advanced" features are a pretty small
extension of the whole.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Suppose this "steep learning curve" would be a graph
> in the mathematical sense -- I would think, that
> the X-axis represents t (time) and the Y-axis represents
> the amount of knowledge k in turn.
I think the confusion comes because it seems to be a factor of two
things over time: there's how much you need to know before you can
accomplish something productively, and how completely you know the
editor. With something like nano or notepad, you start typing and
the text appears. There are on-screen menus to guide you in
quitting/saving and basic search/replace. Additionally, their
feature-set is sufficiently small that you quickly learn all their
limited functionality[1]
Meanwhile, the next set of editors (Sublime, Visual Studio, Atom,
etc) tend to make things accessible via menus and GUIs. They present
a lot more power and complexity, but still manage to keep things
approachable for basic activities.
Finally, editors like vi/vim, emacs, and ed have next to no help (vim
improved on this with the opening screen's tips, but they're not
visible if you are dumped in a file). Vi/vim/emacs have huge numbers
of features (I've been using vim since around the turn of the
century and am still learning new tricks ~18yrs later) that can be
combined for combinatorial functionality, including scriptability
meaning they can grow functionality that the original authors never
created.
So the proverbial graphs tend to refer to "how quickly can you get
started" as well as "how limited are you".
-tim
[1] notepad does have one or to obscure features like the timestamped
log, and nano does have additional functionality to learn like syntax
highlighting. But these "advanced" features are a pretty small
extension of the whole.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: standard way include plugin as a dependency of another plugin
On 30/07/2017 04:40, sashang@gmail.com wrote:
> Hi
>
> I'm writing a plugin and want it to depend on another plugin installed. At the moment I just have a line
>
> source <path to plugin>
>
> in my plugin that pulls in that plugin. Is there a standard way of doing this or do plugin authors just invent their own way? Could I use Vundle here instead?
I think that the usual solution is just to document the dependencies.
Then, it is the user's responsibility to get them, manually or
using a plugin manager.
The "modern" way (aka, Vim 8) is to use packages. From `:h packages`:
"A package can contain multiple plugins that depend on each other."
If you do not have control over one or more of your dependencies
(because they are plugins written by other people), and if you
distribute your package as a Git repo, a possibility is to include
the dependencies you need as Git submodules.
Mind that using submodules might result in users having multiple
copies of the same plugin (i.e., one from your package and one
installed by the user elsewhere, or even by another package).
Typically, it shouldn't do any harm, but it is something to keep
in mind, at least until packages become a mature feature of Vim,
and widely adopted by plugin developers (which has not been the
case, so far), so that best practices will emerge.
Life.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi
>
> I'm writing a plugin and want it to depend on another plugin installed. At the moment I just have a line
>
> source <path to plugin>
>
> in my plugin that pulls in that plugin. Is there a standard way of doing this or do plugin authors just invent their own way? Could I use Vundle here instead?
I think that the usual solution is just to document the dependencies.
Then, it is the user's responsibility to get them, manually or
using a plugin manager.
The "modern" way (aka, Vim 8) is to use packages. From `:h packages`:
"A package can contain multiple plugins that depend on each other."
If you do not have control over one or more of your dependencies
(because they are plugins written by other people), and if you
distribute your package as a Git repo, a possibility is to include
the dependencies you need as Git submodules.
Mind that using submodules might result in users having multiple
copies of the same plugin (i.e., one from your package and one
installed by the user elsewhere, or even by another package).
Typically, it shouldn't do any harm, but it is something to keep
in mind, at least until packages become a mature feature of Vim,
and widely adopted by plugin developers (which has not been the
case, so far), so that best practices will emerge.
Life.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[OT] "steep learning curve" ... but what is it actually?
Hi,
Often it i said, vim would have a steep learning curve...
If I think aboyt a "steep learning curve" as such in a
more mathematical sense...I dont understand this argument
for being a negative one.
Suppose this "steep learning curve" would be a graph
in the mathematical sense -- I would think, that
the X-axis represents t (time) and the Y-axis represents
the amount of knowledge k in turn.
With this setuo a steep curve would imply, that mu knowledge about
for example vim would increase more in a shorter period of
time than with other tools with a flat learning curve which does not
reaches that high values for Y....notepad for example.
Why is this taken as a negative feature?
Let us build more tools with steep learninging curves to seperate
those from tools which has nothing to offer... ;)
This is not meant as an argument for overcomplicated tools, though...
Or did I understand totally wrong here...?
Cheers
Meino
PS:
I dont understand "editor wars" -- how can be there a war between
a sole editor? ;)
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Often it i said, vim would have a steep learning curve...
If I think aboyt a "steep learning curve" as such in a
more mathematical sense...I dont understand this argument
for being a negative one.
Suppose this "steep learning curve" would be a graph
in the mathematical sense -- I would think, that
the X-axis represents t (time) and the Y-axis represents
the amount of knowledge k in turn.
With this setuo a steep curve would imply, that mu knowledge about
for example vim would increase more in a shorter period of
time than with other tools with a flat learning curve which does not
reaches that high values for Y....notepad for example.
Why is this taken as a negative feature?
Let us build more tools with steep learninging curves to seperate
those from tools which has nothing to offer... ;)
This is not meant as an argument for overcomplicated tools, though...
Or did I understand totally wrong here...?
Cheers
Meino
PS:
I dont understand "editor wars" -- how can be there a war between
a sole editor? ;)
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saturday, July 29, 2017
standard way include plugin as a dependency of another plugin
Hi
I'm writing a plugin and want it to depend on another plugin installed. At the moment I just have a line
source <path to plugin>
in my plugin that pulls in that plugin. Is there a standard way of doing this or do plugin authors just invent their own way? Could I use Vundle here instead?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm writing a plugin and want it to depend on another plugin installed. At the moment I just have a line
source <path to plugin>
in my plugin that pulls in that plugin. Is there a standard way of doing this or do plugin authors just invent their own way? Could I use Vundle here instead?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Why the bufnew not work here?
2017-07-29 18:45 GMT+03:00 Zhe Lee <imlegendlzz@gmail.com>:
> I use
> au BufNewFile *.py 0r headerfile/python.header
>
> in my vimrc file . I want to auto add snippet when the python file is create. But it doesn't work, when I use the "gvim newpy.py" command in command prompt. How to fix this?
This looks like something which will not work in many cases: :read is
supplied relative path, but do you have `headerfile/python.header` in
each directory you happen to run Vim from?
It should "work" by throwing E484 error message though. For me it
works, but error message and "Press ENTER" prompt are hidden by
further setup. Check `:messages`.
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I use
> au BufNewFile *.py 0r headerfile/python.header
>
> in my vimrc file . I want to auto add snippet when the python file is create. But it doesn't work, when I use the "gvim newpy.py" command in command prompt. How to fix this?
This looks like something which will not work in many cases: :read is
supplied relative path, but do you have `headerfile/python.header` in
each directory you happen to run Vim from?
It should "work" by throwing E484 error message though. For me it
works, but error message and "Press ENTER" prompt are hidden by
further setup. Check `:messages`.
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why the bufnew not work here?
I use
au BufNewFile *.py 0r headerfile/python.header
in my vimrc file . I want to auto add snippet when the python file is create. But it doesn't work, when I use the "gvim newpy.py" command in command prompt. How to fix this?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
au BufNewFile *.py 0r headerfile/python.header
in my vimrc file . I want to auto add snippet when the python file is create. But it doesn't work, when I use the "gvim newpy.py" command in command prompt. How to fix this?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Friday, July 28, 2017
Re: Cannot create diffs (E97) with Vim 8.0 on Windows 7
Hugo Gagnon wrote:
> Hello,
>
> When I pick two files in Explorer and then right click -> "Diff with Vim" I get the E97 error. I did read the E97 help file and checked if I had diff.exe installed but I couldn't find anything odd.
By "Explorer", are you referring to netrw? If not, ignore the rest of
this note, please.
Netrw does not provide a "Diff with Vim". It does allow you to select
files (shift-leftmouse -or- mf), then select [Netrw:Marked Files:Diff]
This process uses vim's diffthis on the marked files.
The self-installing version of vim under Windows includes a diff program
with it; vim doesn't do diff on its own.
If you have a diff.exe (from which I'm inferring that you're using
Windows) make sure that its on your Windows path. My windows speak is
rusty; that may be %PATH% ? Someone please correct me on that.
Regards,
Chip Campbell
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hello,
>
> When I pick two files in Explorer and then right click -> "Diff with Vim" I get the E97 error. I did read the E97 help file and checked if I had diff.exe installed but I couldn't find anything odd.
By "Explorer", are you referring to netrw? If not, ignore the rest of
this note, please.
Netrw does not provide a "Diff with Vim". It does allow you to select
files (shift-leftmouse -or- mf), then select [Netrw:Marked Files:Diff]
This process uses vim's diffthis on the marked files.
The self-installing version of vim under Windows includes a diff program
with it; vim doesn't do diff on its own.
If you have a diff.exe (from which I'm inferring that you're using
Windows) make sure that its on your Windows path. My windows speak is
rusty; that may be %PATH% ? Someone please correct me on that.
Regards,
Chip Campbell
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thursday, July 27, 2017
Re: C++11 Lambda indentation in vim 7.4
Sorry, this instead.
https://gist.github.com/b6cc675eac4c67c923b1d952307947f7
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
https://gist.github.com/b6cc675eac4c67c923b1d952307947f7
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: C++11 Lambda indentation in vim 7.4
On Thursday, July 27, 2017 at 4:41:01 PM UTC+9, Ivan Smirnov wrote:
> On Wednesday, 26 March 2014 21:51:43 UTC, Christian Brabandt wrote:
> > On Mi, 26 Mär 2014, Klaus Rudolph wrote:
> >
> > > C++ Lambda Expressions are now not longer an error in syntax highlighting and indentation since vim 7.4. But inside a lambda expression the indentation did not work as I expect.
> > >
> > > Auto indent (gg=G) gives the following result:
> > >
> > > auto x1=GenFunktor(
> > > []()
> > > {
> > > a+=2;
> > > {
> > > int x;
> > > x++;
> > > }
> > > }
> > > );
> > >
> > > What I expect:
> > >
> > > auto x1=GenFunktor
> > > (
> > > []()
> > > {
> > > a+=2;
> > > {
> > > int x;
> > > x++;
> > > }
> > > }
> > > );
> > >
> > > "simply" the normal indentation rules should also work inside the lambda expression. Is there a configuration setting to enable that?
> >
> > I believe this needs a patch to vim for the builtin c indenting.
> > Redirecting to vim_dev.
> >
> > Alternatively, there might exist some custom indenting scripts using
> > indentexpr() of Vim. Look at the scripts section at vim.org or github
> >
> > Best,
> > Christian
> > --
> > Packungsaufschriften US-amerikanischer Produkte:
> > Auf SAINSBURY'S Erdnüssen:
> > Warnung: Enthält Nüsse.
>
> Wonder if anyone has a solution to this yet?
Could you please try this?
https://gist.github.com/b6cc675eac4c67c923b1d952307947f7
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Wednesday, 26 March 2014 21:51:43 UTC, Christian Brabandt wrote:
> > On Mi, 26 Mär 2014, Klaus Rudolph wrote:
> >
> > > C++ Lambda Expressions are now not longer an error in syntax highlighting and indentation since vim 7.4. But inside a lambda expression the indentation did not work as I expect.
> > >
> > > Auto indent (gg=G) gives the following result:
> > >
> > > auto x1=GenFunktor(
> > > []()
> > > {
> > > a+=2;
> > > {
> > > int x;
> > > x++;
> > > }
> > > }
> > > );
> > >
> > > What I expect:
> > >
> > > auto x1=GenFunktor
> > > (
> > > []()
> > > {
> > > a+=2;
> > > {
> > > int x;
> > > x++;
> > > }
> > > }
> > > );
> > >
> > > "simply" the normal indentation rules should also work inside the lambda expression. Is there a configuration setting to enable that?
> >
> > I believe this needs a patch to vim for the builtin c indenting.
> > Redirecting to vim_dev.
> >
> > Alternatively, there might exist some custom indenting scripts using
> > indentexpr() of Vim. Look at the scripts section at vim.org or github
> >
> > Best,
> > Christian
> > --
> > Packungsaufschriften US-amerikanischer Produkte:
> > Auf SAINSBURY'S Erdnüssen:
> > Warnung: Enthält Nüsse.
>
> Wonder if anyone has a solution to this yet?
Could you please try this?
https://gist.github.com/b6cc675eac4c67c923b1d952307947f7
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cannot create diffs (E97) with Vim 8.0 on Windows 7
Hello,
When I pick two files in Explorer and then right click -> "Diff with Vim" I get the E97 error. I did read the E97 help file and checked if I had diff.exe installed but I couldn't find anything odd.
Any input?
Thanks,
Hugo
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When I pick two files in Explorer and then right click -> "Diff with Vim" I get the E97 error. I did read the E97 help file and checked if I had diff.exe installed but I couldn't find anything odd.
Any input?
Thanks,
Hugo
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, July 26, 2017
Re: "<i{" - when issued from a function - is not repeatable via "."
Axel Bender wrote:
> Contrary to e.g. ":normal! <i{" (or "<i{" for that matter)".",
> repetition doesn't work when issued from a function (in which case the
> last input command is repeated):
>
> > gvim in.c
> :so in.vim
> /xxx
> iyy<Esc>
> :normal! <i{
> .
> .
> === OK ===
> u
> u
> u
> /xxx
> <<
> .
> .
> === DIFFERENT ===
This works as intended. See :help function-search-undo
--
hundred-and-one symptoms of being an internet addict:
260. Co-workers have to E-mail you about the fire alarm to get
you out of the building.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Contrary to e.g. ":normal! <i{" (or "<i{" for that matter)".",
> repetition doesn't work when issued from a function (in which case the
> last input command is repeated):
>
> > gvim in.c
> :so in.vim
> /xxx
> iyy<Esc>
> :normal! <i{
> .
> .
> === OK ===
> u
> u
> u
> /xxx
> <<
> .
> .
> === DIFFERENT ===
This works as intended. See :help function-search-undo
--
hundred-and-one symptoms of being an internet addict:
260. Co-workers have to E-mail you about the fire alarm to get
you out of the building.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"<i{" - when issued from a function - is not repeatable via "."
#include <stdio.h>
int main(int argc, char **argv)
{
xxx
return 0;
}
Contrary to e.g. ":normal! <i{" (or "<i{" for that matter)".", repetition doesn't work when issued from a function (in which case the last input command is repeated):
> gvim in.c
:so in.vim
/xxx
iyy<Esc>
:normal! <i{
.
.
=== OK ===
u
u
u
/xxx
<<
.
.
=== DIFFERENT ===
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
int main(int argc, char **argv)
{
xxx
return 0;
}
Contrary to e.g. ":normal! <i{" (or "<i{" for that matter)".", repetition doesn't work when issued from a function (in which case the last input command is repeated):
> gvim in.c
:so in.vim
/xxx
iyy<Esc>
:normal! <i{
.
.
=== OK ===
u
u
u
/xxx
<<
.
.
=== DIFFERENT ===
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, July 25, 2017
Re: Configure DBext mac for SQLite
Managed to get the DBI interface to work. Had to recompile my vim against a version of perl with the necessary packaged installed, after doing that it worked immediately.
On Monday, July 24, 2017 at 1:51:27 PM UTC-4, Brian Libgober wrote:
> On Monday, July 24, 2017 at 7:28:39 AM UTC-4, Brian Libgober wrote:
> > Apologies if this is a repeat post, I have been trying to configure vim to work with dbext on MacOS Yosemite. Here's the connection string I have setup in my .vimrc
> >
> > And here's the command I run
> >
> > select * from CIK limit 5;
> >
> > The error I get back
> >
> > Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 17:32
> > Error: near "<": syntax error
> > To change connection parameters:
> > :DBPromptForBufferParameters
> > Or
> > :DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
> > :DBSetOption user=tiger:passwd=scott
> > Last command(rc=1):
> > sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
> > Last SQL:
> > .mode column
> > .headers ON
> > select * from CIK limit 5
> >
> > The bizarreness of this is that the following run on terminal:
> >
> > sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
> >
> > Yields
> >
> > index CIK COMPANYNAME
> > ---------- ---------- -----------
> > 0 0001438823 !J INC
> > 1 0001509607 #1 A LIFESA
> > 2 0001457512 #1 ARIZONA
> > 3 0001433777 #1 PAINTBAL
> > 4 0001427189 $ LLC
> >
> > Which is what I would expect....
>
> Interestingly, the command :DBListTable does what it should, so the connection works...
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Monday, July 24, 2017 at 1:51:27 PM UTC-4, Brian Libgober wrote:
> On Monday, July 24, 2017 at 7:28:39 AM UTC-4, Brian Libgober wrote:
> > Apologies if this is a repeat post, I have been trying to configure vim to work with dbext on MacOS Yosemite. Here's the connection string I have setup in my .vimrc
> >
> > And here's the command I run
> >
> > select * from CIK limit 5;
> >
> > The error I get back
> >
> > Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 17:32
> > Error: near "<": syntax error
> > To change connection parameters:
> > :DBPromptForBufferParameters
> > Or
> > :DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
> > :DBSetOption user=tiger:passwd=scott
> > Last command(rc=1):
> > sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
> > Last SQL:
> > .mode column
> > .headers ON
> > select * from CIK limit 5
> >
> > The bizarreness of this is that the following run on terminal:
> >
> > sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
> >
> > Yields
> >
> > index CIK COMPANYNAME
> > ---------- ---------- -----------
> > 0 0001438823 !J INC
> > 1 0001509607 #1 A LIFESA
> > 2 0001457512 #1 ARIZONA
> > 3 0001433777 #1 PAINTBAL
> > 4 0001427189 $ LLC
> >
> > Which is what I would expect....
>
> Interestingly, the command :DBListTable does what it should, so the connection works...
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: VIM is a usability nightmare ;)
On Mon, Jul 24, 2017 at 8:29 PM, Richard Mitchell <rwmitchell@gmail.com> wrote:
The "oops" was in response to the auto message about top-posting.
--
No, actually the "oops" was an expression of embarrassment at having taken the title of the article as its content, just as the OP warned not to do.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous
* Igor Forca <igor2x@gmail.com> [170725 07:36]:
> today on Vim nightly for Windows
> https://github.com/vim/vim-win32-installer/releases/
> I tried to download gvim_8.0.0771_x64.zip so link is
> https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip
> and I get "Deceptive Site" red screen in Firefox 54 with full message:
Same here with Gentoo's www-client/firefox-bin-52.2.0
Best,
Markus
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> today on Vim nightly for Windows
> https://github.com/vim/vim-win32-installer/releases/
> I tried to download gvim_8.0.0771_x64.zip so link is
> https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip
> and I get "Deceptive Site" red screen in Firefox 54 with full message:
Same here with Gentoo's www-client/firefox-bin-52.2.0
Best,
Markus
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous
On Tue, Jul 25, 2017 at 12:42 PM, Igor Forca <igor2x@gmail.com> wrote:
> Now I have also tested on "Ubuntu 17.10 Daily" and using "Firefox Nightly" and I get the same security warning. I somehow expected this, so in this case probably your browser is something special, you may not use default browser settings.
>
I get SeaMonkey & Firefox straight from https://ftp.mozilla.org/ but
of course I use the linux-x86_64 version. Maybe the blacklists are
different for each platform?
> Is there anyone else able to reproduce this problem?
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Now I have also tested on "Ubuntu 17.10 Daily" and using "Firefox Nightly" and I get the same security warning. I somehow expected this, so in this case probably your browser is something special, you may not use default browser settings.
>
I get SeaMonkey & Firefox straight from https://ftp.mozilla.org/ but
of course I use the linux-x86_64 version. Maybe the blacklists are
different for each platform?
> Is there anyone else able to reproduce this problem?
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous
Now I have also tested on "Ubuntu 17.10 Daily" and using "Firefox Nightly" and I get the same security warning. I somehow expected this, so in this case probably your browser is something special, you may not use default browser settings.
Is there anyone else able to reproduce this problem?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is there anyone else able to reproduce this problem?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous
Tony,
I don't think this is a Firefox bug. I downloaded Vim v8.0.0765 two days ago, and now this version also reports "Deceptive Site". Most probably definitions for "evil" web pages have been silently updated. On my PC default Firefox settings are: Tools | Options | Security tab and have all three enabled:
- Block dangerous and deceptive content
- Block dangerous downloads
- Warn you about unwanted and uncommon software
If I disable all of them the "Deceptive Site" message goes away.
In my humble opinion somehow Vim's download site github-production-release-asset-2e65be.s3.amazonaws.com got on the blacklist.
It is interesting according to your words Firefox Nightly (I haven't tested) is working fine.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I don't think this is a Firefox bug. I downloaded Vim v8.0.0765 two days ago, and now this version also reports "Deceptive Site". Most probably definitions for "evil" web pages have been silently updated. On my PC default Firefox settings are: Tools | Options | Security tab and have all three enabled:
- Block dangerous and deceptive content
- Block dangerous downloads
- Warn you about unwanted and uncommon software
If I disable all of them the "Deceptive Site" message goes away.
In my humble opinion somehow Vim's download site github-production-release-asset-2e65be.s3.amazonaws.com got on the blacklist.
It is interesting according to your words Firefox Nightly (I haven't tested) is working fine.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous
On Tue, Jul 25, 2017 at 7:36 AM, Igor Forca <igor2x@gmail.com> wrote:
> Hi,
> today on Vim nightly for Windows
> https://github.com/vim/vim-win32-installer/releases/
> I tried to download gvim_8.0.0771_x64.zip so link is
> https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip
>
> When clicking on above link web page URL is changed to
> https://github-production-release-asset-2e65be.s3.amazonaws.com/50428480/1f20e306-70cd-11e7-8b18-27d2c2dca7a8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T053509Z&X-Amz-Expires=300&X-Amz-Signature=a71f7054845a27fa8e7f3fe102514f19362f278e4773c3ce17a49d58ab81fa78&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgvim_8.0.0771_x64.zip&response-content-type=application%2Foctet-stream
>
> and I get "Deceptive Site" red screen in Firefox 54 with full message:
>
>
>
> Deceptive Site!
>
> This web page at github-production-release-asset-2e65be.s3.amazonaws.com has been reported as a deceptive site and has been blocked based on your security preferences.
>
> Deceptive sites are designed to trick you into doing something dangerous, like installing software, or revealing your personal information, like passwords, phone numbers or credit cards.
>
> Entering any information on this web page may result in identity theft or other fraud.
>
>
> Is it fine to continue or is there really a security problem?
> Regards
Well, of course github is a site which "tries to make you install
software", but of course it is software that you want to get in the
first place.
Using either Firefox 56.0a1 or SeaMonkey 2.53a1 (both of which are
"bleeding-edge nightlies" built from Mozilla's latest development
source) I can download this zipfile with no alert dialog. The "source"
of the download in the Download Manager is your
github-production-release-asset- (etc.) URL. But I am on Linux64 so of
course I cannot install the program to see if it works — or only in
Wine which mightn't be "the real thing". Also, my security preferences
are probably other than yours. In my SeaMonkey preferences, under
"Privacy & Security", both "Safe Browsing" checkboxes are ticked, viz.
"Block reported attack sites (malware, viruses)" and "Block reported
web forgeries (Phishing)". In Firefox preferences, near the bottom of
the "Privacy & Security" tab, all three of "Block dangerous and
deceptive content", "Block dangerous downloads" and "Warn you about
unwanted and uncommon software" are ticked.
I suspect that you might be a victim of some Firefox bug, recently
"fixed" in the 56.0a1 Nightly source but which wasn't yet fixed in
Fx54 when it graduated from "beta" to "release" some weeks ago. This
is only a guess, however, and you might want to search the Mozilla bug
tracker, https://bugzilla.mozilla.org/ about recently fixed Firefox
privacy & security bugs in order to make your own opinion about it.
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
> today on Vim nightly for Windows
> https://github.com/vim/vim-win32-installer/releases/
> I tried to download gvim_8.0.0771_x64.zip so link is
> https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip
>
> When clicking on above link web page URL is changed to
> https://github-production-release-asset-2e65be.s3.amazonaws.com/50428480/1f20e306-70cd-11e7-8b18-27d2c2dca7a8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T053509Z&X-Amz-Expires=300&X-Amz-Signature=a71f7054845a27fa8e7f3fe102514f19362f278e4773c3ce17a49d58ab81fa78&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgvim_8.0.0771_x64.zip&response-content-type=application%2Foctet-stream
>
> and I get "Deceptive Site" red screen in Firefox 54 with full message:
>
>
>
> Deceptive Site!
>
> This web page at github-production-release-asset-2e65be.s3.amazonaws.com has been reported as a deceptive site and has been blocked based on your security preferences.
>
> Deceptive sites are designed to trick you into doing something dangerous, like installing software, or revealing your personal information, like passwords, phone numbers or credit cards.
>
> Entering any information on this web page may result in identity theft or other fraud.
>
>
> Is it fine to continue or is there really a security problem?
> Regards
Well, of course github is a site which "tries to make you install
software", but of course it is software that you want to get in the
first place.
Using either Firefox 56.0a1 or SeaMonkey 2.53a1 (both of which are
"bleeding-edge nightlies" built from Mozilla's latest development
source) I can download this zipfile with no alert dialog. The "source"
of the download in the Download Manager is your
github-production-release-asset- (etc.) URL. But I am on Linux64 so of
course I cannot install the program to see if it works — or only in
Wine which mightn't be "the real thing". Also, my security preferences
are probably other than yours. In my SeaMonkey preferences, under
"Privacy & Security", both "Safe Browsing" checkboxes are ticked, viz.
"Block reported attack sites (malware, viruses)" and "Block reported
web forgeries (Phishing)". In Firefox preferences, near the bottom of
the "Privacy & Security" tab, all three of "Block dangerous and
deceptive content", "Block dangerous downloads" and "Warn you about
unwanted and uncommon software" are ticked.
I suspect that you might be a victim of some Firefox bug, recently
"fixed" in the 56.0a1 Nightly source but which wasn't yet fixed in
Fx54 when it graduated from "beta" to "release" some weeks ago. This
is only a guess, however, and you might want to search the Mozilla bug
tracker, https://bugzilla.mozilla.org/ about recently fixed Firefox
privacy & security bugs in order to make your own opinion about it.
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Monday, July 24, 2017
Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous
Hi,
today on Vim nightly for Windows
https://github.com/vim/vim-win32-installer/releases/
I tried to download gvim_8.0.0771_x64.zip so link is
https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip
When clicking on above link web page URL is changed to
https://github-production-release-asset-2e65be.s3.amazonaws.com/50428480/1f20e306-70cd-11e7-8b18-27d2c2dca7a8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T053509Z&X-Amz-Expires=300&X-Amz-Signature=a71f7054845a27fa8e7f3fe102514f19362f278e4773c3ce17a49d58ab81fa78&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgvim_8.0.0771_x64.zip&response-content-type=application%2Foctet-stream
and I get "Deceptive Site" red screen in Firefox 54 with full message:
Deceptive Site!
This web page at github-production-release-asset-2e65be.s3.amazonaws.com has been reported as a deceptive site and has been blocked based on your security preferences.
Deceptive sites are designed to trick you into doing something dangerous, like installing software, or revealing your personal information, like passwords, phone numbers or credit cards.
Entering any information on this web page may result in identity theft or other fraud.
Is it fine to continue or is there really a security problem?
Regards
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
today on Vim nightly for Windows
https://github.com/vim/vim-win32-installer/releases/
I tried to download gvim_8.0.0771_x64.zip so link is
https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip
When clicking on above link web page URL is changed to
https://github-production-release-asset-2e65be.s3.amazonaws.com/50428480/1f20e306-70cd-11e7-8b18-27d2c2dca7a8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T053509Z&X-Amz-Expires=300&X-Amz-Signature=a71f7054845a27fa8e7f3fe102514f19362f278e4773c3ce17a49d58ab81fa78&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgvim_8.0.0771_x64.zip&response-content-type=application%2Foctet-stream
and I get "Deceptive Site" red screen in Firefox 54 with full message:
Deceptive Site!
This web page at github-production-release-asset-2e65be.s3.amazonaws.com has been reported as a deceptive site and has been blocked based on your security preferences.
Deceptive sites are designed to trick you into doing something dangerous, like installing software, or revealing your personal information, like passwords, phone numbers or credit cards.
Entering any information on this web page may result in identity theft or other fraud.
Is it fine to continue or is there really a security problem?
Regards
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Configure DBext mac for SQLite
On Monday, July 24, 2017 at 7:28:39 AM UTC-4, Brian Libgober wrote:
> Apologies if this is a repeat post, I have been trying to configure vim to work with dbext on MacOS Yosemite. Here's the connection string I have setup in my .vimrc
>
> And here's the command I run
>
> select * from CIK limit 5;
>
> The error I get back
>
> Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 17:32
> Error: near "<": syntax error
> To change connection parameters:
> :DBPromptForBufferParameters
> Or
> :DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
> :DBSetOption user=tiger:passwd=scott
> Last command(rc=1):
> sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
> Last SQL:
> .mode column
> .headers ON
> select * from CIK limit 5
>
> The bizarreness of this is that the following run on terminal:
>
> sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
>
> Yields
>
> index CIK COMPANYNAME
> ---------- ---------- -----------
> 0 0001438823 !J INC
> 1 0001509607 #1 A LIFESA
> 2 0001457512 #1 ARIZONA
> 3 0001433777 #1 PAINTBAL
> 4 0001427189 $ LLC
>
> Which is what I would expect....
Interestingly, the command :DBListTable does what it should, so the connection works...
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Apologies if this is a repeat post, I have been trying to configure vim to work with dbext on MacOS Yosemite. Here's the connection string I have setup in my .vimrc
>
> And here's the command I run
>
> select * from CIK limit 5;
>
> The error I get back
>
> Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 17:32
> Error: near "<": syntax error
> To change connection parameters:
> :DBPromptForBufferParameters
> Or
> :DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
> :DBSetOption user=tiger:passwd=scott
> Last command(rc=1):
> sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
> Last SQL:
> .mode column
> .headers ON
> select * from CIK limit 5
>
> The bizarreness of this is that the following run on terminal:
>
> sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
>
> Yields
>
> index CIK COMPANYNAME
> ---------- ---------- -----------
> 0 0001438823 !J INC
> 1 0001509607 #1 A LIFESA
> 2 0001457512 #1 ARIZONA
> 3 0001433777 #1 PAINTBAL
> 4 0001427189 $ LLC
>
> Which is what I would expect....
Interestingly, the command :DBListTable does what it should, so the connection works...
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: VIM is a usability nightmare ;)
The "oops" was in response to the auto message about top-posting.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: VIM is a usability nightmare ;)
Hi Efraim,
...<scratching my head>.... ;)
What is the context of your "oops" ?
By the way: The title of the text is the opposite
of what the text finally states... :)
Hint: A little bit of Star Wars knowledge helps :) :) :):)))
Cheers
Meino
On 07/24 07:51, Efraim Yawitz wrote:
> Oops!
>
> On Mon, Jul 24, 2017 at 7:50 PM, Efraim Yawitz <efraim.yawitz@gmail.com>
> wrote:
>
> > No one says you have to use it.
> >
> > On Mon, Jul 24, 2017 at 7:14 PM, <tuxic@posteo.de> wrote:
> >
> >> Hi,
> >>
> >> Take a look here...I thought it is worth a reading:
> >> http://www.terminally-incoherent.com/blog/2012/09/05/vim-is-
> >> a-usability-nightmare/
> >>
> >> Spoiler: The title does NOT says it all... ;)
> >>
> >> Have fun!
> >> Cheers
> >> Meino
> >>
> >>
> >>
> >>
> >> --
> >> --
> >> You received this message from the "vim_use" maillist.
> >> Do not top-post! Type your reply below the text you are replying to.
> >> For more information, visit http://www.vim.org/maillist.php
> >>
> >> ---
> >> You received this message because you are subscribed to the Google Groups
> >> "vim_use" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to vim_use+unsubscribe@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
> >>
> >
> >
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...<scratching my head>.... ;)
What is the context of your "oops" ?
By the way: The title of the text is the opposite
of what the text finally states... :)
Hint: A little bit of Star Wars knowledge helps :) :) :):)))
Cheers
Meino
On 07/24 07:51, Efraim Yawitz wrote:
> Oops!
>
> On Mon, Jul 24, 2017 at 7:50 PM, Efraim Yawitz <efraim.yawitz@gmail.com>
> wrote:
>
> > No one says you have to use it.
> >
> > On Mon, Jul 24, 2017 at 7:14 PM, <tuxic@posteo.de> wrote:
> >
> >> Hi,
> >>
> >> Take a look here...I thought it is worth a reading:
> >> http://www.terminally-incoherent.com/blog/2012/09/05/vim-is-
> >> a-usability-nightmare/
> >>
> >> Spoiler: The title does NOT says it all... ;)
> >>
> >> Have fun!
> >> Cheers
> >> Meino
> >>
> >>
> >>
> >>
> >> --
> >> --
> >> You received this message from the "vim_use" maillist.
> >> Do not top-post! Type your reply below the text you are replying to.
> >> For more information, visit http://www.vim.org/maillist.php
> >>
> >> ---
> >> You received this message because you are subscribed to the Google Groups
> >> "vim_use" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to vim_use+unsubscribe@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
> >>
> >
> >
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: VIM is a usability nightmare ;)
Oops!
On Mon, Jul 24, 2017 at 7:50 PM, Efraim Yawitz <efraim.yawitz@gmail.com> wrote:
No one says you have to use it.On Mon, Jul 24, 2017 at 7:14 PM, <tuxic@posteo.de> wrote:Hi,
Take a look here...I thought it is worth a reading:
http://www.terminally-incoherent.com/blog/2012/09/05/vim-is- a-usability-nightmare/
Spoiler: The title does NOT says it all... ;)
Have fun!
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: VIM is a usability nightmare ;)
No one says you have to use it.
On Mon, Jul 24, 2017 at 7:14 PM, <tuxic@posteo.de> wrote:
Hi,
Take a look here...I thought it is worth a reading:
http://www.terminally-incoherent.com/blog/2012/09/ 05/vim-is-a-usability- nightmare/
Spoiler: The title does NOT says it all... ;)
Have fun!
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
VIM is a usability nightmare ;)
Hi,
Take a look here...I thought it is worth a reading:
http://www.terminally-incoherent.com/blog/2012/09/05/vim-is-a-usability-nightmare/
Spoiler: The title does NOT says it all... ;)
Have fun!
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Take a look here...I thought it is worth a reading:
http://www.terminally-incoherent.com/blog/2012/09/05/vim-is-a-usability-nightmare/
Spoiler: The title does NOT says it all... ;)
Have fun!
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: How PHP syntax file works?
суббота, 22 июля 2017 г., 6:37:56 UTC+3 пользователь unDEFER написал:
> The second line opens phpRegion region by the next syntax rule:
> syn region phpRegion matchgroup=Delimiter start="<?\(php\)\=" end="?>" contains=@phpClTop keepend
>
> The third line opens phpParent region by the next syntax rule:
> syn region phpParent matchgroup=Delimiter start="{" end="}" contained contains=@phpClFunction,phpFoldHtmlInside transparent fold
>
> And the fourth line opens phpFoldHtmlInside region by the next syntax rule:
> syn region phpFoldHtmlInside matchgroup=Delimiter start="?>" end="<?\(php\)\=" contained transparent contains=@htmlTop
OK. I have found with syntrace that really vim closes phpRegion here. Seems it is possible because phpParent is transparent, but in the documentation I didn't found anything about it.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> The second line opens phpRegion region by the next syntax rule:
> syn region phpRegion matchgroup=Delimiter start="<?\(php\)\=" end="?>" contains=@phpClTop keepend
>
> The third line opens phpParent region by the next syntax rule:
> syn region phpParent matchgroup=Delimiter start="{" end="}" contained contains=@phpClFunction,phpFoldHtmlInside transparent fold
>
> And the fourth line opens phpFoldHtmlInside region by the next syntax rule:
> syn region phpFoldHtmlInside matchgroup=Delimiter start="?>" end="<?\(php\)\=" contained transparent contains=@htmlTop
OK. I have found with syntrace that really vim closes phpRegion here. Seems it is possible because phpParent is transparent, but in the documentation I didn't found anything about it.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, July 23, 2017
map in diffexpr
Hi,
I use my diffexpr to do diff, and map different hotkey in different window.
In vim74, it could work correctly.
But in vim80, my diffexpr will fail to move to other windows, so the following map fail too.
How should I do this job in vim80?
Thanks.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I use my diffexpr to do diff, and map different hotkey in different window.
In vim74, it could work correctly.
But in vim80, my diffexpr will fail to move to other windows, so the following map fail too.
How should I do this job in vim80?
Thanks.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Syntax highlight problem
Hi Vimmers,
I'm writing a syntax file for Swift language. Apple Swift. What I'm trying to accomplish is have different regions for a function call and a function definition. This is not so difficult because a function definition will always be preceded by the keyword 'func'. I want two different regions because Swift, like Objective-C, has parameter labels that can be declared on its functions. For example:
func doSomething(param1: Int, paramLabel2 param2: Int)
When I call that function I should write:
doSomething(1, paramLabel2: 0)
What I want with the syntax file is to highlight the parameters labels in the function definition and also in the function call. So I am trying this set of groups:
syn match swiftDelimiter "[\[]{}()]" contained
syn region swiftBlock transparent matchgroup=swiftDelimiter start=/{/ end=/}/ fold
syn region swiftArray transparent matchgroup=swiftDelimiter start=/\[/ end=/\]/
syn region swiftBraces transparent matchgroup=swiftDelimiter start=/\\\@<!(/ end=/)/
syn region swiftFunDecl transparent matchgroup=swiftDelimiter start="^\%(.*\%(func\s\+\k\+\|[^.]init[?]\?\)\)\s*\zs(" end=")" contains=ALLBUT,swiftParam
syn match swiftParam contained containedin=swiftBraces display /\k\+\s*\%(:\)\@=/
syn match swiftLabel contained display /\(_\|\k\+\)\(\s\+\k\+\s*:\)\@=/ containedin=swiftBraces
The 'swiftFunDecl' matches every function definition and the 'swiftBraces' should match only other places where 'swiftFunDecl' doesn't match. But that isn't happening. The 'swiftBraces' still matches where 'swiftFunDecl' matches and, therefore, parameters are highlighted in the function definition where only labels should be highlighted.
I can't see what I'm doing wrong. Could someone help me with that?
Thanks in advance,
Alessandro Antonello
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Configure DBext mac for SQLite
Apologies if this is a repeat post, I have been trying to configure vim to work with dbext on MacOS Yosemite. Here's the connection string I have setup in my .vimrc
And here's the command I run
select * from CIK limit 5;
The error I get back
Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 17:32
Error: near "<": syntax error
To change connection parameters:
:DBPromptForBufferParameters
Or
:DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
:DBSetOption user=tiger:passwd=scott
Last command(rc=1):
sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
Last SQL:
.mode column
.headers ON
select * from CIK limit 5
The bizarreness of this is that the following run on terminal:
sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
Yields
index CIK COMPANYNAME
---------- ---------- -----------
0 0001438823 !J INC
1 0001509607 #1 A LIFESA
2 0001457512 #1 ARIZONA
3 0001433777 #1 PAINTBAL
4 0001427189 $ LLC
Which is what I would expect....
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
And here's the command I run
select * from CIK limit 5;
The error I get back
Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 17:32
Error: near "<": syntax error
To change connection parameters:
:DBPromptForBufferParameters
Or
:DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
:DBSetOption user=tiger:passwd=scott
Last command(rc=1):
sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
Last SQL:
.mode column
.headers ON
select * from CIK limit 5
The bizarreness of this is that the following run on terminal:
sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/v5uxPIb/dbext.sql
Yields
index CIK COMPANYNAME
---------- ---------- -----------
0 0001438823 !J INC
1 0001509607 #1 A LIFESA
2 0001457512 #1 ARIZONA
3 0001433777 #1 PAINTBAL
4 0001427189 $ LLC
Which is what I would expect....
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Trying to get dbext to work on a mac os yosemite
Hello,
Pretty new to vim, struggling to configure dbext to work with a sqlite database. I'm using VIM v8.0.278 on a Macbook running yosemite. Setup my connection string like so
let g:dbext_default_profile_SQLite = 'type=SQLITE:SQLITE_bin=sqlite3:dbname=/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite'
I run a simple command "select * from CIK limit 5;"
The response is a bizarre error message:
Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 15:50
Error: near "<": syntax error
To change connection parameters:
:DBPromptForBufferParameters
Or
:DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
:DBSetOption user=tiger:passwd=scott
Last command(rc=1):
sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/vR5KQNz/dbext.sql
Last SQL:
.mode column
.headers ON
select * from CIK limit 5;
The weirdest part of this is that the command apparently sent to the terminal does work when run on its own.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pretty new to vim, struggling to configure dbext to work with a sqlite database. I'm using VIM v8.0.278 on a Macbook running yosemite. Setup my connection string like so
let g:dbext_default_profile_SQLite = 'type=SQLITE:SQLITE_bin=sqlite3:dbname=/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite'
I run a simple command "select * from CIK limit 5;"
The response is a bizarre error message:
Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite) at 15:50
Error: near "<": syntax error
To change connection parameters:
:DBPromptForBufferParameters
Or
:DBSetOption user|passwd|dsnname|srvname|dbname|host|port|...=<value>
:DBSetOption user=tiger:passwd=scott
Last command(rc=1):
sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr6slgc7fc940000gn/T/vR5KQNz/dbext.sql
Last SQL:
.mode column
.headers ON
select * from CIK limit 5;
The weirdest part of this is that the command apparently sent to the terminal does work when run on its own.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Arduino with vim (read "no IDE"-challenge)
On 07/23 06:04, Erik Christiansen wrote:
> On 22.07.17 17:21, tuxic@posteo.de wrote:
> > To summarize my initial mail more clearly:
> > What plugin is recommended, if I want to use vim to replace the tasks
> > of the Arduino IDE.
> > I am running Gentoo Linux on a x86 PC.
>
> Hi Meino,
>
> ISTM that if performing all coding and build actions in Vim, then the
> IDE might be ditched altogether? I do my AVR work (including ATmega328P
> = most common Arduino CPU) with just Vim, avr-gcc, and binutils
> (available as debian packages). While I don't use any Arduino code
> (called "sketches", it seems), I see here that Eclipse is just a
> front end for the gnu toolchain - even to the point of makefiles:
>
> http://thinkingonthinking.com/an-arduino-sketch-from-scratch/
>
> ISTM then, that if you, either manually or via the IDE, produce a
> makefile, then make can be invoked either on the command line or through
> Vim, to build the code. Whether you then use the IDE or Avrdude to
> download to the target would probably depend on whether you want to keep
> the Arduino bootloader intact.
>
> There are others out there using just the gnu toolchain for Arduino
> sketches, perhaps along the lines of this plain command line approach:
>
> http://ardas.readthedocs.io/en/latest/build_arduino_sketch.html
>
> And these confessions of an IDE avoider:
>
> http://shallowsky.com/software/arduino/arduino-cmdline.html
>
> have a "mail me" link at the end of the page.
>
> If I were ever to use any Arduino code on the Arduino boards I buy, I'd
> just link in the relevant libraries, I figure. There seems to be some of
> that here:
>
> https://balau82.wordpress.com/2011/03/29/programming-arduino-uno-in-pure-c/
>
> As the avr-gcc toolchain is already there once the IDE is installed, it
> seems that one can work with any Vim/IDE mix desired. E.g. if the files
> are edited with Vim, then either "make" or an IDE click could be used to
> build.
>
> Erik
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Thanks for your help.
It seems difficult, but I simply want the name of the most
recommended/useful plugin for vim to verify, compile and
upload Arduino sketches (!SKETCHES!) to different Arduino
boards.
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On 22.07.17 17:21, tuxic@posteo.de wrote:
> > To summarize my initial mail more clearly:
> > What plugin is recommended, if I want to use vim to replace the tasks
> > of the Arduino IDE.
> > I am running Gentoo Linux on a x86 PC.
>
> Hi Meino,
>
> ISTM that if performing all coding and build actions in Vim, then the
> IDE might be ditched altogether? I do my AVR work (including ATmega328P
> = most common Arduino CPU) with just Vim, avr-gcc, and binutils
> (available as debian packages). While I don't use any Arduino code
> (called "sketches", it seems), I see here that Eclipse is just a
> front end for the gnu toolchain - even to the point of makefiles:
>
> http://thinkingonthinking.com/an-arduino-sketch-from-scratch/
>
> ISTM then, that if you, either manually or via the IDE, produce a
> makefile, then make can be invoked either on the command line or through
> Vim, to build the code. Whether you then use the IDE or Avrdude to
> download to the target would probably depend on whether you want to keep
> the Arduino bootloader intact.
>
> There are others out there using just the gnu toolchain for Arduino
> sketches, perhaps along the lines of this plain command line approach:
>
> http://ardas.readthedocs.io/en/latest/build_arduino_sketch.html
>
> And these confessions of an IDE avoider:
>
> http://shallowsky.com/software/arduino/arduino-cmdline.html
>
> have a "mail me" link at the end of the page.
>
> If I were ever to use any Arduino code on the Arduino boards I buy, I'd
> just link in the relevant libraries, I figure. There seems to be some of
> that here:
>
> https://balau82.wordpress.com/2011/03/29/programming-arduino-uno-in-pure-c/
>
> As the avr-gcc toolchain is already there once the IDE is installed, it
> seems that one can work with any Vim/IDE mix desired. E.g. if the files
> are edited with Vim, then either "make" or an IDE click could be used to
> build.
>
> Erik
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Thanks for your help.
It seems difficult, but I simply want the name of the most
recommended/useful plugin for vim to verify, compile and
upload Arduino sketches (!SKETCHES!) to different Arduino
boards.
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Function xxxx already exists, add ! to replace it
2017-07-23 11:49 GMT+03:00 Length Power <elearn2014@gmail.com>:
> here is my .vimrc
>
> 1 execute pathogen#infect()
> 2 execute pathogen#helptags()
> 3 syntax on
> 4 filetype plugin indent on
> 5
> 6 let g:pydiction_location = '/home/guest/.vim/bundle/dict/pydiction/complete-dict'
> 7 let g:pydiction_menu_height = 10
> 8
> 9 au FileType python call PyFun()
> 10 function PyFun()
> 11 set tags+=/home/guest/.vim/tags/python.tag
> 12 autocmd FileType python set omnifunc=pythoncomplete#Complete
> 13 endfunction
> 14
> 15 au FileType c call CFun()
> 16 function CFun()
> 17 set tags+=/home/guest/.vim/tags/c.tag
> 18 autocmd FileType c set omnifunc=ccomplete#Complete
> 19 endfunction
> 20
> 21 au FileType php call PhpFun()
> 22 function PhpFun()
> 23 set dictionary-=$HOME/.vim/bundle/dict/vim-php-dictionariy/dict/PHP.dict dictionary+=$HOME/.vim/bundle/dict/vim-php-dictionary/dict/PHP.dict
> 24 autocmd FileType php set omnifunc=phpcomplete#Complete
> 25 endfunction
> 26
> 27 let g:tern_show_signature_in_pum = 1
>
>
> :source .vimrc
>
> result in some error info
>
> Error detected while processing /home/guest/.vimrc:
> line 13:
> E122: Function PyFun already exists, add ! to replace it
> line 19:
> E122: Function CFun already exists, add ! to replace it
> line 25:
> E122: Function PhpFun already exists, add ! to replace it
> Press ENTER or type command to continue
>
> Are there something wrong to fix?
There are many things wrong here, but with this vimrc you should be
restarting Vim in order to not get the errors (or add bang like it
requests, but if you keep writing code like this better just restart).
"Wrong":
1. You are defining autocmds which run something on FileType event …
in a function which is *already* run on FileType event. I am not sure
whether these autocommands work, but this is a waste. Just remove all
`autocmd FileType {ft} {cmd}` from functions, keeping only `{cmd}`
parts.
This is a waste not only because of needless autocmd creation, but
because new autocmd setting omnifunc will be added each time you open
php, etc file, this way after opening two php files you will have two
autocommands doing the same thing.
2. All autocommands are supposed to be in an augroup with a unique
name unless you want troubles (creating duplicate autocommands each
time) on resourcing vimrc. Example is right below `:h :augroup`.
3. Do not use `:set` for filetype-specific options, there is `:setlocal`.
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> here is my .vimrc
>
> 1 execute pathogen#infect()
> 2 execute pathogen#helptags()
> 3 syntax on
> 4 filetype plugin indent on
> 5
> 6 let g:pydiction_location = '/home/guest/.vim/bundle/dict/pydiction/complete-dict'
> 7 let g:pydiction_menu_height = 10
> 8
> 9 au FileType python call PyFun()
> 10 function PyFun()
> 11 set tags+=/home/guest/.vim/tags/python.tag
> 12 autocmd FileType python set omnifunc=pythoncomplete#Complete
> 13 endfunction
> 14
> 15 au FileType c call CFun()
> 16 function CFun()
> 17 set tags+=/home/guest/.vim/tags/c.tag
> 18 autocmd FileType c set omnifunc=ccomplete#Complete
> 19 endfunction
> 20
> 21 au FileType php call PhpFun()
> 22 function PhpFun()
> 23 set dictionary-=$HOME/.vim/bundle/dict/vim-php-dictionariy/dict/PHP.dict dictionary+=$HOME/.vim/bundle/dict/vim-php-dictionary/dict/PHP.dict
> 24 autocmd FileType php set omnifunc=phpcomplete#Complete
> 25 endfunction
> 26
> 27 let g:tern_show_signature_in_pum = 1
>
>
> :source .vimrc
>
> result in some error info
>
> Error detected while processing /home/guest/.vimrc:
> line 13:
> E122: Function PyFun already exists, add ! to replace it
> line 19:
> E122: Function CFun already exists, add ! to replace it
> line 25:
> E122: Function PhpFun already exists, add ! to replace it
> Press ENTER or type command to continue
>
> Are there something wrong to fix?
There are many things wrong here, but with this vimrc you should be
restarting Vim in order to not get the errors (or add bang like it
requests, but if you keep writing code like this better just restart).
"Wrong":
1. You are defining autocmds which run something on FileType event …
in a function which is *already* run on FileType event. I am not sure
whether these autocommands work, but this is a waste. Just remove all
`autocmd FileType {ft} {cmd}` from functions, keeping only `{cmd}`
parts.
This is a waste not only because of needless autocmd creation, but
because new autocmd setting omnifunc will be added each time you open
php, etc file, this way after opening two php files you will have two
autocommands doing the same thing.
2. All autocommands are supposed to be in an augroup with a unique
name unless you want troubles (creating duplicate autocommands each
time) on resourcing vimrc. Example is right below `:h :augroup`.
3. Do not use `:set` for filetype-specific options, there is `:setlocal`.
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Function xxxx already exists, add ! to replace it
here is my .vimrc
1 execute pathogen#infect()
2 execute pathogen#helptags()
3 syntax on
4 filetype plugin indent on
5
6 let g:pydiction_location = '/home/guest/.vim/bundle/dict/pydiction/complete-dict'
7 let g:pydiction_menu_height = 10
8
9 au FileType python call PyFun()
10 function PyFun()
11 set tags+=/home/guest/.vim/tags/python.tag
12 autocmd FileType python set omnifunc=pythoncomplete#Complete
13 endfunction
14
15 au FileType c call CFun()
16 function CFun()
17 set tags+=/home/guest/.vim/tags/c.tag
18 autocmd FileType c set omnifunc=ccomplete#Complete
19 endfunction
20
21 au FileType php call PhpFun()
22 function PhpFun()
23 set dictionary-=$HOME/.vim/bundle/dict/vim-php-dictionariy/dict/PHP.dict dictionary+=$HOME/.vim/bundle/dict/vim-php-dictionary/dict/PHP.dict
24 autocmd FileType php set omnifunc=phpcomplete#Complete
25 endfunction
26
27 let g:tern_show_signature_in_pum = 1
:source .vimrc
result in some error info
Error detected while processing /home/guest/.vimrc:
line 13:
E122: Function PyFun already exists, add ! to replace it
line 19:
E122: Function CFun already exists, add ! to replace it
line 25:
E122: Function PhpFun already exists, add ! to replace it
Press ENTER or type command to continue
Are there something wrong to fix?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1 execute pathogen#infect()
2 execute pathogen#helptags()
3 syntax on
4 filetype plugin indent on
5
6 let g:pydiction_location = '/home/guest/.vim/bundle/dict/pydiction/complete-dict'
7 let g:pydiction_menu_height = 10
8
9 au FileType python call PyFun()
10 function PyFun()
11 set tags+=/home/guest/.vim/tags/python.tag
12 autocmd FileType python set omnifunc=pythoncomplete#Complete
13 endfunction
14
15 au FileType c call CFun()
16 function CFun()
17 set tags+=/home/guest/.vim/tags/c.tag
18 autocmd FileType c set omnifunc=ccomplete#Complete
19 endfunction
20
21 au FileType php call PhpFun()
22 function PhpFun()
23 set dictionary-=$HOME/.vim/bundle/dict/vim-php-dictionariy/dict/PHP.dict dictionary+=$HOME/.vim/bundle/dict/vim-php-dictionary/dict/PHP.dict
24 autocmd FileType php set omnifunc=phpcomplete#Complete
25 endfunction
26
27 let g:tern_show_signature_in_pum = 1
:source .vimrc
result in some error info
Error detected while processing /home/guest/.vimrc:
line 13:
E122: Function PyFun already exists, add ! to replace it
line 19:
E122: Function CFun already exists, add ! to replace it
line 25:
E122: Function PhpFun already exists, add ! to replace it
Press ENTER or type command to continue
Are there something wrong to fix?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Arduino with vim (read "no IDE"-challenge)
On 22.07.17 17:21, tuxic@posteo.de wrote:
> To summarize my initial mail more clearly:
> What plugin is recommended, if I want to use vim to replace the tasks
> of the Arduino IDE.
> I am running Gentoo Linux on a x86 PC.
Hi Meino,
ISTM that if performing all coding and build actions in Vim, then the
IDE might be ditched altogether? I do my AVR work (including ATmega328P
= most common Arduino CPU) with just Vim, avr-gcc, and binutils
(available as debian packages). While I don't use any Arduino code
(called "sketches", it seems), I see here that Eclipse is just a
front end for the gnu toolchain - even to the point of makefiles:
http://thinkingonthinking.com/an-arduino-sketch-from-scratch/
ISTM then, that if you, either manually or via the IDE, produce a
makefile, then make can be invoked either on the command line or through
Vim, to build the code. Whether you then use the IDE or Avrdude to
download to the target would probably depend on whether you want to keep
the Arduino bootloader intact.
There are others out there using just the gnu toolchain for Arduino
sketches, perhaps along the lines of this plain command line approach:
http://ardas.readthedocs.io/en/latest/build_arduino_sketch.html
And these confessions of an IDE avoider:
http://shallowsky.com/software/arduino/arduino-cmdline.html
have a "mail me" link at the end of the page.
If I were ever to use any Arduino code on the Arduino boards I buy, I'd
just link in the relevant libraries, I figure. There seems to be some of
that here:
https://balau82.wordpress.com/2011/03/29/programming-arduino-uno-in-pure-c/
As the avr-gcc toolchain is already there once the IDE is installed, it
seems that one can work with any Vim/IDE mix desired. E.g. if the files
are edited with Vim, then either "make" or an IDE click could be used to
build.
Erik
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> To summarize my initial mail more clearly:
> What plugin is recommended, if I want to use vim to replace the tasks
> of the Arduino IDE.
> I am running Gentoo Linux on a x86 PC.
Hi Meino,
ISTM that if performing all coding and build actions in Vim, then the
IDE might be ditched altogether? I do my AVR work (including ATmega328P
= most common Arduino CPU) with just Vim, avr-gcc, and binutils
(available as debian packages). While I don't use any Arduino code
(called "sketches", it seems), I see here that Eclipse is just a
front end for the gnu toolchain - even to the point of makefiles:
http://thinkingonthinking.com/an-arduino-sketch-from-scratch/
ISTM then, that if you, either manually or via the IDE, produce a
makefile, then make can be invoked either on the command line or through
Vim, to build the code. Whether you then use the IDE or Avrdude to
download to the target would probably depend on whether you want to keep
the Arduino bootloader intact.
There are others out there using just the gnu toolchain for Arduino
sketches, perhaps along the lines of this plain command line approach:
http://ardas.readthedocs.io/en/latest/build_arduino_sketch.html
And these confessions of an IDE avoider:
http://shallowsky.com/software/arduino/arduino-cmdline.html
have a "mail me" link at the end of the page.
If I were ever to use any Arduino code on the Arduino boards I buy, I'd
just link in the relevant libraries, I figure. There seems to be some of
that here:
https://balau82.wordpress.com/2011/03/29/programming-arduino-uno-in-pure-c/
As the avr-gcc toolchain is already there once the IDE is installed, it
seems that one can work with any Vim/IDE mix desired. E.g. if the files
are edited with Vim, then either "make" or an IDE click could be used to
build.
Erik
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saturday, July 22, 2017
Re: Which file control the action of indent?
On Sat, 22 Jul 2017 18:09:32 -0700 (PDT)
Length Power <elearn2014@gmail.com> wrote:
> Which file will be changed when to customize indent action?
Add a file `~/.vim/after/ftplugin/python.vim` and make your changes
there.The `after/` directory means it will be run after the regular
`python.vim` And this will protect your changes from any updates to the
regular file.
--
Don't stop where the ink does.
Shawn H Corey
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Length Power <elearn2014@gmail.com> wrote:
> Which file will be changed when to customize indent action?
Add a file `~/.vim/after/ftplugin/python.vim` and make your changes
there.The `after/` directory means it will be run after the regular
`python.vim` And this will protect your changes from any updates to the
regular file.
--
Don't stop where the ink does.
Shawn H Corey
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Which file control the action of indent?
sudo find / -name 'python.vim'
/usr/local/share/vim/vim80/ftplugin/python.vim
/usr/local/share/vim/vim80/syntax/python.vim
/usr/local/share/vim/vim80/indent/python.vim
/home/username/vim/runtime/ftplugin/python.vim
/home/username/vim/runtime/syntax/python.vim
/home/username/vim/runtime/indent/python.vim
I want to change the indent in python file,there are two python.vim about indent.
/usr/local/share/vim/vim80/indent/python.vim
/home/username/vim/runtime/indent/python.vim
Which file will be changed when to customize indent action?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/usr/local/share/vim/vim80/ftplugin/python.vim
/usr/local/share/vim/vim80/syntax/python.vim
/usr/local/share/vim/vim80/indent/python.vim
/home/username/vim/runtime/ftplugin/python.vim
/home/username/vim/runtime/syntax/python.vim
/home/username/vim/runtime/indent/python.vim
I want to change the indent in python file,there are two python.vim about indent.
/usr/local/share/vim/vim80/indent/python.vim
/home/username/vim/runtime/indent/python.vim
Which file will be changed when to customize indent action?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Arduino with vim (read "no IDE"-challenge)
On 07/22 08:02, Richard Mitchell wrote:
> On Saturday, July 22, 2017 at 9:44:31 AM UTC-4, tu...@posteo.de wrote:
> > Hi,
> >
> > I want to try writing, compiling and uploading Arduino sketches
> > without using the IDE (I prefere vim (obviously) as editor and
> > switching between IDE and the then called "external editor" is
> > quite fiddly).
> >
> > Fortunately I found plugins which claim to do exactly that.
> >
> > Unfortunatelu theu are qyite a few.... ;)
> >
> > Any suggestion what is suggested and what to try first?
> > Anu Arduino-vimmer out there?
> >
> > Thanks in advance for uploading any helpful sketch into this mailing list!
> >
> > Cheers
> > Meino
>
>
> What platform are you using?
>
> The current arduino gui can also be run from the command line. On MacOS it can be found:
>
> Arduino.app/Contents/MacOS/Arduino
>
> Using an alias to path to it, you can upload code to your board with something like:
>
> arduino --port /dev/cu.usbmodem1421 --upload FILE.ino
>
> (where obviously you use the correct port for your system)
>
> The main commands I've used are:
>
> ◦ [-v] --verify FILE.ino
> ◦ [-v] --upload FILE.ino
> ◦ --get-pref
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Hi,
thanks for your help.
To summarize my initial mail more clearly:
What plugin is recommended, if I want to use vim to replace the tasks
of the Arduino IDE.
I am running Gentoo Linux on a x86 PC.
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> On Saturday, July 22, 2017 at 9:44:31 AM UTC-4, tu...@posteo.de wrote:
> > Hi,
> >
> > I want to try writing, compiling and uploading Arduino sketches
> > without using the IDE (I prefere vim (obviously) as editor and
> > switching between IDE and the then called "external editor" is
> > quite fiddly).
> >
> > Fortunately I found plugins which claim to do exactly that.
> >
> > Unfortunatelu theu are qyite a few.... ;)
> >
> > Any suggestion what is suggested and what to try first?
> > Anu Arduino-vimmer out there?
> >
> > Thanks in advance for uploading any helpful sketch into this mailing list!
> >
> > Cheers
> > Meino
>
>
> What platform are you using?
>
> The current arduino gui can also be run from the command line. On MacOS it can be found:
>
> Arduino.app/Contents/MacOS/Arduino
>
> Using an alias to path to it, you can upload code to your board with something like:
>
> arduino --port /dev/cu.usbmodem1421 --upload FILE.ino
>
> (where obviously you use the correct port for your system)
>
> The main commands I've used are:
>
> ◦ [-v] --verify FILE.ino
> ◦ [-v] --upload FILE.ino
> ◦ --get-pref
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Hi,
thanks for your help.
To summarize my initial mail more clearly:
What plugin is recommended, if I want to use vim to replace the tasks
of the Arduino IDE.
I am running Gentoo Linux on a x86 PC.
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Arduino with vim (read "no IDE"-challenge)
On Saturday, July 22, 2017 at 9:44:31 AM UTC-4, tu...@posteo.de wrote:
> Hi,
>
> I want to try writing, compiling and uploading Arduino sketches
> without using the IDE (I prefere vim (obviously) as editor and
> switching between IDE and the then called "external editor" is
> quite fiddly).
>
> Fortunately I found plugins which claim to do exactly that.
>
> Unfortunatelu theu are qyite a few.... ;)
>
> Any suggestion what is suggested and what to try first?
> Anu Arduino-vimmer out there?
>
> Thanks in advance for uploading any helpful sketch into this mailing list!
>
> Cheers
> Meino
What platform are you using?
The current arduino gui can also be run from the command line. On MacOS it can be found:
Arduino.app/Contents/MacOS/Arduino
Using an alias to path to it, you can upload code to your board with something like:
arduino --port /dev/cu.usbmodem1421 --upload FILE.ino
(where obviously you use the correct port for your system)
The main commands I've used are:
◦ [-v] --verify FILE.ino
◦ [-v] --upload FILE.ino
◦ --get-pref
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Hi,
>
> I want to try writing, compiling and uploading Arduino sketches
> without using the IDE (I prefere vim (obviously) as editor and
> switching between IDE and the then called "external editor" is
> quite fiddly).
>
> Fortunately I found plugins which claim to do exactly that.
>
> Unfortunatelu theu are qyite a few.... ;)
>
> Any suggestion what is suggested and what to try first?
> Anu Arduino-vimmer out there?
>
> Thanks in advance for uploading any helpful sketch into this mailing list!
>
> Cheers
> Meino
What platform are you using?
The current arduino gui can also be run from the command line. On MacOS it can be found:
Arduino.app/Contents/MacOS/Arduino
Using an alias to path to it, you can upload code to your board with something like:
arduino --port /dev/cu.usbmodem1421 --upload FILE.ino
(where obviously you use the correct port for your system)
The main commands I've used are:
◦ [-v] --verify FILE.ino
◦ [-v] --upload FILE.ino
◦ --get-pref
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Arduino with vim (read "no IDE"-challenge)
Hi,
I want to try writing, compiling and uploading Arduino sketches
without using the IDE (I prefere vim (obviously) as editor and
switching between IDE and the then called "external editor" is
quite fiddly).
Fortunately I found plugins which claim to do exactly that.
Unfortunatelu theu are qyite a few.... ;)
Any suggestion what is suggested and what to try first?
Anu Arduino-vimmer out there?
Thanks in advance for uploading any helpful sketch into this mailing list!
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I want to try writing, compiling and uploading Arduino sketches
without using the IDE (I prefere vim (obviously) as editor and
switching between IDE and the then called "external editor" is
quite fiddly).
Fortunately I found plugins which claim to do exactly that.
Unfortunatelu theu are qyite a few.... ;)
Any suggestion what is suggested and what to try first?
Anu Arduino-vimmer out there?
Thanks in advance for uploading any helpful sketch into this mailing list!
Cheers
Meino
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Friday, July 21, 2017
Re: How to get the vim buildin variable list?
On Sat, Jul 22, 2017 at 4:24 AM, Zhe Lee <imlegendlzz@gmail.com> wrote:
> I know the variable $HOME, $VIM, and $VIMRC
>
> I want to get all the buildin list how to get that ?
These are not built-in; on the contrary, they are environment
variables. You can set any environment variable on starting Vim and
test it in any script, e.g. in your vimrc; but there are a few that
Vim will test or set as part of its normal behaviour. In addition to
those you mentioned, off the top of my head I can add $VIMRUNTIME,
which normally should not be set by the user but by Vim itself, and
$MYVIMRC and $MYGVIMRC, which are set to the vimrc and (if any) the
gvimrc that were used.
To find all these environment variables in the help, try the following:
:helpgrep \$\u\+\>
i.e. grep the help for a dollar sign, followed by one or more capital
letters (as many as possible), followed by an end-of-word.
This will give you (as a quickfix list) all occurrences of an
environment variable name in the help, including duplicates. I just
tried it, and Vim tells me that there are 351 such places, but
remember, each of them is counted as many times as it is mentioned in
the help.
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I know the variable $HOME, $VIM, and $VIMRC
>
> I want to get all the buildin list how to get that ?
These are not built-in; on the contrary, they are environment
variables. You can set any environment variable on starting Vim and
test it in any script, e.g. in your vimrc; but there are a few that
Vim will test or set as part of its normal behaviour. In addition to
those you mentioned, off the top of my head I can add $VIMRUNTIME,
which normally should not be set by the user but by Vim itself, and
$MYVIMRC and $MYGVIMRC, which are set to the vimrc and (if any) the
gvimrc that were used.
To find all these environment variables in the help, try the following:
:helpgrep \$\u\+\>
i.e. grep the help for a dollar sign, followed by one or more capital
letters (as many as possible), followed by an end-of-word.
This will give you (as a quickfix list) all occurrences of an
environment variable name in the help, including duplicates. I just
tried it, and Vim tells me that there are 351 such places, but
remember, each of them is counted as many times as it is mentioned in
the help.
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How to get the vim buildin variable list?
I know the variable $HOME, $VIM, and $VIMRC
I want to get all the buildin list how to get that ?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I want to get all the buildin list how to get that ?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How PHP syntax file works?
Hello!
I'm trying to write text editor with syntax highlighting based on vim syntax files.
And I have the small problem.
There is here the PHP code:
=========== 8< ========
<script>
<?
{
?>
javascript_function()
=========== >8 ========
The first line opens javaScript region by the next syntax rule:
syn region javaScript start=+<script\_[^>]*>+ keepend end=+</script\_[^>]*>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
The second line opens phpRegion region by the next syntax rule:
syn region phpRegion matchgroup=Delimiter start="<?\(php\)\=" end="?>" contains=@phpClTop keepend
The third line opens phpParent region by the next syntax rule:
syn region phpParent matchgroup=Delimiter start="{" end="}" contained contains=@phpClFunction,phpFoldHtmlInside transparent fold
And the fourth line opens phpFoldHtmlInside region by the next syntax rule:
syn region phpFoldHtmlInside matchgroup=Delimiter start="?>" end="<?\(php\)\=" contained transparent contains=@htmlTop
HTML! Not JavaScript! So how the vim do this trick? There is no phpFoldJavaScriptInside region. Why the vim continues highlight region after "?>" as JavaScript and not HTML?
Big thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm trying to write text editor with syntax highlighting based on vim syntax files.
And I have the small problem.
There is here the PHP code:
=========== 8< ========
<script>
<?
{
?>
javascript_function()
=========== >8 ========
The first line opens javaScript region by the next syntax rule:
syn region javaScript start=+<script\_[^>]*>+ keepend end=+</script\_[^>]*>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
The second line opens phpRegion region by the next syntax rule:
syn region phpRegion matchgroup=Delimiter start="<?\(php\)\=" end="?>" contains=@phpClTop keepend
The third line opens phpParent region by the next syntax rule:
syn region phpParent matchgroup=Delimiter start="{" end="}" contained contains=@phpClFunction,phpFoldHtmlInside transparent fold
And the fourth line opens phpFoldHtmlInside region by the next syntax rule:
syn region phpFoldHtmlInside matchgroup=Delimiter start="?>" end="<?\(php\)\=" contained transparent contains=@htmlTop
HTML! Not JavaScript! So how the vim do this trick? There is no phpFoldJavaScriptInside region. Why the vim continues highlight region after "?>" as JavaScript and not HTML?
Big thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, July 19, 2017
Re: How to active the tab if the file is already opened?
On Wednesday, July 19, 2017 at 9:15:02 AM UTC+8, Zhe Lee wrote:
> I use the code to open my snippet. But if it already been opened, I just want to active the tab instead of open a new tab.
> How to do that?
>
> tabnew $VIM\vimfiles\bundle\vim-snipmate\snippets\python.snippets<CR>
tab drop will do~
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I use the code to open my snippet. But if it already been opened, I just want to active the tab instead of open a new tab.
> How to do that?
>
> tabnew $VIM\vimfiles\bundle\vim-snipmate\snippets\python.snippets<CR>
tab drop will do~
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, July 18, 2017
How to active the tab if the file is already opened?
I use the code to open my snippet. But if it already been opened, I just want to active the tab instead of open a new tab.
How to do that?
tabnew $VIM\vimfiles\bundle\vim-snipmate\snippets\python.snippets<CR>
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How to do that?
tabnew $VIM\vimfiles\bundle\vim-snipmate\snippets\python.snippets<CR>
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: dbext version 20 does not prompt for connection profile
On Monday, July 17, 2017 at 9:56:59 AM UTC-7, David Fishburn wrote:
> However, I wonder if I have simply been misinterpreting the functionality. One helpful site that led me to this plugin in the first place left me with the impression that the user is prompted for the desired DB connection from the list of connections detailed in the vimrc when you first call dbext in a new buffer. That does not happen. If I run a query, table select, or whatever from dbext, it automatically runs that command using the default DB connection. I can, however, use any DB connection listed in the vimrc if I run \sbp. Upon further reflection, this is probably the way it is intended to work, and I very much apologize for having troubled you if this was simply operator error.
>
>
>
>
>
> You can have that desired behaviour, just depends on how you have setup your defaults.
>
>
> If you put this in your .vimrc:
> :let g:dbext_default_profile='@askb'
>
>
> You are saying, "@askb" = "Ask first time per buffer"
>
>
> I suspect your g:dbext_default_profile is blank, empty or undefined.
>
>
> David
Hi David - Yes, that works beautifully. Thank you! Stevan
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> However, I wonder if I have simply been misinterpreting the functionality. One helpful site that led me to this plugin in the first place left me with the impression that the user is prompted for the desired DB connection from the list of connections detailed in the vimrc when you first call dbext in a new buffer. That does not happen. If I run a query, table select, or whatever from dbext, it automatically runs that command using the default DB connection. I can, however, use any DB connection listed in the vimrc if I run \sbp. Upon further reflection, this is probably the way it is intended to work, and I very much apologize for having troubled you if this was simply operator error.
>
>
>
>
>
> You can have that desired behaviour, just depends on how you have setup your defaults.
>
>
> If you put this in your .vimrc:
> :let g:dbext_default_profile='@askb'
>
>
> You are saying, "@askb" = "Ask first time per buffer"
>
>
> I suspect your g:dbext_default_profile is blank, empty or undefined.
>
>
> David
Hi David - Yes, that works beautifully. Thank you! Stevan
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.