Re: vi

2017-11-10 Thread Michael Schwendt
On Fri, 10 Nov 2017 15:58:56 +0100, Dario Lesca wrote: > Il giorno gio, 09/11/2017 alle 13.37 +0100, Patrick Dupre ha scritto: > > Can I make 2 substitutions on a single call with sed? > > Two or more ... > > $ sed -i -e 's/E/e/g' -e 's/Alfa/xx/g' file.txt No -e option is needed, since yo

Re: vi

2017-11-10 Thread Dario Lesca
Il giorno gio, 09/11/2017 alle 13.37 +0100, Patrick Dupre ha scritto: > Can I make 2 substitutions on a single call with sed? Two or more ... $ sed -i -e 's/E/e/g' -e 's/Alfa/xx/g' file.txt -- Dario Lesca (inviato dal mio Linux Fedora 26 Workstation)

Re: vi

2017-11-09 Thread Cameron Simpson
On 09Nov2017 13:37, Patrick Dupre wrote: >I would like to execute a vi command as a bash command like: > vi +:1 "+1,$s/E/e/g" "+wq" test.TXT >But it does not work! > > under vi, I would do: >vi test.TXT >

Re: vi

2017-11-09 Thread Patrick Dupre
> Sent: Thursday, November 09, 2017 at 4:50 AM > From: "Cameron Simpson" > To: "Community support for Fedora users" > Subject: Re: vi > > On 08Nov2017 23:58, Patrick Dupre wrote: > >Actually, the issue is with the $ > [...] > >I woul

Re: vi

2017-11-08 Thread Cameron Simpson
On 08Nov2017 23:58, Patrick Dupre wrote: Actually, the issue is with the $ [...] I would like to execute a vi command as a bash command like: vi +:1 "+1,$s/E/e/g" "+wq" test.TXT But it does not work! under vi, I would do: vi test.TXT

Re: vi

2017-11-08 Thread Patrick Dupre
    Sent: Wednesday, November 08, 2017 at 11:46 PM From: "kevin martin" To: "Community support for Fedora users" Subject: Re: vi > technically, I guess, based on the man page, it doesn't need to be, but you may want to try that (I assume that your VI is, in f

Re: vi

2017-11-08 Thread kevin martin
technically, I guess, based on the man page, it doesn't need to be, but you may want to try that (I assume that your VI is, in fact, VIM). --- Regards, Kevin Martin On Wed, Nov 8, 2017 at 4:45 PM, kevin martin wrote: > is the first +:1 enclosed in ""'s? > >

Re: vi

2017-11-08 Thread kevin martin
is the first +:1 enclosed in ""'s? --- Regards, Kevin Martin On Wed, Nov 8, 2017 at 4:40 PM, Patrick Dupre wrote: > Hello, > > I would like to execute a vi command as a bash command like: > vi +:1 "+1,$s/E/e/g" "+wq" test.TXT > But it does

vi

2017-11-08 Thread Patrick Dupre
Hello, I would like to execute a vi command as a bash command like: vi +:1 "+1,$s/E/e/g" "+wq" test.TXT But it does not work! under vi, I would do: vi test.TXT :1 :1,$s/E/e/g :wq could you tell me what

Re: vi

2017-09-28 Thread Gordon Messmer
On 09/28/2017 10:28 AM, Patrick Dupre wrote: Yes, but as long as you have the "vim-enhanced" package installed, "vi" should be an alias for "vim" I do not think so: viw-enhanced rovides: /etc/profile.d/vim.sh only /etc/profile.d/vim.sh provide the alias to vi

Re: vi

2017-09-28 Thread Patrick Dupre
8 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France === > > Yes, but as long as you have the "vim-enhanced" package installed, "vi&

Re: vi

2017-09-28 Thread Gordon Messmer
On 09/28/2017 07:27 AM, Patrick Dupre wrote: Actually you need to use wim Yes, but as long as you have the "vim-enhanced" package installed, "vi" should be an alias for "vim" ___ users mailing list -- users@lists.fe

Re: vi

