Re: Why vimscript instead of another language? A philosophical or a technical question?

2024-05-02 Thread Marc Chantreux
%V| \%V \%V inside Visual area |/zero-width| |/\%#| \%# \%# cursor position |/zero-width| |/\%'m| \%'m\%'mmark m position |/zero-width| |/\%v| \%23v \%23v in virtual column 23 |/zero-width| regards -- Marc Chantreux Pôle CESAR (Calcul et servi

Re: Why vimscript instead of another language? A philosophical or a technical question?

2024-04-30 Thread Marc Chantreux
for @s; # then save the deletations open U, ">", $ARGV; say U for @s; ' "$@" } _was_fzy_ui () { tac | fzy } I can access to the same features from zsh bindings. regards, -- Marc Chantreux Pôle CESA

Re: vim9script userdef

2022-12-10 Thread Marc Chantreux
hello, > let defdict[type] = g:tagbar_type_{type} is this ok for you? let type ="grep" exec $"let defdict[type] = g:gitgutter_{type}" regards marc -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying

Re: Print the first field of a table in one line separated by commas

2022-09-09 Thread Marc Chantreux
rst field, preceded by xx, and followed by yyy, > > separated by commas, as in: > > xx1001yyy, xx1002yyy, xx1003yyy, xx1004yyy I'll use :%!sed 's/ .*/yyy,/'|tr '\n' ' ' regards -- Marc Chantreux Pôle de Calcul et Services Avancés à la Recherche (CESAR) http://annuaire.unistra

Re: Json inline format

2022-05-07 Thread Marc Chantreux
> Thank you Paul, I don't want third part. you mean you want a pure viml solution? what's the point? regards, marc -- -- 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

Re: news about vim9?

2022-04-27 Thread Marc Chantreux
> I guess it's not clear that the repository has been archived. > I updated the README to make clear what the status is. I had no way to catch that as i don't use the web interface but the unclear part is "what happened to the ideas behind vim9" until i read that it's now a part of vim/vim which

Re: news about vim9?

2022-04-26 Thread Marc Chantreux
On Tue, Apr 26, 2022 at 06:34:38PM +0200, Matthias Erich Popp wrote: > Last Commit ist from 26. Jan. 2020 ??? > https://github.com/brammool/vim9/commits/master[1] By "here", Christian meant vim/vim, not brammool/vim9. regards -- -- You received this message from the "vim_use" maillist. Do not

Re: news about vim9?

2022-04-26 Thread Marc Chantreux
On Tue, Apr 26, 2022 at 06:05:32PM +0200, Christian Brabandt wrote: > Yes switch back. Vim9 development is ongoing and happens there. compilation on progress. thanks. marc -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are

news about vim9?

