Re: xterm PRIMARY and CLIPBOARD selection [was: Re: Copy from Firefox and paste into Terminal with Vim]

2024-02-07 Thread debian-user
Stefan Monnier wrote: > > I have not said it is more “standard for terminals”, I have that it > > is more “standard” fullstop. It is more standard by the virtue of > > having worked for decades, C-Ins S-Ins S-Del existed way before the > > C-C C-V C-X tryptich, and still working today in most

C-Ins vs. C-c [was: xterm PRIMARY and CLIPBOARD selection] Firefox and paste into Terminal with Vim]

2024-02-07 Thread tomas
On Wed, Feb 07, 2024 at 01:20:19PM +0100, Nicolas George wrote: > Max Nikulin (12024-02-07): > > It may be a convention for applications other than terminals, however I am > > unsure what "standard" means for terminals. > > I have not said it is more “standard for terminals”, I have that it is >

Re: xterm PRIMARY and CLIPBOARD selection [was: Re: Copy from Firefox and paste into Terminal with Vim]

2024-02-07 Thread Max Nikulin
On 07/02/2024 19:20, Nicolas George wrote: Max Nikulin (12024-02-07): It may be a convention for applications other than terminals, however I am unsure what "standard" means for terminals. I have not said it is more “standard for terminals”, I have that it is more “standard” fullstop. It is

Re: xterm PRIMARY and CLIPBOARD selection [was: Re: Copy from Firefox and paste into Terminal with Vim]

2024-02-07 Thread Stefan Monnier
> I have not said it is more “standard for terminals”, I have that it is > more “standard” fullstop. It is more standard by the virtue of having > worked for decades, C-Ins S-Ins S-Del existed way before the C-C C-V C-X > tryptich, and still working today in most contexts. Indeed, IIUC these key

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-07 Thread Max Nikulin
On 07/02/2024 19:19, Greg Wooledge wrote: On Tue, Feb 06, 2024 at 11:02:09PM -0800, David Christensen wrote: * Pressing " then + then p seems to paste from the default Vim buffer -- what I seem to recall being referred to as the "yank buffer" (?). * Pressing " then * then p

Re: xterm PRIMARY and CLIPBOARD selection [was: Re: Copy from Firefox and paste into Terminal with Vim]

2024-02-07 Thread Nicolas George
Max Nikulin (12024-02-07): > It may be a convention for applications other than terminals, however I am > unsure what "standard" means for terminals. I have not said it is more “standard for terminals”, I have that it is more “standard” fullstop. It is more standard by the virtue of having worked

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-07 Thread Greg Wooledge
On Tue, Feb 06, 2024 at 11:02:09PM -0800, David Christensen wrote: > * Pressing " then + then p seems to paste from the default Vim buffer -- > what I seem to recall being referred to as the "yank buffer" (?). > > * Pressing " then * then p seems to p

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-07 Thread David Christensen
On 2/6/24 06:25, Max Nikulin wrote: On 06/02/2024 13:28, David Christensen wrote: On 2/5/24 19:03, Max Nikulin wrote:     xclip -o -selection PRIMARY     xclip -o -selection CLIPBOARD That is useful. I expected that you would try both commands when vim is unable to paste. It would allow

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread David Christensen
On 2/6/24 05:48, John Hasler wrote: My .vimrc contains syntax on set mouse-=a And pasting works. Thank you for the reply. :-) If and when Firefox, Debian, X, Xfce, Terminal, and/or Vim misbehave again, I will try your suggestions. VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 20

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread David Christensen
On 2/6/24 03:33, Ralph Aichinger wrote: On Mon, 2024-02-05 at 15:14 -0800, David Christensen wrote: I am unable to determine if the problem is Firefox, Vim, or something else. Comments or suggestions? As others have written, vim has changed copy+paste defaults some time ago. Some even call

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread David Christensen
On 2/6/24 00:12, Klaus Singvogel wrote: David Christensen wrote: On 2/5/24 21:45, to...@tuxteam.de wrote: Try ":set mouse=" and see whether it helps. Perhaps it's that. That's the way. That's the fix for the root cause. Thank you for the reply. :-) Currently, Firefox, Vim, se

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread David Christensen
On 2/6/24 04:28, Greg Wooledge wrote: On Mon, Feb 05, 2024 at 10:28:53PM -0800, David Christensen wrote: Continuing from above in Vim in Insert mode, if I then simultaneously press the Ctrl, Shift, and v keys, and then release all keys, Vim inserts the contents of the clipboard; as confirmed

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread David Christensen
On 2/6/24 03:15, Dan Ritter wrote: David Christensen wrote: On 2/5/24 16:48, Dan Ritter wrote: David Christensen wrote: Please provide a URL that describes the Vim "+ and "* buffers, how to interact with them within Vim, how to interact with them from other apps, etc

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread David Christensen
gnome-terminal or terminator) Thank you for the reply. :-) Firefox and Vim seem to be playing nice today -- I can select text in Firefox and paste via middle-click into a window running Terminal running Vim. I tried several times, but was unable to get them to malfunction. Similarly, Ctrl

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Max Nikulin
On 07/02/2024 00:35, Ralph Aichinger wrote: On Tue, 2024-02-06 at 21:31 +0700, Max Nikulin wrote: is active in terminal, it is possible to hold [Shift] to get mouse events handled by terminal instead of Vim or another application running in terminal. I think pressing shift does not work here

