Thursday, December 13, 2018

Where to find recent stable Windows builds

Hi everyone,

I used to use the "Vim without Cream" binaries to get a recent build of Vim on Windows. Unfortunately these seem have stopped at 8.0.1616, so there are no builds of Vim 8.1.

I am nervous about using the latest overnight build (from vim-win32-installer or tuxproject.de) after trying a couple which were unusable).

Is there anywhere else to find a recent, stable(-ish) build of Vim 8.1?

Thanks,
Jonathan

--
--
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, December 12, 2018

Re: bufexists fails on bufname value '__Explorer__.1'

Le mercredi 12 décembre 2018 18:36:02 UTC+1, Ni Va a écrit :
> Hi,
>
> On a named buffer '__Explorer__.1', is that normal the function bufexists(bufname("%")) returns 0 ?
>
> Thank you
> NiVa
>
> echo bufname("%").' exists ? '. bufexists(bufname("%"))

Ok have to set buftype=nofile.

Sorry.

--
--
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.

bufexists fails on bufname value '__Explorer__.1'

Hi,

On a named buffer '__Explorer__.1', is that normal the function bufexists(bufname("%")) returns 0 ?

Thank you
NiVa

echo bufname("%").' exists ? '. bufexists(bufname("%"))

--
--
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, December 11, 2018

Re: new behavior of substitute command

On Monday, December 10, 2018 at 9:21:31 AM UTC+2, Christian Brabandt wrote:
> > I'm using MacVim 8.1, patches 1-560 and I notice a change in the
> > behavior of substitution command. Now it starts to search for text as
> > I type it in the command bar, as of the search command. This is good
> > but I lost the possibility to use the keys <C-R>-w to copy word under
> > cursor to be replaced.
> :set noincsearch

Am I missing something? I :set incsearch and still perfectly capable of using <C-r><C-w> while in the command line editing the substitute command (both for the search and for the replacement patterns). Here's a gif: https://i.imgur.com/E5YRwza.gif

(My Vim is a bit older, 8.1.450, but seems like it shouldn't matter: ftp://ftp.vim.org/pub/vim/patches/8.1/README)


--
AS

--
--
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, December 10, 2018

Re: :p & :P bugs?

On 2018-12-06 14:39, Christian Brabandt wrote:
> > Brought to my attention by this thread:
> >
> > https://www.reddit.com/r/vim/comments/a3e80i/is_vim_right_for_me/
> >
> > It seems to me that :p should always only print the line, even if
> > 'number' is set. If you want to print the line with its
> > line-number, you can either use ":p#" (:help ex-flags) or even
> > just ":#". But without storing 'nu' and deactivating it before
> > issuing and restoring the state of 'nu' after, there's no way to
> > get unnumbered results.
>
> I think this is demanded by Posix

Okay, I'm good with that as an explanation. Still think it's
annoying, but won't fight with POSIX :-)

-tim


--
--
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 to debug a vim plugin?

Peng Yu wrote:

> I am wondering how to debug a vim plugin (for example, the following
> one) in an efficient way.
>
> https://github.com/Clavelito/indent-sh.vim/blob/master/indent/sh.vim
>
> The main difficulty that I see is that a vim plugin is different from
> a typical program is that in a typical programming language one can
> easily isolate a piece of code and insert print statements. But in a
> vim plugin, since it causes some effects in the code shown in vim, I
> am not sure how a print statement can help much.
>
> Also, in a regular programming language, one can run a function with
> different parameters, then check its behavior. But a vim plugin is
> just a whole piece of code, it is not clear how to run a piece of code
> in an isolated environment to inspect its behavior.
>
> Does anybody have any tips on how to debugging vim plugins? Thanks.

Besides what's already said, if you just want a simple way to log some
text, you can use the mechanism for channels:

ch_logfile('SomeFileName', 'w')
ch_log('This happened')

Messages are written to a log, thus this also works for things like
autocomplete. It will include time stamps, which are often useful.

--
An easy way to determine if you have enough teamwork to be doomed is simply to
measure how long it takes from the time you decide to go to lunch together
until the time you actually eat.
(Scott Adams - The Dilbert principle)

/// 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.

Re: Abbreviations not saving in vim

On Monday, December 10, 2018 at 10:54:33 AM UTC+2, BPJ wrote:
> mån 10 dec. 2018 kl. 08:41 skrev revrari <revco...@gmail.com>:
>
>
> On Monday, December 10, 2018 at 9:36:34 AM UTC+2, Christian Brabandt wrote:
>
> > On So, 09 Dez 2018, revrari wrote:
>
> >
>
> > > Thanks. The corrections should go to the autocorrect.vim file.
>
> >
>
> > Not sure it is possible per configuration.
>
> >
>
> > Well, then you might have to throw a bit of Vimscript at it :)
>
> > Run your mapping, get the output of maparg() and write it to a file.
>
> >
>
> > Best,
>
> > Christian
>
> > --
>
> > Alles Geschmacksache sprach der Affe und biß in die Seife.
>
>
>
> The thing is that I can remove an abbreviation from this list (autocorrect.vim) when working in another file but I cannot add one to it.
>
>
> You should try the abolish plugin. It does what you want and more.
>
>
>
> https://github.com/tpope/vim-abolish
>
>
>
>
>
>
> --
>
> --
>
> 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+u...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Thanks. I was hoping to find a solution that did not require a plugin.

--
--
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.