Testing mappings that analyse the context

2020-06-03 Fir de Conversatie Luc Hermitte
) permits to have a behaviour that really matches what happens when we type the exact same keys? Or do we have no choices but to test more atomic sequences? -- Luc Hermitte -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below th

Re: [proposal] Project Information for vim

2019-02-22 Fir de Conversatie Luc Hermitte
bout editor-config: there is no neat way to specify values for vim variables or options if need be. With the main editorconfig plugin for vim, we cannot be sure a variable will be set before another one which could be tedious to introduce dependencies. -- Luc Hermitte -- -- You received thi

Re: Don't use function!

2018-12-08 Fir de Conversatie Luc Hermitte
practices. Typically, I'm often stuck with the version of vim shipped with CentOS/RedHat 7 distributions. As such I cannot always migrate my plugin code to use the latest improvements of Vim. Any way, this is a nice improvement. Thanks for it. I'll definitively use it, eventually. -- L

Re: RFC: VimL functions for managing signs

2018-11-20 Fir de Conversatie Luc Hermitte
s would come from errors in the qf window) If I was writing a UI for debugger, I would need more precise control to add and remove breakpoints -- here performances don't really matter [1] in https://github.com/LucHermitte/vim-compil-hints -- Luc Hermitte -- -- You received this message fr

Re: Test whether a glyph can be displayed

2018-06-15 Fir de Conversatie Luc Hermitte
lback based on screenchar() when the other solutions cannot be used. I guess I'll cache the results so the user will only have to do suffer from the check once. I guess I'll require her/him to explicitly update the glyph cache when the plugin is ran for the first time. Thanks again -- Luc Hermit

Test whether a glyph can be displayed

2018-06-13 Fir de Conversatie Luc Hermitte
:let warning_sign = FirstSupportedAmong("\u26a0", "\u26DB", "!!") -- Luc Hermitte -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www