xterm PRIMARY and CLIPBOARD selection [was: Re: Copy from Firefox and paste into Terminal with Vim]

2024-02-06 Thread Max Nikulin
On 07/02/2024 00:38, Nicolas George wrote: Max Nikulin (12024-02-07): Shift Ctrl C: CtrlInsert is the standard counterpart to ShiftInsert. It may be a convention for applications other than terminals, however I am unsure what "standard" means for terminals. Konsole has "reverted"

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Ralph Aichinger
On Tue, 2024-02-06 at 21:31 +0700, Max Nikulin wrote: > is active in terminal, it is possible to hold [Shift] to get mouse > events handled by terminal instead of Vim or another application > running in terminal. I think pressing shift does not work here in e.g. gnome-terminal

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Nicolas George
Max Nikulin (12024-02-07): > Shift Ctrl C: CtrlInsert is the standard counterpart to ShiftInsert. > exec-formatted("sh -c 'xsel --output --primary | > \ > exec xsel --input --clipboard'", PRIMARY)\n\

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Max Nikulin
ift Ctrl V: insert-selection(CLIPBOARD) As to + and * registers. What kind of vim do you use? At least vim-gtk3 provides console vim binary built with x11 support. Perhaps it is +xterm_clipboard option. unicorn:~$ vim --version | sed -n -e 1,2p -e /GUI/p -e /clip/p VIM - Vi IMproved 9.0 (2

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Greg Wooledge
On Tue, Feb 06, 2024 at 03:36:23PM +, debian-u...@howorth.org.uk wrote: > I know I don't like xterm so I never use it. I mainly use lxterminal > and sometimes gnome-terminal but they both must be 'exotic' since they > behave as David said. The following NEW packages will be installed:

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread debian-user
Greg Wooledge wrote: > On Mon, Feb 05, 2024 at 10:28:53PM -0800, David Christensen wrote: > > Continuing from above in Vim in Insert mode, if I then > > simultaneously press the Ctrl, Shift, and v keys, and then release > > all keys, Vim inserts the contents of the cl

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Greg Wooledge
On Tue, Feb 06, 2024 at 09:38:11PM +0700, Max Nikulin wrote: > On 06/02/2024 19:28, Greg Wooledge wrote: > > On Mon, Feb 05, 2024 at 10:28:53PM -0800, David Christensen wrote: > > > Continuing from above in Vim in Insert mode, if I then simultaneously > > > press > &

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Max Nikulin
On 06/02/2024 19:28, Greg Wooledge wrote: On Mon, Feb 05, 2024 at 10:28:53PM -0800, David Christensen wrote: Continuing from above in Vim in Insert mode, if I then simultaneously press the Ctrl, Shift, and v keys, and then release all keys, Vim inserts the contents of the clipboard

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread tomas
On Tue, Feb 06, 2024 at 09:31:33PM +0700, Max Nikulin wrote: [...] > Concerning set "mouse=", I usually use it, but even when mouse handling is > active in terminal, it is possible to hold [Shift] to get mouse events > handled by terminal instead of Vim or another

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Max Nikulin
On 06/02/2024 18:33, Ralph Aichinger wrote: As others have written, vim has changed copy+paste defaults some time ago. Some even call this changing defaults "they broke copy+paste" . I am using vim in GUI terminal applications and I have not noticed it. Vim is a rare a

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Max Nikulin
On 06/02/2024 13:28, David Christensen wrote: On 2/5/24 19:03, Max Nikulin wrote:     xclip -o -selection PRIMARY     xclip -o -selection CLIPBOARD That is useful. I expected that you would try both commands when vim is unable to paste. It would allow to discriminate whether it is Firefox

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread John Hasler
My .vimrc contains syntax on set mouse-=a And pasting works. VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 20 2023 16:05:25) Included patches: 1-2116 -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Greg Wooledge
n my own testing just now, I'm unable to get this to work. vim (version 2:9.0.1378-2) running in urxvt, command mode, pressing "+ or "* generates a terminal bell. Pressing p after either one of these pastes what's in vim's unnamed default buffer.

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Greg Wooledge
On Mon, Feb 05, 2024 at 10:28:53PM -0800, David Christensen wrote: > Continuing from above in Vim in Insert mode, if I then simultaneously press > the Ctrl, Shift, and v keys, and then release all keys, Vim inserts the > contents of the clipboard; as confirmed by: > > xcli

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Ralph Aichinger
On Mon, 2024-02-05 at 15:14 -0800, David Christensen wrote: > I am unable to determine if the problem is Firefox, Vim, or something > else. > > Comments or suggestions? As others have written, vim has changed copy+paste defaults some time ago. Some even call this changing defaults

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Dan Ritter
David Christensen wrote: > On 2/5/24 16:48, Dan Ritter wrote: > > David Christensen wrote: > > > Please provide a URL that describes the Vim "+ and "* buffers, how to > interact with them within Vim, how to interact with them from other apps, > etc.. ht

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-06 Thread Klaus Singvogel
David Christensen wrote: > On 2/5/24 21:45, to...@tuxteam.de wrote: > > Try ":set mouse=" and see whether it helps. Perhaps it's that. That's the way. That's the fix for the root cause. > I am unable to correlate that Vim setting change to the Vim paste problems. But it's

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread tomas
On Mon, Feb 05, 2024 at 11:07:53PM -0800, David Christensen wrote: > On 2/5/24 21:45, to...@tuxteam.de wrote: [...] > I am not aware of any problems pasting into other applications, just pasting > into Vim. > > > > Vim has changed its defaults a while ago in an annoying wa

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread David Christensen
On 2/5/24 21:45, to...@tuxteam.de wrote: On Mon, Feb 05, 2024 at 03:14:45PM -0800, David Christensen wrote: debian-user: I have a laptop with: [copy in Firefox, paste in vim] I am unable to determine if the problem is Firefox, Vim, or something else. Are you able to paste into another

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread David Christensen
On 2/5/24 16:48, Dan Ritter wrote: David Christensen wrote: Normally, I can cut and paste between Xfce desktop applications. Enter a Zip Code of "12345", highlight the first result, copy it to the clipboard, start Terminal, open a file with Vim, press "i" to enter in

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread David Christensen
hat is useful. To access primary selection or clipboard in vim use * and + registers: "*p in normal mode If I start Firefox, browse to https://www.toyota.com/dealers, select the the first dealer contents, start Vim, press and release the double-quote key, press and release the asterisk key, and

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread tomas
On Mon, Feb 05, 2024 at 03:14:45PM -0800, David Christensen wrote: > debian-user: > > I have a laptop with: [copy in Firefox, paste in vim] > I am unable to determine if the problem is Firefox, Vim, or something else. Are you able to paste into another application? Vim has

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread Max Nikulin
then content is not available any more. To make selection "persistent", you may try some clipboard manager, but it may have not always desirable side effects. To debug you may use xsel or xclip xclip -o -selection PRIMARY xclip -o -selection CLIPBOARD To access primary selection

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread Dan Ritter
David Christensen wrote: > Normally, I can cut and paste between Xfce desktop applications. > > > Enter a Zip Code of "12345", highlight the first result, copy it to the > clipboard, start Terminal, open a file with Vim, press "i" to enter insert > mode, an

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread DdB
Am 06.02.2024 um 00:14 schrieb David Christensen: > Comments or suggestions? This may be unrelated, but ... I can copy/paste using the mouse, or - if i use the keyboard - i need to copy paste using CTRL-Shift-C and CTRL-Shift-V (when in the terminal emulator like gnome-terminal or terminator)

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread David Christensen
On 2/5/24 15:44, Bret Busby wrote: On 6/2/24 07:14, David Christensen wrote: debian-user: I have a laptop with: 2024-02-05 15:04:48 dpchrist@laalaa ~ $ cat /etc/debian_version ; uname -a ; dpkg-query -W xfce4 firefox-esr vim 11.8 Linux laalaa 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023