2017-09-28 Thread Patrick Dupre
"Gordon Messmer" > To: users@lists.fedoraproject.org > Subject: Re: vi > > On 09/28/2017 04:04 AM, Patrick Dupre wrote: > > How can I keep stored the commands of vi from call to call? > > Make sure you have the "vim-enhanced" package installed.  IIRC, o

Re: vi

2017-09-28 Thread Gordon Messmer
On 09/28/2017 04:04 AM, Patrick Dupre wrote: How can I keep stored the commands of vi from call to call? Make sure you have the "vim-enhanced" package installed.  IIRC, on core installs you'll only get the "vim-minimal" package.

Re: vi

2017-09-28 Thread Ted Roche
On Thu, Sep 28, 2017 at 7:04 AM, Patrick Dupre wrote: > Hello, > > How can I keep stored the commands of vi from call to call? Within vim, enter command mode and type: :help history for pointers on how to do this. -- Ted Roche Ted Roche & Associates, LLC http://www

SV: vi

2017-09-28 Thread Daniel Ståhl
Maybe it's just my installation but doesn't vanilla vim do that per default? Just press : and up-arrow and old commands should appear. -- ds -Ursprungligt meddelande- Från: Patrick Dupre [mailto:pdu...@gmx.com] Skickat: den 28 september 2017 13:05 Till: fedora Ämne: vi H

vi

2017-09-28 Thread Patrick Dupre
Hello, How can I keep stored the commands of vi from call to call? cf. 1,$s/ // I would like to have it back next time that I edit other file. Thank. === Patrick DUPRÉ | | email: pdu

Re: vi

2017-01-12 Thread Kseniya Blashchuk
> Any of my machines has a .vimrc file and one has a wrong behavior. > > However, if I connect through a ssh -X gnome-terminal session to the > machine > > showing an unexpected behavior (VISUAL), vi just behave normally while > > when I log in front of the machine I get t

Re: vi

2017-01-09 Thread Joe Zeff
On 01/09/2017 01:11 PM, Patrick Dupre wrote: Actually, I do not think that it is an issue with vim. Any of my machines has a .vimrc file and one has a wrong behavior. However, if I connect through a ssh -X gnome-terminal session to the machine showing an unexpected behavior (VISUAL), vi just

Re: vi

2017-01-09 Thread Patrick Dupre
Actually, I do not think that it is an issue with vim. Any of my machines has a .vimrc file and one has a wrong behavior. However, if I connect through a ssh -X gnome-terminal session to the machine showing an unexpected behavior (VISUAL), vi just behave normally while when I log in front of the

Re: vi

2017-01-09 Thread Tom H
On Sun, Jan 8, 2017 at 5:26 PM, Patrick Dupre wrote: > > I observe 2 different behaviours of vi that I cannot explain. > 2 different machines, same distribution > > On one machine when I underline some text with the mouse (not in append > mode), vi turns to a VISUAL mode, an

Re: vi

2017-01-08 Thread Max Pyziur
On Sun, 8 Jan 2017, Patrick Dupre wrote: Hello, I observe 2 different behaviours of vi that I cannot explain. 2 different machines, same distribution On one machine when I underline some text with the mouse (not in append mode), vi turns to a VISUAL mode, and not in the other machine

Re: vi

2017-01-08 Thread Ahmad Samir
On 9 January 2017 at 00:26, Patrick Dupre wrote: > Hello, > > I observe 2 different behaviours of vi that I cannot explain. > 2 different machines, same distribution > > On one machine when I underline some text with the mouse (not in append > mode), vi turns to a VISUAL

vi

2017-01-08 Thread Patrick Dupre
Hello, I observe 2 different behaviours of vi that I cannot explain. 2 different machines, same distribution On one machine when I underline some text with the mouse (not in append mode), vi turns to a VISUAL mode, and not in the other machine. Actually, I hate the VISUAL mode! Thank for your

Re: color vi (gnome-terminal)

2015-08-12 Thread Patrick Dupre
Thank, > > On 08/12/15 10:28, Patrick Dupre wrote: > > Hello, > > > > it seems than in fedora 22, the color coding for vi has changed. > > How can I get the previous mapping or have control on the > > new coding? > > i do not have fedora 22

