Thursday, April 28, 2022

Re: syntax for "map key test?'cmd1':'cmd2'|:cmd3|:cmd4"

Got it to work.
Thank you all!

On Wednesday, April 27, 2022 at 1:39:23 AM UTC-7 jottkaerr@googlemail.com wrote:
Hi,

Christian Brabandt schrieb am 27.04.2022 um 10:02:
>
> On Di, 26 Apr 2022, dado wrote:
>
>> I have the following (pseudo code) mapping working:
>> nmap <expr> key some-expr ?
>> \ 'cmd1<Bar>:cmd3<CR><Bar>:cmd4<CR>' :
>> \ 'cmd2<Bar>:cmd3<CR><Bar>:cmd4<CR>'
>>
>> As you can see the conditional selects between cmd1 and cmd2, but both
>> execute cmd3 and cmd4.
>> I'd like to move cmd3 and cmd4 outside of the conditional as in
>> nmap <expr> key some-expr?'cmd1':'cmd2'<Bar>:cmd3<CR><Bar>:cmd4<CR>
>> The problem is I get cmd1 or cmd2 to execute, but never cmd3 or cmd4.
>> I know I could move this to a function but I'd like to understand the
>> syntax.
>
> Try something like the following:
> nmap <expr> (key some-expr ? 'cmd1<Bar>' : 'cmd2<Bar>') .. ':cmd3<CR><Bar>:cmd4<CR>'
>
> Note sure about all the `<Bar>`s and `<CR>`s :)

:nmap <expr> <F8> ( &list ? ':echomsg 1<Bar>' : ':echomsg 2<Bar>' ) .. 'echomsg 3<Bar>echomsg 4<CR>'

works. If 'list' is set, pressing <F8> will output

1
3
4

If 'list' is not set, pressing <F8> will output

2
3
4

Note that there is no need for a colon after <Bar> and no need for <CR> before <Bar>.

Regards,

--
~
~
~
:wq

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/acb1f1de-9966-4f2d-9aa4-47ab59db002bn%40googlegroups.com.

Wednesday, April 27, 2022

Re: news about vim9?

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

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 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YmkLaszMph49Mrmy%40prometheus.u-strasbg.fr.

Re: syntax for "map key test?'cmd1':'cmd2'|:cmd3|:cmd4"

Hi,

Christian Brabandt schrieb am 27.04.2022 um 10:02:
>
> On Di, 26 Apr 2022, dado wrote:
>
>> I have the following (pseudo code) mapping working:
>> nmap <expr> key some-expr ?
>> \ 'cmd1<Bar>:cmd3<CR><Bar>:cmd4<CR>' :
>> \ 'cmd2<Bar>:cmd3<CR><Bar>:cmd4<CR>'
>>
>> As you can see the conditional selects between cmd1 and cmd2, but both
>> execute cmd3 and cmd4.
>> I'd like to move cmd3 and cmd4 outside of the conditional as in
>> nmap <expr> key some-expr?'cmd1':'cmd2'<Bar>:cmd3<CR><Bar>:cmd4<CR>
>> The problem is I get cmd1 or cmd2 to execute, but never cmd3 or cmd4.
>> I know I could move this to a function but I'd like to understand the
>> syntax.
>
> Try something like the following:
> nmap <expr> (key some-expr ? 'cmd1<Bar>' : 'cmd2<Bar>') .. ':cmd3<CR><Bar>:cmd4<CR>'
>
> Note sure about all the `<Bar>`s and `<CR>`s :)

:nmap <expr> <F8> ( &list ? ':echomsg 1<Bar>' : ':echomsg 2<Bar>' ) .. 'echomsg 3<Bar>echomsg 4<CR>'

works. If 'list' is set, pressing <F8> will output

1
3
4

If 'list' is not set, pressing <F8> will output

2
3
4

Note that there is no need for a colon after <Bar> and no need for <CR> before <Bar>.

Regards,

--
~
~
~
:wq

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4a769ba4-d778-f397-f606-dad6e9473599%40googlemail.com.

Re: syntax for "map key test?'cmd1':'cmd2'|:cmd3|:cmd4"

On Di, 26 Apr 2022, dado wrote:

> I have the following (pseudo code) mapping working:
> nmap <expr> key some-expr ?
> \ 'cmd1<Bar>:cmd3<CR><Bar>:cmd4<CR>' :
> \ 'cmd2<Bar>:cmd3<CR><Bar>:cmd4<CR>'
>
> As you can see the conditional selects between cmd1 and cmd2, but both
> execute cmd3 and cmd4.
> I'd like to move cmd3 and cmd4 outside of the conditional as in
> nmap <expr> key some-expr?'cmd1':'cmd2'<Bar>:cmd3<CR><Bar>:cmd4<CR>
> The problem is I get cmd1 or cmd2 to execute, but never cmd3 or cmd4.
> I know I could move this to a function but I'd like to understand the
> syntax.

Try something like the following:
nmap <expr> (key some-expr ? 'cmd1<Bar>' : 'cmd2<Bar>') .. ':cmd3<CR><Bar>:cmd4<CR>'

Note sure about all the `<Bar>`s and `<CR>`s :)


Best,
Christian
--
Der raffinierteste Druck ist manchmal der Händedruck.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220427080210.GC3822443%40256bit.org.

Tuesday, April 26, 2022

syntax for "map key test?'cmd1':'cmd2'|:cmd3|:cmd4"

I have the following (pseudo code) mapping working:
nmap <expr> key some-expr ?
  \ 'cmd1<Bar>:cmd3<CR><Bar>:cmd4<CR>' :
  \ 'cmd2<Bar>:cmd3<CR><Bar>:cmd4<CR>'

As you can see the conditional selects between cmd1 and cmd2,  but both execute cmd3 and cmd4.
I'd like to move cmd3 and cmd4 outside of the conditional as in
nmap <expr> key some-expr?'cmd1':'cmd2'<Bar>:cmd3<CR><Bar>:cmd4<CR>
The problem is I get cmd1 or cmd2 to execute, but never cmd3 or cmd4.
I know I could move this to a function but I'd like to understand the syntax.

Thank you

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/efb87320-014d-432f-afc6-12e530f1decbn%40googlegroups.com.

Re: news about vim9?

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

I guess it's not clear that the repository has been archived.
I updated the README to make clear what the status is.

--
hundred-and-one symptoms of being an internet addict:
62. If your doorbell rings, you think that new mail has arrived. And then
you're disappointed that it's only someone at the door.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220426203758.E15801C04EA%40moolenaar.net.

Re: news about vim9?

Hi,

On Tue, Apr 26, 2022 at 9:39 AM Matthias Erich Popp <oquo8ugh@gmx.de> wrote:
>
> Last Commit ist from 26. Jan. 2020 ???
>

The Vim9 development happens in the main branch
(https://github.com/vim/vim) now.
You can use any of the recent Vim builds. A lot of Vim9 related
changes have been
made in the last two years. Most of the OS distributions (Linux, MacOS) now ship
with a recent version of Vim with the Vim9 support.

- Yegappan

> https://github.com/brammool/vim9/commits/master
>
>
> Am Dienstag, 26. April 2022, 18:05:32 CEST schrieb Christian Brabandt:
>
> > On Di, 26 Apr 2022, Marc Chantreux wrote:
>
> > > 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 rewrite).
> > >
> > > * or should I switch back to the vim/vim repo?
>
> > Yes switch back. Vim9 development is ongoing and happens there.
>

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7mbj%2BJp92%2BzuLzzjT4U2-Ue1iF96HOf%3DuGwtsh-6y%2BfYQ%40mail.gmail.com.

Re: news about vim9?

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 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/Ymgj00PuL0mkH7gQ%40prometheus.u-strasbg.fr.

Re: news about vim9?

Last Commit ist from 26. Jan. 2020 ???

https://github.com/brammool/vim9/commits/master


Am Dienstag, 26. April 2022, 18:05:32 CEST schrieb Christian Brabandt:

> On Di, 26 Apr 2022, Marc Chantreux wrote:

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

> >

> > * or should I switch back to the vim/vim repo?

>

> Yes switch back. Vim9 development is ongoing and happens there.

>

> Best,

> Christian



Re: news about vim9?

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 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YmgZTXv//Z5cU2JV%40prometheus.u-strasbg.fr.

Re: news about vim9?

On Di, 26 Apr 2022, Marc Chantreux wrote:

> 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 rewrite).
> * or should I switch back to the vim/vim repo?

Yes switch back. Vim9 development is ongoing and happens there.

Best,
Christian
--
Milch bleibt wesentlich länger frisch, wenn man sie in der Kuh beläßt.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220426160532.GB3822443%40256bit.org.

news about vim9?

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 rewrite).
* or should I switch back to the vim/vim repo?

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 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YmgYEyxT4a2fSpRC%40prometheus.u-strasbg.fr.

Monday, April 25, 2022

Re: indent/tf.vim update to include b:undo_indent