Re: Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread Bret Busby
On 6/2/24 07:14, David Christensen wrote: debian-user: I have a laptop with: 2024-02-05 15:04:48 dpchrist@laalaa ~ $ cat /etc/debian_version ; uname -a ; dpkg-query -W xfce4 firefox-esr vim 11.8 Linux laalaa 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux firefox-esr

Copy from Firefox and paste into Terminal with Vim

2024-02-05 Thread David Christensen
debian-user: I have a laptop with: 2024-02-05 15:04:48 dpchrist@laalaa ~ $ cat /etc/debian_version ; uname -a ; dpkg-query -W xfce4 firefox-esr vim 11.8 Linux laalaa 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux firefox-esr 115.7.0esr-1~deb11u1 vim 2:8.2.2434

Re: RIP VIM

2023-08-09 Thread Charles Plessy
Le Mon, Aug 07, 2023 at 11:22:23AM +0200, ajh-valmer a écrit : > > Sans le mode graphique, combien de fois VIM m'a sauvé, > que j'ai remplacé par NANO car VIM à partir d'une nouvelle version > a du mal avec les copier/coller. C'est un changement de configuration par défaut d'il

Re: RIP VIM

2023-08-08 Thread Haricophile
Le Mon, 7 Aug 2023 11:22:23 +0200, "ajh-valmer" a écrit : > car VIM à partir d'une nouvelle version > a du mal avec les copier/coller. C'est pas plutôt la Widowisation de Linux qui a du mal a copier-coller, Gnome en tête ? Fusionner les presse-papiers est une solution de contournement.