Re: color vi (gnome-terminal)

2015-08-12 Thread Zach Villers
Patrick, Are you truly using vi or vim-minimal? If you are using vim, you can download colorschemes from several sources online and install them. Vim has several plugin managers that make installing color schemes and plugins much easier. My favorite is vim-plug, which you can find on github

Re: color vi (gnome-terminal)

2015-08-12 Thread g
On 08/12/15 10:28, Patrick Dupre wrote: > Hello, > > it seems than in fedora 22, the color coding for vi has changed. > How can I get the previous mapping or have control on the > new coding? i do not have fedora 22 up, but for centos 6.6, i have a directory; /usr/share/v

color vi (gnome-terminal)

2015-08-12 Thread Patrick Dupre
Hello, it seems than in fedora 22, the color coding for vi has changed. How can I get the previous mapping or have control on the new coding? Thank === Patrick DUPRÉ | | email: pdu

Re: F18: What happened to vi and bash auto-complete?

2013-02-10 Thread Bill Davidsen
Rahul Sundaram wrote: Hi On Fri, Feb 8, 2013 at 4:59 PM, Joe Zeff wrote: > I wasn't aware that smolt had gone away. However, as I pointed out, syncing the system clock by the network is done (if at all) during > boot and before firstboot starts. That's never been true https://docs.fedorapro

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Rahul Sundaram
Hi On Fri, Feb 8, 2013 at 4:59 PM, Joe Zeff wrote: > I wasn't aware that smolt had gone away. However, as I pointed out, syncing the system clock by the network is done (if at all) during > boot and before firstboot starts. That's never been true https://docs.fedoraproject.org/en-US/Fedora/18/

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Joe Zeff
On 02/08/2013 01:34 PM, Rahul Sundaram wrote: Smolt doesn't exist in Fedora anymore and the reason for network is given in this thread itself. Network access is needed if you chose to enable network sync for your system clock I wasn't aware that smolt had gone away. However, as I pointed out

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Rahul Sundaram
Hi On Fri, Feb 8, 2013 at 4:27 PM, Joe Zeff wrote: > > If you can confirm that, it needs to be reported. If the time is going to > be set from the network, it's done during boot, before firstboot runs. In > fact, unless it's sending a smolt profile back, I can't think of any reason > for firs

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Joe Zeff
On 02/08/2013 12:43 PM, Tom Horsley wrote: My impression has always been the firstboot tries to talk to ntp no matter what is actually installed, or if that isn't it, it certainly tries to talk to the network even if you didn't configure the network during the install. If you can confirm that,

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Bill Davidsen
Tom Horsley wrote: On Fri, 8 Feb 2013 14:24:02 -0600 Richard Shaw wrote: Interesting... I did have chrony installed and enabled so I wonder why firstboot stalled My impression has always been the firstboot tries to talk to ntp no matter what is actually installed, or if that isn't it, it

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Tom Horsley
On Fri, 8 Feb 2013 14:24:02 -0600 Richard Shaw wrote: > Interesting... I did have chrony installed and enabled so I wonder why > firstboot stalled My impression has always been the firstboot tries to talk to ntp no matter what is actually installed, or if that isn't it, it certainly tries to

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Richard Shaw
On Fri, Feb 8, 2013 at 1:28 PM, Rahul Sundaram wrote: > On Fri, Feb 8, 2013 at 2:21 PM, Richard Shaw wrote: > >> be surprised. ntp also didn't get installed which caused firstboot to >> hang when trying to sync the time, and therefore didn't complete. I'm >> still getting strange hostname errors f

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Rahul Sundaram
Hi On Fri, Feb 8, 2013 at 2:21 PM, Richard Shaw wrote: be surprised. ntp also didn't get installed which caused firstboot to > hang when trying to sync the time, and therefore didn't complete. I'm > still getting strange hostname errors from rpmbuild... > ntp daemon has been replaced by chrony

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Richard Shaw
On Fri, Feb 8, 2013 at 1:09 PM, Rahul Sundaram wrote: > On Fri, Feb 8, 2013 at 10:00 AM, Richard Shaw wrote: >> >> >> When I ssh into my machine from PuTTY I no longer get syntax >> highlighting in vi, nor is the position in the file remembered which >> was quit

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread Rahul Sundaram
On Fri, Feb 8, 2013 at 10:00 AM, Richard Shaw wrote: > > When I ssh into my machine from PuTTY I no longer get syntax > highlighting in vi, nor is the position in the file remembered which > was quite useful when going through build logs and spec files. > Make sure you have vim-e