Christian J. Robinson wrote:

> I've attached an update of the indent/tf.vim file so it supports
> b:undo_indent.

Thanks, I'll include it.

--
Master: Boy, there is nothing more for you to learn
Student: I didn't know that!

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220425183016.BE9921C439C%40moolenaar.net.

indent/tf.vim update to include b:undo_indent

I've attached an update of the indent/tf.vim file so it supports b:undo_indent.

--
Christian J. Robinson <heptite@gmail.com>

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAK14FZJVkjwcNizuKLSsUZUHT-g4NRYJe0g1%3DLoNqvbAbP0SKQ%40mail.gmail.com.

Re: %f item in getqflist()

On 2022-04-25, Lifepillar <lifepillar@lifepillar.me> wrote:
> I am looking into parsing a list of strings with an errorformat to
> create a quicklist or location list out of it. Currently, I am doing it
> as follows:
>
> let efm = "%f:%l:%m"
> let what = getqflist({"lines": ["foo:3:bar"], "efm": efm})
> call setloclist(0, what.items)
> echo what.items[0]
>
> This sets the quickfix list as expected (is there a better way?). But
> when I look at `what.items[0]`, I cannot find an item corresponding to
> %f (`foo` in the example). Yet setloclist() sets it. Where is that
> information stored?

Ah, I see: you get the filename from the buffer's number. A new buffer
is created for `foo` is one does not already exist. And when no filename
is parsed from the errorformat, bufnr is 0. Neat!

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/t45qkt%24sb3%241%40ciao.gmane.io.

%f item in getqflist()

I am looking into parsing a list of strings with an errorformat to
create a quicklist or location list out of it. Currently, I am doing it
as follows:

let efm = "%f:%l:%m"
let what = getqflist({"lines": ["foo:3:bar"], "efm": efm})
call setloclist(0, what.items)
echo what.items[0]

This sets the quickfix list as expected (is there a better way?). But
when I look at `what.items[0]`, I cannot find an item corresponding to
%f (`foo` in the example). Yet setloclist() sets it. Where is that
information stored?

Thanks,
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/t45ocl%24del%241%40ciao.gmane.io.

Saturday, April 23, 2022

Re: alt gr chars bad displayed on search or command mode !

Even in insert mode, inserting backslash or others alt gr chars has regression.

Capture.PNG
Le samedi 23 avril 2022 à 12:31:16 UTC+2, Ni Va a écrit :
Hi,

Since version 8.2 patch above 4804, it seems that when I type 
/\   it displays  /^\<space>

It is the same in exe mode :foobar and for all alt gr chars.

Thank you
NV

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f2705670-73a3-4691-bdf1-948ac47bf6d5n%40googlegroups.com.

alt gr chars bad displayed on search or command mode !

Hi,

Since version 8.2 patch above 4804, it seems that when I type 
/\   it displays  /^\<space>

It is the same in exe mode :foobar and for all alt gr chars.

Thank you
NV

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7d2b0fda-1793-4116-bc59-826bdb1fee57n%40googlegroups.com.

Tuesday, April 19, 2022

Re: E117: Unknown function: netrw#Explore

On Mo, 18 Apr 2022, Guy Ka wrote:

> After migrating my WSL from Ubuntu 18.04 to Ubuntu 20.04 I started getting the error:
> E117: Unknown function: netrw#Explore
> When I hit :E to launch the file Explorer on Gvim.
> I have disabled all the plugins but I still get the error message.
> I have no idea where to start debugging.

It looks like you are missing the netrw plugin.

Can you verify, netrw is there at:
/usr/share/vim/vim81/plugin/netrwPlugin.vim
and
/usr/share/vim/vim81/autoload/netrw.vim



Mit freundlichen Grüßen
Christian
--
Das beste Mittel, um getäuscht zu werden, ist, sich für schlauer zu
halten als die anderen.
-- François Duc de La Rochefoucauld

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220419105328.GO1230564%40256bit.org.

Monday, April 18, 2022

E117: Unknown function: netrw#Explore

After migrating my WSL from Ubuntu 18.04 to Ubuntu 20.04 I started getting the error:
E117: Unknown function: netrw#Explore
When I hit :E to launch the file Explorer on Gvim.
I have disabled all the plugins but I still get the error message.
I have no idea where to start debugging.

