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
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)
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
>
> 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
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
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
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?
>
>
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
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
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
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&
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
"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
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.
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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,
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
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
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
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
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
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
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
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
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
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.
>
>
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.
>
>
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
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).
> -
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
>
> 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
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
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
> 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
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
: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
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.
&
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
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
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
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
-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
>
[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
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
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
> >
>
;> 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
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
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&
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
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
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
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
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
; :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
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
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
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
74 matches
Mail list logo