Re: F18: What happened to vi and bash auto-complete?

2013-02-08 Thread fedora
as far as syntax highlighting is converned: http://www.cyberciti.biz/faq/turn-on-or-off-color-syntax-highlighting-in-vi-or-vim/ suomi On 2013-02-08 16:00, Richard Shaw wrote: My fedup from F17->18 was a disaster, and then my fresh install from the DVD iso on top of the failed upgrade wa

Re: vi ? howto show cursor position

2011-10-08 Thread Mike Wright
On 10/08/2011 11:32 AM, John Horne wrote: > On 7 October 2011 18:01, Mike Wright wrote: >> Hi all, >> >> In previous fedora releases vi would display the cursor position as "row >> number" "character position" in the bottom right of the display. I

Re: vi ? howto show cursor position

2011-10-08 Thread John Horne
On Sat, 2011-10-08 at 19:32 +0100, John Horne wrote: > On 7 October 2011 18:01, Mike Wright wrote: > > Hi all, > > > > In previous fedora releases vi would display the cursor position as "row > > number" "character position" in the bottom right of t

Re: vi ? howto show cursor position

2011-10-08 Thread John Horne
On 7 October 2011 18:01, Mike Wright wrote: > Hi all, > > In previous fedora releases vi would display the cursor position as "row > number" "character position" in the bottom right of the display. In > f14's release of vi this is no longer true. > >

Re: vi ? howto show cursor position

2011-10-08 Thread Hiisi
On 7 October 2011 18:01, Mike Wright wrote: > Hi all, > > In previous fedora releases vi would display the cursor position as "row > number" "character position" in the bottom right of the display.  In > f14's release of vi this is no longer true. > >

Re: vi ? howto show cursor position

2011-10-07 Thread Marvin Kosmal
gt;> set ruler should work. >> > >> > Thanks Alan, >> > >> > I tried :set ruler but that didn't work >> > I tried set ruler in .vimrc and that didn't work either. >> > >> > Got me baffled. >> >> Make sure you'r

Re: vi ? howto show cursor position

2011-10-07 Thread Marvin Kosmal
at didn't work > > I tried set ruler in .vimrc and that didn't work either. > > > > Got me baffled. > > Make sure you're running /usr/bin/vim and not /bin/vi (as root defaults > to). > -

Re: vi ? howto show cursor position

2011-10-07 Thread Rick Stevens
t;> >> It does work for me in F14 gnome terminals without doing anything. >> >> set ruler should work. > > Thanks Alan, > > I tried :set ruler but that didn't work > I tried set ruler in .vimrc and that didn't work either. > > Got me

Re: vi ? howto show cursor position

2011-10-07 Thread Aaron Konstam
> > On my machines both under F14 and F15 the cursor positions are > displayed. vi is really vim. This could be set by a :set command but I > can't find the right one when I looked quickly. On my machine as I said > the correct option is set by default. > > You ca

Re: vi ? howto show cursor position

2011-10-07 Thread Aaron Konstam
On Fri, 2011-10-07 at 11:01 -0700, Mike Wright wrote: > Hi all, > > In previous fedora releases vi would display the cursor position as "row > number" "character position" in the bottom right of the display. In > f14's release of vi this is no longer tr

Re: vi ? howto show cursor position

2011-10-07 Thread Mike Wright
On 10/07/2011 12:11 PM, Alan J. Gagne wrote: >> Is this something lost from the compiled distribution or is there some >> *:set* method that will turn it back on and, if so, would somebody share >> the magic formula? > > It does work for me in F14 gnome terminals without doing anything. > > set rul