version 8.1.3741
$gvim --version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
Included patches: 1-2269, 3612, 3625, 3669, 3741
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               -farsi             -mouse_sysmouse    -tag_any_white
+arabic            +file_in_path      +mouse_urxvt       +tcl
+autocmd           +find_in_path      +mouse_xterm       +termguicolors
+autochdir         +float             +multi_byte        +terminal
-autoservername    +folding           +multi_lang        +terminfo
+balloon_eval      -footer            -mzscheme          +termresponse
+balloon_eval_term +fork()            +netbeans_intg     +textobjects
+browse            +gettext           +num64             +textprop
++builtin_terms    -hangul_input      +packages          +timers
+byte_offset       +iconv             +path_extra        +title
+channel           +insert_expand     +perl              +toolbar
+cindent           +job               +persistent_undo   +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           +python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          -ruby              +wildmenu
+cursorbind        +lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con_gui    +mksession         +smartindent       +X11
+diff              +modify_fname      +sound             -xfontset
+digraphs          +mouse             +spell             +xim
+dnd               +mouseshape        +startuptime       +xpm
-ebcdic            +mouse_dec         +statusline        +xsmp_interact
+emacs_tags        +mouse_gpm         -sun_workshop      +xterm_clipboard
+eval              -mouse_jsbterm     +syntax            -xterm_save
+ex_extra          +mouse_netterm     +tag_binary
+extra_search      +mouse_sgr         -tag_old_static
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-9EpYYi/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lcanberra -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.30/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lm



Here is the content of my .vimrc file
=======================================================================
set directory=%TMP%,~/.tmp
set backupdir=%TMP%,~/.tmp

 set rtp+=~/.vim/bundle/Vundle.vim
 call vundle#begin()
 "Let Vundle manage Vundle
 "required:  all the plugins should be located in ~/.vim/bundle
 Plugin 'Vundle/Vundle.vim'
 Plugin 'vim-scripts/Align.git'
 Plugin 'vim-scripts/The-NERD-tree.git'
 Plugin 'vim-scripts/surround.git'
 "Plugin 'vim-scripts/snipMate.git'
 Plugin 'vim-scripts/taglist.vim.git'
 Plugin 'vim-scripts/pyte.git'
 Plugin 'vim-scripts/asciidoc.vim.git'
 Plugin 'vim-scripts/The-NERD-Commenter.git'
 Plugin 'vim-scripts/VHDL-indent-93-syntax.git'
 Plugin 'vim-scripts/tagbar'
 Plugin 'vim-scripts/FastFold'
 Plugin 'vim-scripts/verilog_systemverilog.vim.git'
 "Plugin 'vim-scripts/fugitive.vim.git'
 Plugin 'vim-scripts/python.vim.git'
 Plugin 'vim-scripts/ctrlp.vim.git'
 Plugin 'vim-scripts/Solarized'
 " ==>Plugin 'vim-scripts/Distinguished.git'
 Plugin 'vim-scripts/jellybeans.vim.git'
 Plugin 'vim-scripts/VimOutliner.git'
 Plugin 'vim-scripts/VimOrganizer.git'
 Plugin 'vim-scripts/Auto-Pairs.git'
 Plugin 'vim-scripts/calendar.vim--Matsumoto.git'
 Plugin 'vim-scripts/L9'
 Plugin 'vim-scripts/fuzzyfinder'
 Plugin 'vim-scripts/vim-snippets'
 Plugin 'vim-scripts/vim-obsession'
 Plugin 'vim-scripts/ultisnips'
 Plugin 'vim-scripts/obsession'
 "Plugin 'vim-scripts/Vimliberty'
 Plugin 'bling/vim-airline'
 call vundle

Saturday, April 9, 2022

Re: Embed langage print when sourcing vim9script


Thank you Bram!

Maybe it's because I forgot to say I have an autocommand. 
I am surprised to see out of print('LuaXmlParser') when I source this vim9script.

Thank you again Bram.
NV

# Syntax / Filetype - Helper {{{
def g:SwitchFtHelper(arg: string): void

  if (arg == 'leave')
    au!
  endif

  if ( !exists('g:cachebufnr') )
    g:cachebufnr = bufnr('%')
    g:cacheft = &ft
    StampedEcho( 'Cached filetype is ' .. g:cacheft .. ' and bufnr is ' .. g:cachebufnr )

    def Scan(timerID: any): number

      # g:embedRegions = {
      # [beg, end]  # linenos of embed langage regions' begin, end
      # ..
      # }
      g:begs = []
      g:ends = []
      exe "g/\\w\\+\\s\\+<<\\s\\+EOF/call add(g:begs, line('.'))"
      exe "g/^EOF/call add(g:ends, line('.'))"

      var foo = []

      var idx: number = 0
      while idx < len(g:begs)
        call add(foo, [g:begs[idx], g:ends[idx]])
        idx = idx + 1
      endwhile
      # StampedEcho( 'Scan begin EOF: ' .. string(g:foo))
      return 1
    enddef

    timer_start(1200, Scan, {'repeat': 20} )

  endif

  lua << EOF