Re: RIP VIM

2023-08-07 Thread Jean-Michel OLTRA
Bonjour, Le lundi 07 août 2023, ajh-valmer a écrit... > >  https://groups.google.com/g/vim_announce/c/tWahca9zkt4 RIP > > Triste nouvelle, à 62 ans... C'est vrai. Vim, avec Mutt, c'est mon quotidien. Mais il part en laissant une œuvre immense, et c'est déjà pas mal. -- jm

Re: RIP VIM

2023-08-07 Thread ajh-valmer
On Sunday 06 August 2023 18:37:09 David Pinson wrote: > J'utilise beaucoup VIM à la place de VI ou NANO et peut-être certains > d'entre vous... > Je me permets de vous relayer la triste nouvelle: > Le développeur, initiateur du projet VIM, Bram MOOLENAAR, n'est plus de > ce mo

Re: RIP VIM

2023-08-06 Thread didier gaumet
Il a été d'un apport bénéfique au logiciel libre comme à l'action caritative, a priori, donc chapeau.

RIP VIM

2023-08-06 Thread David Pinson
Bonjour, J'utilise beaucoup VIM à la place de VI ou NANO et peut-être certains d'entre vous... Je me permets de vous relayer la triste nouvelle: Le développeur, initiateur du projet VIM, Bram MOOLENAAR, n'est plus de ce monde depuis le 3 aout.  https://groups.google.com/g/vim_announce/c

Re: [HS] Identification des caractères unicode dans Vim (Re: Bridge: config manuelle OK mais KO par /etc/network/interfaces [RESOLU])

2023-05-23 Thread Jean Bernon
La commande od peut aussi aider à repérer des caractères parasites cachés. > > > Le 2023-05-19 16:47, Olivier a écrit : > > > À l'origine, le fichier était généré par un script Ansible. > > > À l'oeil nu, avec vim, il ne présentait aucune anomalie visible. >