re: vi ? howto show cursor position

2011-10-07 Thread Alan J. Gagne
> Is this something lost from the compiled distribution or is there some > *:set* method that will turn it back on and, if so, would somebody share > the magic formula? It does work for me in F14 gnome terminals without doing anything. set ruler should work. Alan -- users mailing list users@lis

vi ? howto show cursor position

2011-10-07 Thread Mike Wright
Hi all, In previous fedora releases vi would display the cursor position as "row number" "character position" in the bottom right of the display. In f14's release of vi this is no longer true. I've looked through the command reference and don't see any way

Re: vi

2010-12-01 Thread Patrick Dupre
:set mouse= Hello, Using vi, every time that I select some text I with the mouse I get a "VISUAL" mode which prevents me to copy the selected text. How can I avoid it ? thank. -- --- == Pat

Re: vi

2010-12-01 Thread Terry Polzin
Is "vi" aliased to vim? On Wed, 2010-12-01 at 15:44 +, Patrick Dupre wrote: > Hello, > > Using vi, every time that I select some text I with the mouse I get > a "VISUAL" mode which prevents me to copy the selected text. &

vi

2010-12-01 Thread Patrick Dupre
Hello, Using vi, every time that I select some text I with the mouse I get a "VISUAL" mode which prevents me to copy the selected text. How can I avoid it ? thank. -- --- == Pat

Re: Can't Start vi

2010-11-16 Thread Bruno Wolff III
On Tue, Nov 16, 2010 at 10:58:01 -0500, Richard Heck wrote: > > By the way, has there been discussion of the fact that many f14 packages > seem to depend upon f12 packages? i.e., packages named things like > *.f12.x86_64? This makes it very difficult to figure out what might have > been left

Re: Can't Start vi

2010-11-16 Thread Richard Heck
On 11/16/2010 10:31 AM, Mamoru Tasaka wrote: > Richard Heck wrote, at 11/16/2010 11:45 PM +9:00: >> [rgh...@rghquad po]$ vi >> vim: error while loading shared libraries: libperl.so: cannot open >> shared object file: No such file or directory >> [rgh...@rghquad po]$ l

Re: Can't Start vi

2010-11-16 Thread Mamoru Tasaka
Richard Heck wrote, at 11/16/2010 11:45 PM +9:00: > > [rgh...@rghquad po]$ vi > vim: error while loading shared libraries: libperl.so: cannot open > shared object file: No such file or directory > [rgh...@rghquad po]$ locate libperl > /usr/lib64/perl5/CORE/libperl.so > > W

Re: Can't Start vi

2010-11-16 Thread fedora
-linux-thread-multi/CORE/libperl.so -> ../../../CORE/libperl.so [myu...@myws ~]$ suomi On 2010-11-16 15:45, Richard Heck wrote: > > [rgh...@rghquad po]$ vi > vim: error while loading shared libraries: libperl.so: cannot open > shared object file: No such file or directory >

Can't Start vi

2010-11-16 Thread Richard Heck
[rgh...@rghquad po]$ vi vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory [rgh...@rghquad po]$ locate libperl /usr/lib64/perl5/CORE/libperl.so What to do? Everything is up to date Richard -- users mailing list users

Re: [OT] vi question

2010-07-15 Thread Aaron Konstam
On Wed, 2010-07-14 at 13:48 -0700, Mike Wright wrote: > Sjoerd Mullender wrote: > > On 2010-07-14 19:26, Mike Wright wrote: > >> Hi all, > >> > >> I'm wasting a lot of time (probably because of a brain fart) googling > >> for this. > >> > >> I'm using Zend_Framework to generate some html which it

Re: [OT] vi question

2010-07-14 Thread Rodolfo Alcazar Portillo
y sure it has an error but can't find > >> the missing/extra tag without formatting the html with line feeds. > >> > >> Will somebody tell me the symbol to use for a linefeed in substitutions > >> as in > >>:s1,$##linefeed#g > > >

Re: [OT] vi question