EOF
  lua << EOF

print('LuaXmlParser')

EOF

enddef
augroup FOOBAR
  au! CursorHold  *.vim ++nested call g:SwitchFtHelper('')
  # au! BufLeave *.vim aug! FOOB
augroup END




Le samedi 9 avril 2022 à 12:01:47 UTC+2, Bram Moolenaar a écrit :

> Is it normal to get print of embed langage when I source vim9script ?
>
> Thank you
> NV
>
> def g:SwitchFtHelper(): void # Syntax / Filetype - Helper {{{
>
> if ( !exists('g:cachebufnr') )
> g:cachebufnr = bufnr('%')
> g:cacheft = &ft
> StampedEcho( 'Cached filetype is ' .. g:cacheft .. ' and bufnr is ' ..
> g:cachebufnr )
> endif
>
> lua << EOF
>
> print('foo')
>
> EOF
>
> enddef

When I source this I see nothing. Only when calling g:SwitchFtHelper()
(commenting out what doesn't work) I see "foo" printed. Looks fine to
me.

--
A M00se once bit my sister ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7750feed-70a9-4d38-9de6-3e3ffd1dd5e5n%40googlegroups.com.

Re: global command

Hum. Thank you Stan ! 😃 

Le sam. 9 avr. 2022 à 11:25, Stan Brown <the_stan_brown@fastmail.fm> a écrit :
On 2022-04-09 01:27, Ni Va wrote:
> How to not moving cursor when executing global command ?
>
> g/^EOF/call add(g:ends, line('.'))

I don't know of any way within the g command. However, what I do after a
global command is move the cursor back to where it was before the
command: either '' or ``

See <:help ''> and <:help restore-position>.

--
Stan Brown
Tehachapi, CA, USA
https://BrownMath.com

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/-iZXDs5DWCw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8a08f47d-686d-0476-bc08-2bec25f80a76%40fastmail.fm.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOKxv4ESoTz%3DoYfoSAzoDkyi5N2t5uAJ5u36ToRmqhLveoQS6Q%40mail.gmail.com.

Re: Embed langage print when sourcing vim9script

> Is it normal to get print of embed langage when I source vim9script ?
>
> Thank you
> NV
>
> def g:SwitchFtHelper(): void # Syntax / Filetype - Helper {{{
>
> if ( !exists('g:cachebufnr') )
> g:cachebufnr = bufnr('%')
> g:cacheft = &ft
> StampedEcho( 'Cached filetype is ' .. g:cacheft .. ' and bufnr is ' ..
> g:cachebufnr )
> endif
>
> lua << EOF
>
> print('foo')
>
> EOF
>
> enddef

When I source this I see nothing. Only when calling g:SwitchFtHelper()
(commenting out what doesn't work) I see "foo" printed. Looks fine to
me.

--
A M00se once bit my sister ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220409100139.8A79A1C0917%40moolenaar.net.

Re: global command

On 2022-04-09 01:27, Ni Va wrote:
> How to not moving cursor when executing global command ?
>
> g/^EOF/call add(g:ends, line('.'))

I don't know of any way within the g command. However, what I do after a
global command is move the cursor back to where it was before the
command: either '' or ``

See <:help ''> and <:help restore-position>.

--
Stan Brown
Tehachapi, CA, USA
https://BrownMath.com

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8a08f47d-686d-0476-bc08-2bec25f80a76%40fastmail.fm.

global command

Hi,

How to not moving cursor when executing global command ?

g/^EOF/call add(g:ends, line('.'))

Thank you

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e3a1f097-7eec-4246-9bf9-95458e8be9e4n%40googlegroups.com.

Friday, April 8, 2022

Embed langage print when sourcing vim9script

Hi,

Is it normal to get print of embed langage when I source vim9script ?

Thank you
NV

def g:SwitchFtHelper(): void # Syntax / Filetype - Helper {{{

  if ( !exists('g:cachebufnr') )
    g:cachebufnr = bufnr('%')
    g:cacheft = &ft
    StampedEcho( 'Cached filetype is ' .. g:cacheft .. ' and bufnr is ' .. g:cachebufnr )
  endif

  lua << EOF

print('foo')

EOF

enddef   

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/76d0f739-9dfd-482b-b532-4f9f443603ecn%40googlegroups.com.

searching for highlight color of vimLuaRegion

Hi,

Got a vim9script as this and searching for embeded lua region highlight color ?

def g:foobar(): void
lua << EOF

print('Lua Code')
EOF

Thank you
NV


--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/659fa60a-169a-4286-9ace-63d88b9c9a85n%40googlegroups.com.

Tuesday, April 5, 2022

Re: changes to the hg mirror

Doug Kearns wrote:

> > I found one on https://book.mercurial-scm.org/. Not sure if it's the
> > same or the best, but it looks useful.
> >
>
> https://www.mercurial-scm.org/guide is the same page and includes a link to
> the book.

Ah, that one works with https://

--
Yesterday, all my deadlines seemed so far away
now it looks as though it's freeze in four days
oh I believe in cvs..
[ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220405140946.471731C0561%40moolenaar.net.

Re: changes to the hg mirror

On Tue, 5 Apr 2022 at 22:32, Bram Moolenaar <Bram@moolenaar.net> wrote:

<snip>

I found one on https://book.mercurial-scm.org/.  Not sure if it's the
same or the best, but it looks useful.

https://www.mercurial-scm.org/guide is the same page and includes a link to the book.

Regards,
Doug

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJ1uvoB7CNdhQ_WOWrHQJVSVQsiw3PiP%3DC5%2BL2C1XV8GDYBUfQ%40mail.gmail.com.

Re: changes to the hg mirror

Doug Kearns wrote:

> On Tue, 5 Apr 2022 at 21:32, Christian Brabandt <cblists@256bit.org> wrote:
>
> <snip>
>
>
> > Oh and it looks like the Mercurial guide
> > https://mercurial.selenic.com/guide/ vanished, so please also remove the
> > link to that guide.
> >
>
> The guide is still there at https://mercurial.selenic.com/guide. Drop the
> trailing forward slash.

Hmm, it doesn't support https://. That indicates it hasn't been
maintained.

I found https://book.mercurial-scm.org/ works.

--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220405123205.50D8D1C05DA%40moolenaar.net.

Re: changes to the hg mirror

Christian wrote:

> is anybody actively using the mercurial mirror:
>
> http://hg.256bit.org/vim
>
> Because I'd like to get rid of the http version and start only serving
> on https. The https:// version should have been available right from the
> start, so if you do not or cannot change this, please let me know.
>
> @Bram:
> can you please change the http:// to https:// on
> https://www.vim.org/mercurial.php

Done.

> Oh and it looks like the Mercurial guide
> https://mercurial.selenic.com/guide/ vanished, so please also remove the
> link to that guide.

I found one on https://book.mercurial-scm.org/. Not sure if it's the
same or the best, but it looks useful.

--
Why don't cannibals eat clowns?
Because they taste funny.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220405123205.4C5831C0561%40moolenaar.net.

Re: changes to the hg mirror

On Tue, 5 Apr 2022 at 21:32, Christian Brabandt <cblists@256bit.org> wrote:

<snip>
 
Oh and it looks like the Mercurial guide
https://mercurial.selenic.com/guide/ vanished, so please also remove the
link to that guide.

The guide is still there at https://mercurial.selenic.com/guide.  Drop the trailing forward slash.

Regards,
Doug

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJ1uvoDYpoM6JfFkOV1kfeJu0dP3EW8Dpymxx2vopZjjUm%2B9xg%40mail.gmail.com.

changes to the hg mirror

Hi,
is anybody actively using the mercurial mirror:

http://hg.256bit.org/vim

Because I'd like to get rid of the http version and start only serving
on https. The https:// version should have been available right from the
start, so if you do not or cannot change this, please let me know.

@Bram:
can you please change the http:// to https:// on
https://www.vim.org/mercurial.php

Oh and it looks like the Mercurial guide
https://mercurial.selenic.com/guide/ vanished, so please also remove the
link to that guide.

Thanks,
Chris
--
Das Reh springt kurz, das Reh springt es weit.
Wieso auch nicht, es hat ja Zeit.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220405113234.GG815758%40256bit.org.

Sunday, April 3, 2022

Re: sumup some noremap exe command

Hi,

Ni Va schrieb am 02.04.2022 um 07:19:
> Is there a way to reduce, simplify and sumpup *those kind of* noremap *command?*
>
> Avoiding *:exe *(due to concatenate luafile + path)
> nnoremap lua  :*exe* 'luafile ' .. expand('%:p')<CR>
>
> Avoiding *double :exe ... <CR>* command ?
> nnoremap lua  *:exe* 'cd ' .. expand('%:p:h')*<CR>  :exe* 'luafile ' .. expand('%:p')*<CR>*
>
you should be able to use %:p directly in an ex command, where a file name can be used (see :help :_%).

So these two commands can be written as

  :nnoremap lua luafile %:p<cr>

and

  :nnoremap lua cd %:p:h<bar>luafile %:p<cr>

Regards,
Jürgen

--
~
~
~
:wq

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b1c280c9-a9b8-4d1c-43eb-70dd0646ed33%40googlemail.com.

Friday, April 1, 2022

loosing context and fails on second luafile luatemplate

Hi,

According to luafile help I tried to execute

luafile example3.lua from https://github.com/manoelcampos/xml2lua

It succeded on first try 
"~\source\xml2lua-master\example3.lua" [unix] 37L, 1054B
xml2lua v1.5-2


Manual print
  1 table: 011B1040
  2 table: 011B15B8

Recursive print
  tag
    tag1
      1
      2
xml2lua v1.5-2



but fails on second one as if it was loosing context.
Error detected while processing function LuaFile:
line    3:
...sers\foo.bar\source\xml2lua-master\example3.lua:25: attempt to get length of a
nil value (field 'tag1')


Even I think it's not vim context pb but luafile context pb, 
Help would be gratefull.Thanks
NV

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/040448d1-2e47-46b1-8781-a8d43e4d267en%40googlegroups.com.

sumup some noremap exe command

Hi All,

Is there a way to reduce, simplify and sumpup those kind of noremap command?

Avoiding :exe (due to concatenate luafile + path)
nnoremap lua  :exe 'luafile ' .. expand('%:p')<CR>

Avoiding double :exe ... <CR> command ?
nnoremap lua  :exe 'cd ' .. expand('%:p:h')<CR>  :exe 'luafile ' .. expand('%:p')<CR>

Thank you
NV

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b30a861d-2b2f-4173-a4c7-a0c61f3f5058n%40googlegroups.com.

Sodium xchacha20 cryptmethod vim sample

Hi, 

I have built vim 8.2 4663 x86 on win10 with +sodium/dyn and just want to apply it as crypt méthod, 
Is there a sample script ? 

I have libsodium-23.dll in & rtp. 

Thank you. 
NV

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/904b8dde-3c6b-4751-92c9-6a91ba3e0d2cn%40googlegroups.com.

Re: XSetWMNormalHints

Yes, the direct evidence is that you get that snap-snap coarse behavior when you drag a window edge.
Additionally, there can be text feedback from the WM, so that if you want to confine yourself to a certain width
and/or height to write in, you can just look at the numbers during resize.  I even have key mappings to adjust a
window width to say "80" or "100", which will be by-character if this all works.  These things work on xterm still,
so that seems like a good reference.

If this wasn't a result of XSetWMNormalHints all along, then I wonder what other mechanism might have been
in play when it previously worked.  I didn't find anything in the WM docs other than ICCCM.
I would expect there to be some code for this in VIM if it works in Win32.

Anyhow, I don't think I've used XSetWMNormalHints, but I would expect to call it after XSetWMProperties
on the newly created window.  To speculate, I'd imagine that a WM might just cache the values when the
window is mapped to screen.

For xterm, doing maximize leaves a gap on the right and bottom.  I'm fine with that, but then, I generally never
use maximize for anything, probably since I've come to expect odd behavior.  Checking the Windows 10 VM, where
I can easily change screen size using the VM window, VIM seems to switch to pixel-incremental mode when full screen,
and then back to char-incremental when unmaximized.

As far as code, I hesitate to suggest adding something new if there was something else already in there
potentially trying to do the same thing.

From a user point of view, a simple opt-in 'set' variable would make me happy.

On Friday, April 1, 2022 at 9:38:23 AM UTC-7 Bram Moolenaar wrote:

Jason Weber wrote:

> I mean where the actual X11 window is constrained to expand/shrink by steps
> of the font's character width/height.
> This has been the case, by my witness, for as long as I recall. It seems
> to still be the case on Windows 10.
>
> I don't have a right or bottom scrollbar, just the left.
>
> I asked someone on Arch, and he said the same change happened to him a
> short while back.

It might be that this conflicts with filling the whole screen when
maximized. When resizing the GUI window by dragging the edge, you would
want to resize by the character cell size, so that there is no "half
character" gap somewhere. When maximized you do want that gap, to avoid
the Vim window now completely filling the screen. Not sure if we can
have both. Can the window hints be removed when maximized, and added
back when not?

--
Compilation process failed successfully.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f264f631-7a68-447f-8e26-c6dfbe32df02n%40googlegroups.com.

Re: XSetWMNormalHints

Jason Weber wrote:

> I mean where the actual X11 window is constrained to expand/shrink by steps
> of the font's character width/height.
> This has been the case, by my witness, for as long as I recall. It seems
> to still be the case on Windows 10.
>
> I don't have a right or bottom scrollbar, just the left.
>
> I asked someone on Arch, and he said the same change happened to him a
> short while back.

It might be that this conflicts with filling the whole screen when
maximized. When resizing the GUI window by dragging the edge, you would
want to resize by the character cell size, so that there is no "half
character" gap somewhere. When maximized you do want that gap, to avoid
the Vim window now completely filling the screen. Not sure if we can
have both. Can the window hints be removed when maximized, and added
back when not?

--
Compilation process failed successfully.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220401163813.CB14F1C039E%40moolenaar.net.

Re: XSetWMNormalHints

I mean where the actual X11 window is constrained to expand/shrink by steps of the font's character width/height.
This has been the case, by my witness, for as long as I recall.  It seems to still be the case on Windows 10.

I don't have a right or bottom scrollbar, just the left.

I asked someone on Arch, and he said the same change happened to him a short while back.

On Friday, April 1, 2022 at 1:46:36 AM UTC-7 matthew...@gmail.com wrote:
чт, 31 мар. 2022 г. в 21:10, Jason Weber <baboon...@gmail.com>:
I recently upgraded from Debian 10 to Debian 11.

My gvim used to always do resize increments by character.  Dragging a window edge would resize the window by snapping to the nearest whole character.  I would even see the window size written on screen, as characters, not pixels.  Now I see sizes by pixels.  My xterm windows still resize by character, as before.

I use fvwm on my host, but I also tried this on a PopOS VM, for whatever the default WM is for that.  The Windows 10 VM does still resize on characters.

For what I have read, this is part of ICCCM, specifically setting PResizeSize with XSetWMNormalHints().  The only thing I saw in the vim source is

#define XSetWMNormalHints XSETWMNORMALHINTS

I'm not sure where that is even used.

I've been digging around for a few hours now and was hoping someone could give me hint where to look next.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/aeb6fc82-46de-42a7-90af-e5b3484d9c55n%40googlegroups.com.

Hello,

I guess you mean 8.2.2709 (see also Issue #5602 and #8008;  PR #6466 and #8027 on Vim's github page).

Note that the GVim window was and still is resized by pixel, while the text area displays a whole number of chars. The difference is that few "leftover" pixels previously were on the right of the vertical scrollbar, while now they can reside in the text area (and so have "Normal" color). Is there any problem with this?

Regards,
Matvey

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/43f71a5c-adff-4581-b0cb-eae6313eb90fn%40googlegroups.com.

Re: XSetWMNormalHints

чт, 31 мар. 2022 г. в 21:10, Jason Weber <baboon.imonk@gmail.com>:
I recently upgraded from Debian 10 to Debian 11.

My gvim used to always do resize increments by character.  Dragging a window edge would resize the window by snapping to the nearest whole character.  I would even see the window size written on screen, as characters, not pixels.  Now I see sizes by pixels.  My xterm windows still resize by character, as before.

I use fvwm on my host, but I also tried this on a PopOS VM, for whatever the default WM is for that.  The Windows 10 VM does still resize on characters.

For what I have read, this is part of ICCCM, specifically setting PResizeSize with XSetWMNormalHints().  The only thing I saw in the vim source is

#define XSetWMNormalHints XSETWMNORMALHINTS

I'm not sure where that is even used.

I've been digging around for a few hours now and was hoping someone could give me hint where to look next.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/aeb6fc82-46de-42a7-90af-e5b3484d9c55n%40googlegroups.com.

Hello,

I guess you mean 8.2.2709 (see also Issue #5602 and #8008;  PR #6466 and #8027 on Vim's github page).

Note that the GVim window was and still is resized by pixel, while the text area displays a whole number of chars. The difference is that few "leftover" pixels previously were on the right of the vertical scrollbar, while now they can reside in the text area (and so have "Normal" color). Is there any problem with this?

Regards,
Matvey

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFsTB%2BLsmp6-CuaYoS9QjQV0xNCOd%2BbDRXpGehWMMrwwcXfoGQ%40mail.gmail.com.