2022-04-26 Thread Marc Chantreux
hello people, I realized the vim I use for my daily use for months (maybe years) is the one from brammool/vim9 which is now archived. * are there news about this project? * is there a repo, somewhere, that looks like beta stage of vim9 (something we could help with feedbacks or/and plugin

Re: Sven Guckes passed away

2022-02-22 Thread Marc Chantreux
n instead of a knowledge, he had some ... pushy answers, for sure but i felt it was more against an attitude than a person. -- Marc Chantreux Direction du numérique de l'Université de Strasbourg Pôle de Calcul et Services Avancés à la Recherche (CESAR) http://annuaire.unistra.fr/p/20200 --

Re: Sven Guckes passed away

2022-02-22 Thread Marc Chantreux
his anger to share his knowledge. Those kind of person who showed us what a community should be. :s/ve/n, Requiescat in pace. marc -- Marc Chantreux Direction du numérique de l'Université de Strasbourg Pôle de Calcul et Services Avancés à la Recherche (CESAR) http://annuaire.unistra.fr/p/20

improve slides.vim: concealing nbsp?

2022-01-09 Thread Marc Chantreux
hello people, In slides.vim (an ftplugin to transform vim to a presentation system), I use nbsp to emphase things https://github.com/eiro/slides.vim/blob/master/syntax/slides.vim#L1 syn match emphasize "\v \zs[^ ]+\ze " Which works fine when I want to quote words (or parts of the

Re: Vim9 script feature-complete

2022-01-03 Thread Marc Chantreux
hello everyone and thanks to the vim contributors, Le Mon, Jan 03, 2022 at 11:04:32AM +, Bram Moolenaar a écrit : > > comments suggested to reverse the import syntax so that the imported > > script is named first and the imported entities next. A rationale for > > this is that it would help

Re: :so should take a range ?

2022-01-02 Thread Marc Chantreux
hello, > Builtin :source adds file into the scripts list (cf. :scriptnames) and > assigns script id (aka SID) which is essential for s: scope support. It > won't be easy to reuse this SID by "a ranged source". And bringing "an > incomplete feature" into the core could be too much confusing.

:so should take a range ?

2021-12-31 Thread Marc Chantreux
hello people, Years ago, i wrote a [range]Source so you can type some viml in your current buffer and run it. This is useful in many situations (for exemple cd to a directory refered in a log). https://github.com/eiro/rcfiles/blob/master/vim/vimfiles/plugin/source_range.vim I made a demo of

Re: equivalent of get() for a string ?

2021-06-24 Thread Marc Chantreux
hello Salman, > Shameless plug: my GetVar script ( > https://www.vim.org/scripts/script.php?script_id=353) does this. thanks for noticing but i can't add such a dependency as i'm trying to fix an existing package and would like to push my code upstream at some point. regards, marc -- -- You

equivalent of get() for a string ?

2021-06-24 Thread Marc Chantreux
hello people, I would like this if exists('g:purescript_update_path') if g:purescript_update_path call PurescriptUpdatePath() endif endif To be something like if get('g:purescript_update_path',v:false) call PurescriptUpdatePath() endif but

how to get an errorformat with full line %m

2021-03-30 Thread Marc Chantreux
hello people, my ftplugin/perl.vim comes with a 'fixed' (works better for me but i don't know if it can break something to other people). So first question: is it worth submitting a patch? version of the compiler/perl.vim from the standard distribution: set errorformat=

Re: writing documents in plain TeX, using vim

2020-08-31 Thread Marc Chantreux
hello, > to write documents in plain TeX (no LaTeX) with vim I am looking forward for > plugins and helpers to do so. vim comes with those files setting * syntax highlighting * format-comments * [d * matchit /usr/share/vim/vim81/syntax/plaintex.vim /usr/share/vim/vim81/ftplugin/plaintex.vim

Re: using a file as quickfix

2009-12-01 Thread Marc Chantreux
On Mon, Nov 30, 2009 at 08:29:59AM -0800, Ben Fritz wrote: To get Vim to understand the format of the error messages, you need to tell Vim what compiler generated the messages, or at least how to so :compiler pyunit :cfile % works fine! thanks a lot! -- You received this message from the

using a file as quickfix

2009-11-29 Thread Marc Chantreux
hello, Given a file ERR with the following content, i would like to use this file as quickfix error list. So i tried: vim ERR :cfile % :setf python well ... it doesn't work. can anyone help ? regards. marc ERR file: Traceback (most recent call last): File /usr/bin/yum, line 29, in

Re: from lines to dict keys

2009-11-11 Thread Marc Chantreux
hello Hari On Tue, Nov 10, 2009 at 10:11:46PM -0800, Hari Krishna Dara wrote: Since you seem to want a one liner, here is one: let t=eval('{'.join(map(split(system(echo foo; echo bar), \n ), '''.v:val.'': 1'), ',').'}') I want my code to be readable then short. it seems that viml isn't

Re: from lines to dict keys

2009-11-10 Thread Marc Chantreux
hello all many thanks for you tries and replies. all of them where very instructive. i'll stick on the for-loop solution as it seems that functionnal solutions are harder to read/debug in viml. regards marc --~--~-~--~~~---~--~~ You received this message from

from lines to dict keys

2009-11-09 Thread Marc Chantreux
hello guys, i want each lines of the output of a shell command to become a key of a dict. I wote this code: let t = {} for k in split( system(echo foo; echo bar ), '\n' ) let t[k] = 1 endfor but i don't like it: as the loop is here to populate the dictionnary, i would like to use

Re: from lines to dict keys

2009-11-09 Thread Marc Chantreux
hello Andy and thanks for reply. On Mon, Nov 09, 2009 at 06:33:24PM +0100, Andy Wokula wrote: It is possible, the second argument to map() must be a string: :h map() :let t = map([foo, bar], '{v:val : 1}') i tried this solution but the result is [{'foo': 1}, {'bar': 1}] when i

Re: Need help to design Vim T-shirts

2009-09-09 Thread Marc Chantreux
hello On Wed, Sep 09, 2009 at 10:39:56AM +1000, John Beckett wrote: Regarding a more typical logo+slogan design, I came up with stuff like Vimpressive, Vi! Vi Vi! The Editor of the Beast![1] or Vini, Vidi, Vici[2], but I'm sure you vim hackers can do better. funny ... i'll give some tries:

Re: Using vim as interface to Wikipedia

2009-05-22 Thread Marc Chantreux
On Fri, May 22, 2009 at 11:49:34AM +0400, Andrey Zhidenkov wrote: Hello, all. hello, i didn't tested it but i would try http://wikipediafs.sourceforge.net/ in your case. regards, marc --~--~-~--~~~---~--~~ You received this message from the vim_use maillist.

Re: deal with gdb, breakpoints, displays ...

2009-04-08 Thread Marc Chantreux
hello Charles, On Tue, Apr 07, 2009 at 12:15:12PM -0400, Charles Campbell wrote: Charles Campbell wrote: clewn and pyclewn: http://pyclewn.wiki.sourceforge.net/ gdbmgr: http://mysite.verizon.net/astronaut/vim/index.html#GDBMGR i downloaded it both and will test it asap. See the table

deal with gdb, breakpoints, displays ...

2009-04-07 Thread Marc Chantreux
hello, it seems there are some projects to pilot GDB interactively with vim but nothing official. Is one of this project usable (more usable than others) or is it still a dream? regards mc --~--~-~--~~~---~--~~ You received this message from the vim_use

email address completion

2009-04-06 Thread Marc Chantreux
hello world, I want to complete email adresses from my mutt aliases file, the simplest way i found is: set dict+~/.mutt/aliases isk+=@ but! ... if i do this, ^x^k complete only the local part of the address and ignore what's after @. I imgine that's because isk isn't used. Any way to fix

Re: email address completion

2009-04-06 Thread Marc Chantreux
hello Luc, On Mon, Apr 06, 2009 at 11:27:16AM +0200, Luc Hermitte wrote: The last published version seems to be there: http://hermitte.free.fr/vim/ressources/lh-mail.tar.gz thanks but i prefer to keep my configuration KISS (even if it doesn't work perfectly) regards mc

my NewBufferAsMenu() don't match line

2009-02-12 Thread Marc Chantreux
hello world, This is my attempt to add neat menus in vim using buffers. It can be usefull if you have a script that can save some options in a file. the idea is: - call NewBufferAsMenu('Foo') opens a new buffer with some content (r!ls is just for test). Foo will be executed when the space

Re: my NewBufferAsMenu() don't match line

2009-02-12 Thread Marc Chantreux
On Thu, Feb 12, 2009 at 06:37:50PM +0200, Agathoklis D. Hatzimanikas wrote: function! Foo() echo 'find '.line('').', add'.getline(line('')) let g:boom=getline(line('')) bd! endfunc I have nothing to say about if there is another way to do it, but if you want to make your