Re: [HS] Identification des caractères unicode dans Vim (Re: Bridge: config manuelle OK mais KO par /etc/network/interfaces [RESOLU])

2023-05-23 Thread Olivier
Génial ! J'avais imaginé utiliser l'option ":set list" de vim mais le résultat semblait insuffisant. Dès que possible, je testerai cet autre module. Quand il s'agit de code code source YAML ou Python, une autre source serait d'utiliser un outil de mise en forme qui détecterait ce typ

[HS] Identification des caractères unicode dans Vim (Re: Bridge: config manuelle OK mais KO par /etc/network/interfaces [RESOLU])

2023-05-22 Thread Sébastien NOBILI
Bonjour, Le 2023-05-19 16:47, Olivier a écrit : À l'origine, le fichier était généré par un script Ansible. À l'oeil nu, avec vim, il ne présentait aucune anomalie visible. À l'évidence, il me semble indispensable d'utiliser un éditeur qui m'aiderait à repérer des caractères cachés. Et voilà

Re: Choosing neovim over vim as default

2022-11-05 Thread Oliver Schoede
-all when it comes to editor plugins. Certainly not for the Vim folks and even though speed was one the grounds for the change, as far as I'm aware it's not the most important. >Until vim9 I thought vim as a slimmer version of neovim but >it's the opposite. I've never heard this before.

Choosing neovim over vim as default

2022-11-04 Thread Bharatvaj P H
vimscript9 feels like a bad decision, it is incompatible with vimscript2 and does not match performance with lua. We definitely don't need another language. Until vim9 I thought vim as a slimmer version of neovim but it's the opposite. Currently there is confusion among developers when writing

Re: Re : vim / sed : subsitution de codes hexa

2022-05-27 Thread kaliderus
Bonsoir, Une piste : Je pense que awk devrait répondre à ton besoin, il m'est arrivé de faire des choses assez " besogneuses " sur de longues chaînes de caractères dans le passé avec cet outil. En mixant avec iconv pour l'encodage (à passer dans le script) tu devrai t'en sortir. Bon courage Le

Re : vim / sed : subsitution de codes hexa

2022-05-14 Thread nicolas . patrois
Le 12/05/2022 22:11:50, Alain Vaugham a écrit : > Il s'agit d'un export provenant d'un logiciel de comptabilité. > Je l'ai encodé en utf8 et je veux substituer les caractères hexa: > <82> par é Je me demande si ça ne passerait pas avec konwert, par exemple : konwert any-utf8

Re: [Résolu] Re: vim / sed : subsitution de codes hexa

2022-05-13 Thread Bernard Schoenacker
- Mail original - > De: "Alain Vaugham" > À: debian-user-french@lists.debian.org > Envoyé: Vendredi 13 Mai 2022 14:00:03 > Objet: [Résolu] Re: vim / sed : subsitution de codes hexa > > Le Thu, 12 May 2022 22:38:16 +, > Hugues Larrive a écrit :

[Résolu] Re: vim / sed : subsitution de codes hexa

2022-05-13 Thread Alain Vaugham
La solution que j'ai trouvée a été d'utiliser vim dans mon script: vim -c "%s/\%x82/é/g|wq" mon_fichier Encore merci pour la tentative de réponse. -- Alain Vaugham Clef GPG : 0xDB77E054673ECFD2 pgpWAk1mTB97N.pgp Description: Signature digitale OpenPGP

Re: vim / sed : subsitution de codes hexa

2022-05-12 Thread Alain Vaugham
Le Thu, 12 May 2022 23:14:50 +0200, didier gaumet a écrit : > je me demande dans quel mesure tu n'as pas une différence > d'environnement linguistique interactif/batch (par exemple examiner > $LANG dans ton script pour vérifier?) Dans le scripts echo $LANG donne: fr_FR.UTF-8 -- Alain Vaugham

Re : Re: vim / sed : subsitution de codes hexa

2022-05-12 Thread Hugues Larrive
Je l'ai encodé en utf8 et je veux substituer les caractères hexa: > > <82> par é > > > > Sous vim les substitutions se font correctement > > :%s/\%x82/é/g > > > > Vu la quantité de substitutions à faire je souhaite scripter > > l'opération avec se