Re: [vim/vim] `:unlet $FOOBAR` (#1116)

2017-10-30 Fir de Conversatie Luc Hermitte
gt; CC=clang make foo # prints: clangfoo.c -o foo $> CC= make foo # prints: foo.c -o foo # and can't compile anything $> unset CC # just to assert the situation $> make foo # prints: ccfoo.c -o foo This is the recurrent use case I run into

Re: Poor performances of glob('**/pat')

2017-04-14 Fir de Conversatie Luc Hermitte
> > I've run a simple test case in callgrind: > > > >> valgrind --tool=callgrind ./vim -U NONE -u NONE -c "echo > >> glob('~/.vim/**/tags')" -c q > > > > On my current machine, I see vim_regexec() and vim_regcomp() > > executed 14036 times, and taking respectively 41.72% + 15.67% of > >

Poor performances of glob('**/pat')

2017-04-14 Fir de Conversatie Luc Hermitte
which yields no result on v 8.0.502, un-patched, and on my patched v8.0.563 If I understand the documentation correctly, this looks like a bug. -- Luc Hermitte -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are re

Re: [vim/vim] Injecting `$VAR` in `job_start()` calls (#1158)

2016-10-12 Fir de Conversatie Luc Hermitte
> De: "'Jürgen Krämer' via vim_dev" <vim_dev@googlegroups.com> > Luc Hermitte (Vim Github Repository) schrieb am 12.10.2016 um 10:40: > > While I can't be sure, it looks like a limitation of |job_start|. > > If there a workaround that works, it'd be interes

Re: Write block of raw text

2016-08-29 Fir de Conversatie Luc Hermitte
similar to feed into :let or may be other commands. -- Luc Hermitte -- -- You received this message from the "vim_dev" 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 me

Write block of raw text

2016-08-26 Fir de Conversatie Luc Hermitte
course this could be achieved with :call setline(1, ['line1', 'line 2', 'Line 3']) :let expected = ['Line 1', 'Line 2', 'Line 3'] But this'll be extremely cumbersome to maintain. -- Luc Hermitte -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type yo

Re: Vim 8 pre-announcement

2016-08-18 Fir de Conversatie Luc Hermitte
> On 18 August 2016, Luc Hermitte <hermi...@free.fr> wrote: > > Another point on the qflist topic is bugging me. IIRC, when an > > error is detected, the type flag is set to 'E'. But how is error > > detection done? Is it when the message 'error:' is detected? >

Re: Vim 8 pre-announcement

2016-08-18 Fir de Conversatie Luc Hermitte
m/LucHermitte/vim-build-tools-wrapper/tree/job-compile -- Luc Hermitte -- -- You received this message from the "vim_dev" 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 m

Re: Invoking close_cb when writing to a buffer

2016-06-06 Fir de Conversatie Luc Hermitte
ckfix list? My mistake. I see we already have :caddexpr. Thank you again! -- Luc Hermitte -- -- You received this message from the "vim_dev" 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 ---

Re: Invoking close_cb when writing to a buffer

2016-06-06 Fir de Conversatie Luc Hermitte
order to extract all data relevant for the quickfix list/window and add that data to the quickfix list? We can try to decode a line according to manually, but I'm quite sure Vim already knows how to do it, and it'll be more efficient and more correct than us. Thank you -- Luc Hermitte -- -

Re: Invoking close_cb when writing to a buffer

2016-06-03 Fir de Conversatie Luc Hermitte
Hi Bram, > You wrote that when writing to a buffer close_cb isn't invoked. I > added a test for it and it appears to work just fine. Indeed. This is working fine now. > Any special circumstances when close_cb is not invoked? None. I've just updated vim code and recompiled vim, now it's

Re: RfC for background compilation with job_start

2016-05-17 Fir de Conversatie Luc Hermitte
e > of this. It would need an identifier for the quickfix list to > add to. May be. If it's fast enough to never get entered multiple times simultaneously, it'll be perfect. > > - Could we have a 'close_cb' callback that get notified when a pipe > > filling a buffer (or a fil

RfC for background compilation with job_start

2016-05-12 Fir de Conversatie Luc Hermitte
as another script isn't playing with setqflist/getqflist) - it won't need to be aware the pipe is closed - Could we have a 'close_cb' callback that get notified when a pipe filling a buffer (or a file, or a quickfix window) is closed ? (I don't know if this could be done) thanks, -- Luc Hermitte

Crash when the close_cb is a dict function

2016-05-10 Fir de Conversatie Luc Hermitte
) " let self.job = job_start(['tests/repeat-wait.sh', 2], " \ { 'out_io': 'file', 'out_name': self.buffer " \ , 'close_cb': function('self.conclude', self)} ) endfunction return comp.init(a:nb) endfunction >% -- Luc Hermitte -- --

Re: Runtime files

2016-02-10 Fir de Conversatie Luc Hermitte
ds I execute. https://github.com/kana/vim-vspec provides another framework for testing plugins. My biggest issue is related to feedkey() that I wasn't able to use through --remote-expr to trigger omni-completion. I had to find other way to test my snippets. Regards -- Luc Hermitte -- --

Odd result for sort([ '1', '5', '48', '25', '5', '28', '6'], 'n')

2015-12-03 Fir de Conversatie Luc Hermitte
Hello, I'm not sure whether sort() can be applied with 'n' parameter on lists of strings that encode numbers. Right now (v7.4-908) the result produced is: ['1', '5', '48', '25', '5', '28', '6'] which is really odd. Is this a vim bug, or an undefined behaviour? Regards, -- Luc Hermitte

Re: Odd result for sort([ '1', '5', '48', '25', '5', '28', '6'], 'n')

2015-12-03 Fir de Conversatie Luc Hermitte
Hi Jürgen, - Mail original - > > [...] > > Is this a vim bug, or an undefined behaviour? > > see the fifth paragraph of ":help sort()". Note that Strings are > explicitly mentioned "to be considered as being 0". Also read the > second to last paragraph which explains why the order of the

Re: words counting and select mode.

2015-11-13 Fir de Conversatie Luc Hermitte
> > Well in select mode, everything you enter will replace the selection. > So it works as expected I would say. And yet nothing is inserted in INSERT mode. That's why I was quite intrigued. Regards, -- Luc Hermitte -- -- You received this message from the "vim_dev" maillist.

Re: words counting and select mode.

2015-11-13 Fir de Conversatie Luc Hermitte
gt; > Could we have a countword() function that would avoid such dirty > > tricks? > > I'll look into this. Thanks. Regards, -- Luc Hermitte -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replyin

Re: Improved integration between Vim and its environment (full-screen, open URL, background execute())

2010-06-15 Fir de Conversatie Luc Hermitte
Hello, Tom Link wrote : Which executable do you intend to execute in a cross-plattform portable way? (c)make/(b)jam/aap, gcc, doxygen, ctags, latex, ... As far as I'm concerned, the need exists. I'd rather not require an external executable/DLL though. -- Luc Hermitte http://lh

Re: Vim Lib [Was: List Questions]

2009-02-07 Fir de Conversatie Luc Hermitte
- Ingo Karkat sw...@ingo-karkat.de a écrit : On 06-Feb-09 22:17, Luc Hermitte wrote: BTW, a good Unit Testing framework is most welcomed. There is already one, but it lacks quickfix integration, and a simple :command-like syntax. Luc, which unit testing framework are you talking

Re: Vim Lib [Was: List Questions]

2009-02-07 Fir de Conversatie Luc Hermitte
a similar purpose although it's still quite minimalist. I wasn't aware of your script. I'll give it a try. Thanks for the link, and the work. ^^ -- Luc Hermitte http://lh-vim.googlecode.com/ http://hermitte.free.fr/vim/ --~--~-~--~~~---~--~~ You received

Re: Vim Lib [Was: List Questions]

2009-02-06 Fir de Conversatie Luc Hermitte
for inspiration or just to be the first brick of a stable, flexible and viable 'plugin' system/foundation. It's based on personal experiments and from the work of Marc Weber and Luc Hermitte. Ah! You were already aware of our work. :) As far as I'm concerned, I'd be glad to contribute with my core

Re: reverse recursive .vimrc

2008-09-01 Fir de Conversatie Luc Hermitte
patching vim is the best course of action. -- Luc Hermitte http://lh-vim.googlecode.com/ http://hermitte.free.fr/ --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---