2010-07-14 Thread Michael Hennebry
;> the missing/extra tag without formatting the html with line feeds. >>>> >>>> Will somebody tell me the symbol to use for a linefeed in substitutions >>>> as in >>>>:s1,$##linefeed#g >>> Type control-V control-M. >> >> That

Re: [OT] vi question

2010-07-14 Thread Mike Wright
Rodolfo Alcazar Portillo wrote: > On Wed, 2010-07-14 at 10:26 -0700, Mike Wright wrote: >> I'm using Zend_Framework to generate some html which it unfortunately >> does as one giant line. I'm pretty sure it has an error but can't find >> the missing/extra tag without formatting the html with lin

Re: vi question

2010-07-14 Thread Cameron Simpson
On 14Jul2010 16:54, fred smith wrote: | On Wed, Jul 14, 2010 at 10:26:25AM -0700, Mike Wright wrote: | > Will somebody tell me the symbol to use for a linefeed in substitutions | > as in | > :s1,$##linefeed#g | | in vi: ^V^M, or maybe ^V^V^V^M. Try the first then if it doesn&

Re: vi question

2010-07-14 Thread Cameron Simpson
gt;> as in | >>> :s1,$##linefeed#g | >> | >> Type control-V control-M. | > | > That would be carriage return. | > convrol-V control-J might work. | > You might not be able to substitute a linefeed with vi. | > I think sed can do it. | | I know it's a c

Re: [OT] vi question

2010-07-14 Thread Rodolfo Alcazar Portillo
On Wed, 2010-07-14 at 10:26 -0700, Mike Wright wrote: > I'm using Zend_Framework to generate some html which it unfortunately > does as one giant line. I'm pretty sure it has an error but can't find > the missing/extra tag without formatting the html with line feeds. > > Will somebody tell me t

Re: [OT] vi question

2010-07-14 Thread fred smith
27;m pretty sure it has an error but can't find > the missing/extra tag without formatting the html with line feeds. > > Will somebody tell me the symbol to use for a linefeed in substitutions > as in > :s1,$##linefeed#g in vi: ^V^M, or maybe ^V^V^V^M. Try the f

Re: [OT] vi question

2010-07-14 Thread Mike Wright
Sjoerd Mullender wrote: > On 2010-07-14 19:26, Mike Wright wrote: >> Hi all, >> >> I'm wasting a lot of time (probably because of a brain fart) googling >> for this. >> >> I'm using Zend_Framework to generate some html which it unfortunately >> does as one giant line. I'm pretty sure it has an e

Re: [OT] vi question

2010-07-14 Thread Sjoerd Mullender
Will somebody tell me the symbol to use for a linefeed in substitutions >>> as in >>> :s1,$##linefeed#g >>> >>> tia, >>> Mike Wright >> >> Type control-V control-M. > > That would be carriage return. > convrol-V control-J might

Re: [OT] vi question

2010-07-14 Thread Michael Hennebry
; :s1,$##linefeed#g >> >> tia, >> Mike Wright > > Type control-V control-M. That would be carriage return. convrol-V control-J might work. You might not be able to substitute a linefeed with vi. I think sed can do it. -- Michael henne...@web.cs.ndsu.nodak.edu "Pes

Re: [OT] vi question

2010-07-14 Thread Steve Searle
Around 06:26pm on Wednesday, July 14, 2010 (UK time), Mike Wright scrawled: > I'm using Zend_Framework to generate some html which it unfortunately > does as one giant line. I'm pretty sure it has an error but can't find > the missing/extra tag without formatting the html with line feeds. Not

Re: [OT] vi question

2010-07-14 Thread Sjoerd Mullender
On 2010-07-14 19:26, Mike Wright wrote: > Hi all, > > I'm wasting a lot of time (probably because of a brain fart) googling > for this. > > I'm using Zend_Framework to generate some html which it unfortunately > does as one giant line. I'm pretty sure it has an error but can't find > the miss

[OT] vi question

2010-07-14 Thread Mike Wright
Hi all, I'm wasting a lot of time (probably because of a brain fart) googling for this. I'm using Zend_Framework to generate some html which it unfortunately does as one giant line. I'm pretty sure it has an error but can't find the missing/extra tag without formatting the html with line feed