Re: vim / sed : subsitution de codes hexa

2022-05-12 Thread didier gaumet
Le jeudi 12 mai 2022 à 22:11 +0200, Alain Vaugham a écrit : > Bonjour la liste, > > Il s'agit d'un export provenant d'un logiciel de comptabilité. > Je l'ai encodé en utf8 et je veux substituer les caractères hexa: > <82> par é > > Sous vim les substitutions se font

vim / sed : subsitution de codes hexa

2022-05-12 Thread Alain Vaugham
Bonjour la liste, Il s'agit d'un export provenant d'un logiciel de comptabilité. Je l'ai encodé en utf8 et je veux substituer les caractères hexa: <82> par é Sous vim les substitutions se font correctement :%s/\%x82/é/g Vu la quantité de substitutions à faire je souhaite scripter l'opé

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-20 Thread Dedeco Balaco
Em 20/09/2021 17:36, Mark Neyhart escreveu: > On 9/18/21 5:14 PM, Dedeco Balaco wrote: >> Vim is one of these programs. While it is running, the terminal title >> shows the name of the file currently being edited, and the number of >> files that was opened with it,

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-20 Thread Mark Neyhart
On 9/18/21 5:14 PM, Dedeco Balaco wrote: > Vim is one of these programs. While it is running, the terminal title > shows the name of the file currently being edited, and the number of > files that was opened with it, when it was launched. > > After the upgrade, when i quit vim, the

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread David Wright
t; > reset the title. > > > > > > Specifically this is desirable whenever you want the title to show > > > a "changing" property (in this case, for example, the current > > > working directory). > > > > > > >

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
king your expectations. > So, i do not know if Vim restored the title it received. This is > something that makes sense, since vim always changes the title, when > called from a terminal. > > But, on another path of thought that makes sense, the shell and the > terminal res

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
> > a "changing" property (in this case, for example, the current > > working directory). > > > > > But there is something this would hide, and which i did > > > not yet found an explanation for: sometimes, the default title is rese

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread David Wright
But there is something this would hide, and which i did > > not yet found an explanation for: sometimes, the default title is reset > > after quitting vim, and sometimes not. > > That was my question: did you really observe vim resetting the title at > program end

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
lt title is reset > after quitting vim, and sometimes not. That was my question: did you really observe vim resetting the title at program end, or was it something set dynamically by your shell (you said you changed your PS1 before the upgrade and the title was "fixed" at vim'

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Nate Bargmann
s it adds code that is not displayed in the prompt to the PS1 variable. Any user setting of PS1 is undisturbed as shown by the $PS1 at the end. > And do not forget one thing: the tabs' titles are working almost as they > were before. With vim, sometimes, it does not reset when vim exits, as

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
ove, you have "\u@\h: \w\a\" written twice. This is because one (the > first) is to set the title, and another (the second) is to set the prompt. I know, I know (after all, I analysed that in another mail). I was just trying to reverse-engineer how things are working (by default) on my

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
On Sun, Sep 19, 2021 at 01:58:16PM -0300, Dedeco Balaco wrote: > > > > tomas@trotzki:~$ echo $PS1 > > \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ > > > > There has been a lot of time that i use a fancy PS1. But it does not > touch the terminal title, it never did. I

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Greg Wooledge
ave said my prompt is (and always were) > fancy. Then, you say that this might be the cause of the problem - BUT, > as a possible try to solve, you tell me to make another fancy prompt. > > And do not forget one thing: the tabs' titles are working almost as they > were before. With

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Dedeco Balaco
em in xterm, depending on > whether you want to set the title, or the icon's name, or both. Debian > is using the one that sets both.) > I do not understand you. I have said my prompt is (and always were) fancy. Then, you say that this might be the cause of the problem - BUT, as a possible try to s

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Greg Wooledge
On Sun, Sep 19, 2021 at 01:54:48PM -0300, Dedeco Balaco wrote: > > Once we know what $TERM is, we can advise. > > > > $ echo $TERM > xterm-256color Huh... OK. On Sun, Sep 19, 2021 at 01:58:16PM -0300, Dedeco Balaco wrote: > > > > tomas@trotzki:~$ echo $PS1 > > \[\e]0;\u@\h:

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Dedeco Balaco
> tomas@trotzki:~$ echo $PS1 > \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ > There has been a lot of time that i use a fancy PS1. But it does not touch the terminal title, it never did. I just worked in it to get a satisfying informative prompt.

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Dedeco Balaco
> > Assuming the OP is using Debian's provided .bashrc file (and other > shell dotfiles), PS1 is changed when .bashrc is read, which normally > means when bash is started as an interactive, non-login shell. > > Running "bash" would do that. I prefer "exec bash" because it gives > a cleaner

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Greg Wooledge
etending he has an xterm. That's not would I would suggest. > @Dedeco: what happens if you say "export TERM=xterm", start a new > shell [1] (i.e. you say "bash") and then start vim? It would be more useful to know what $TERM is *currently* set to. (And also what

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
rm, to stay compatible (although these days you never know). So perhaps the OP gets away with pretending he has an xterm. @Dedeco: what happens if you say "export TERM=xterm", start a new shell [1] (i.e. you say "bash") and then start vim? Cheers [1] I don't know when PS1 gets refreshed, so being carefully here - t signature.asc Description: Digital signature

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Greg Wooledge
On Sun, Sep 19, 2021 at 09:44:58AM +0200, to...@tuxteam.de wrote: > I've no Mate terminal here (just plain xterm), but this fourth way is > the one Debian chose for me: the shell prompt (via the PS1 variable) > is the one working the magic. I guess Mate terminal works as Xterm > here. > > It's

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread Greg Wooledge
On Sun, Sep 19, 2021 at 06:49:15AM -0300, Dedeco Balaco wrote: > Is there a log where the previous version of Mate and mate-terminal are > written? It should be in /var/log/dpkg* assuming those didn't get rotated away. I've got files up to dpkg.log.12.gz dated Sep 28, 2020. Try this: zgrep

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-19 Thread tomas
On Sat, Sep 18, 2021 at 10:23:06PM -0400, Greg Wooledge wrote: > On Sat, Sep 18, 2021 at 10:14:39PM -0300, Dedeco Balaco wrote: > > My window manager is Mate Desktop. The terminal i most use is its own. > > And i use vim a lot, [...] > Vim has another setting called "tit

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-18 Thread Greg Wooledge
On Sat, Sep 18, 2021 at 10:14:39PM -0300, Dedeco Balaco wrote: > My window manager is Mate Desktop. The terminal i most use is its own. > And i use vim a lot, > After the upgrade, when i quit vim, the terminal title becomes empty, > instead of returning to the default title "Ter

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-18 Thread Dedeco Balaco
Em 18/09/2021 22:49, Jeremy Hendricks escreveu: > I apologize for assuming you upgraded from 9 to 11 directly (skipping > 10). It’s a common misconception that is acceptable. > No problem. Actually, my first try to update was directly from a not completely updated Debian 9 to the current

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-18 Thread Jeremy Hendricks
ble. I do not find a clear condition to > make it happen. Searching about your suggestion, I found that vim has a > few very important arguments, where 2 of them interest me a lot, to > isolate this issue (I guess): > > $ vim -u NORC # does not load any RC file, global or

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-18 Thread Dedeco Balaco
I did not leap any release. I did everything correctly, step by step. The issue is not being reprodutible. I do not find a clear condition to make it happen. Searching about your suggestion, I found that vim has a few very important arguments, where 2 of them interest me a lot, to isolate

Re: A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-18 Thread Jeremy Hendricks
Generally it’s not recommended to leap frog over releases and you should upgrade in order (Ex. From 9 to 10). I suspect you might need to delete some of the config files in your home directory (rename them it .bak) as the version of vim, etc might be considerable different from 9 to 11 and might

A bug in Vim, in Mate Terminal or in Debian 11?

2021-09-18 Thread Dedeco Balaco
Hello, I recently upgraded my Debian 9 to Debian 11. But there are strange or wrong things happening right now, that did not exist before. My window manager is Mate Desktop. The terminal i most use is its own. And i use vim a lot, and i basically never use gvim, i prefer it through a terminal

Re: vim not seeing many Unicode chars

2021-05-20 Thread Tom Browder
On Tue, May 18, 2021 at 11:37 IL Ka wrote … Thanks! -Tom

Re: vim not seeing many Unicode chars

2021-05-20 Thread Tom Browder
On Tue, May 18, 2021 at 09:36 Greg Wooledge wrote: > On Tue, May 18, 2021 at 09:25:30AM -0500, … Thanks, Greg. -Tom

Re: vim not seeing many Unicode chars [SOLVED]

2021-05-18 Thread Tom Browder
I can use Emacs and >> can see and enter Unicode chars. >> >> But in the same terminal, when I run vim, I have trouble editing or >> seeing most Unicode chars above ASCII. >> >> >> >> >> >> Type ":set fileencoding?" from insi

Re: vim not seeing many Unicode chars

2021-05-18 Thread deloptes
Eike Lantzsch ZP6CGE wrote: > To noboy in particular: > Yes, that is so and for whatever reasons there might be, it is extremely > confusing causing frustration, despair and eventually anger. > It is especially exasperating if one works with several DE which, > contrary to the underlying

Re: vim not seeing many Unicode chars

2021-05-18 Thread Eike Lantzsch ZP6CGE
On Dienstag, 18. Mai 2021 13:04:00 -04 hdv@gmail wrote: > On 2021-05-18 18:37, IL Ka wrote: > > Thanks all. I looked at my config files (which go back at least > > 15 > > years) and found lots of explicitly setting both LC_ALL=C and > > LC_LANG=C. > > > > Should I remove all,

Re: vim not seeing many Unicode chars

2021-05-18 Thread Greg Wooledge
On Tue, May 18, 2021 at 11:24:39AM -0500, Tom Browder wrote: > Thanks all. I looked at my config files (which go back at least 15 years) > and found lots of explicitly setting both LC_ALL=C and LC_LANG=C. > > Should I remove all, or just remove the LC_ALL? LC_LANG isn't even a variable that

Re: vim not seeing many Unicode chars

2021-05-18 Thread hdv@gmail
On 2021-05-18 18:37, IL Ka wrote: Thanks all. I looked at my config files (which go back at least 15 years) and found lots of explicitly setting both LC_ALL=C and LC_LANG=C. Should I remove all, or just remove the LC_ALL? > Using LC_ALL is strongly discouraged as it overrides

Re: vim not seeing many Unicode chars

2021-05-18 Thread Steve Dondley
the same terminal, when I run vim, I have trouble editing or seeing > most Unicode chars above ASCII. > > Type ":set fileencoding?" from inside vim. > > What do you see? I see at the bottom of the window (without the square brackets): [ fileencoding= ] -To

Re: vim not seeing many Unicode chars

2021-05-18 Thread IL Ka
> > > Thanks all. I looked at my config files (which go back at least 15 years) > and found lots of explicitly setting both LC_ALL=C and LC_LANG=C. > > Should I remove all, or just remove the LC_ALL? > > Using LC_ALL is strongly discouraged as it overrides everything. Please use it only when

Re: vim not seeing many Unicode chars

2021-05-18 Thread Tom Browder
On Tue, May 18, 2021 at 09:25 Tom Browder wrote: > I'm running Debian Buster. Inside a terminal window I can use Emacs and > can see and enter Unicode chars. > ... Thanks all. I looked at my config files (which go back at least 15 years) and found lots of explicitly setting both LC_ALL=C and

Re: vim not seeing many Unicode chars

2021-05-18 Thread Tom Browder
On Tue, May 18, 2021 at 11:08 Steve Dondley wrote: > On 2021-05-18 10:25 AM, Tom Browder wrote: > > I'm running Debian Buster. Inside a terminal window I can use Emacs and > can see and enter Unicode chars. > > But in the same terminal, when I run vim, I have trouble editin

Re: vim not seeing many Unicode chars

2021-05-18 Thread Steve Dondley
On 2021-05-18 10:25 AM, Tom Browder wrote: > I'm running Debian Buster. Inside a terminal window I can use Emacs and can > see and enter Unicode chars. > > But in the same terminal, when I run vim, I have trouble editing or seeing > most Unicode chars above ASCII. Type &qu

  1   2   3   4   5   6   7   8   9   10   >