to what you seem to be saying - to list every line of the
file, try the two characters , l.
However, if you want a more visual editor, perhaps /usr/bin/ee (which is just
over 10K bigger than /bin/ed) would do?
You also suggested doing away with ed and /rescue/vi altogether. You may not
need
On Wed, Jun 24, 2009 at 04:22:19PM +0200, Jonathan McKeown wrote:
You also suggested doing away with ed and /rescue/vi altogether. You may not
need statically-linked tools very often, but when you do need them, you
*REALLY* need them. Don't suggest throwing them away without thinking
On Wed, Jun 24, 2009 at 06:13:49AM -0700, b. f. wrote:
On Tuesday 23 June 2009 15:41:48 Manish Jain wrote:
That's the whole problem of /rescue/vi. When you suddenly find yourself
in single-user mode, the last thing you want to do is realise that
tweaking is needed for something which should
On Wed, 24 Jun 2009 06:13:49 -0700
b. f. bf1...@googlemail.com wrote:
??? Who is giving them that credit? This isn't new. You already have
some control over swapping via several oids:
vm.swap_enabled
vm.disable_swapspace_pageouts
vm.defer_swapspace_pageouts
vm.swap_idle_enabled
) or interactive (vi, wget, sysinstall).
The case of non-interactive tools is simple : just do what you are told
on the commandline and exit. For interactive tools, at a minimum, the
application has to be show what data it is working on and what it does
with the data when the user presses a key
fall either under the category of
non-interactive (grep, sed, ex) or interactive (vi, wget, sysinstall).
Oh really? Many Unix programs have traditionally had both a command
line mode of operation and an interactive mode, and that's still pretty
much still true. Usually when you run a program
2009/5/14 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net:
On Thursday 14 May 2009 12:38:30 Chris Rees wrote:
2009/5/13 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net:
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote:
Kind of like how those coming over from a
Linux
Mel Flynn wrote:
On Wednesday 13 May 2009 09:21:46 manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode.
The only reason to need an editor and not have /usr and /var available is to
edit /etc/fstab. It is trivial to spot errors with /rescue/cat
Manish Jain wrote:
Mel Flynn wrote:
On Wednesday 13 May 2009 09:21:46 manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode.
The only reason to need an editor and not have /usr and /var available
is to edit /etc/fstab. It is trivial to spot
Manish Jain invalid.poin...@gmail.com wrote:
From all the discussion I have walked through on the issue of
where to place vi, it does appear FreeBSD has a skewed policy
on the issue. There are plenty of reasons you might need access
an editor in single-user mode - editing fstab is just one
On Thu, May 14, 2009 at 10:03:58PM -0700, per...@pluto.rain.com wrote:
Chris Rees googlemail.com!utis...@agora.rdrop.com wrote:
2009/5/14 Chad Perrin per...@apotheon.com:
On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote:
I think the problem with that is he meant changing the
On Friday 15 May 2009 08:46:46 Manish Jain wrote:
Mel Flynn wrote:
On Wednesday 13 May 2009 09:21:46 manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode.
The only reason to need an editor and not have /usr and /var available is
to edit
Manish Jain wrote:
Mel Flynn wrote:
On Wednesday 13 May 2009 09:21:46 manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode.
[snip]
From all the discussion I have walked through on the issue of where to
place vi, it does appear FreeBSD has
2009/5/13 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net:
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote:
Kind of like how those coming over from a
Linux environment all seem to want to change root's shell to bash, it
serves no purpose except foot-shooting.
- csh cannot
On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote:
2009/5/13 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net:
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote:
Kind of like how those coming over from a
Linux environment all seem to want to change root's shell to
2009/5/14 Chad Perrin per...@apotheon.com:
On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote:
2009/5/13 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net:
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote:
Kind of like how those coming over from a
Linux environment
On Thursday 14 May 2009 12:38:30 Chris Rees wrote:
2009/5/13 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net:
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote:
Kind of like how those coming over from a
Linux environment all seem to want to change root's shell to bash, it
On Wednesday 13 May 2009 09:21:46 manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode.
The only reason to need an editor and not have /usr and /var available is to
edit /etc/fstab. It is trivial to spot errors with /rescue/cat and fix
On Thu, 14 May 2009 20:13:02 +0200, Mel Flynn
mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
sh is worse then csh.
But sufficient for administration tasks in maintenance mode.
It's not that you spend hours of dialog sessions in SUM.
Remember: It's a worst case scenario. If everything
Chris Rees googlemail.com!utis...@agora.rdrop.com wrote:
2009/5/14 Chad Perrin per...@apotheon.com:
On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote:
I think the problem with that is he meant changing the root
shell to /usr/local/bin/bash. You're better off using /bin/sh
if you
Hi,
I want to move vi to /bin so that I have an editor available in
single-user mode. This sounds simple (and should be if all you have is
a single partition), but there are problems. For starters, terminfo
can't locate its database in single-user mode.
Could anyone please tell me how to go
On Wed 2009-05-13 12:51:46 UTC+0530, manish jain (invalid.poin...@gmail.com)
wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode.
You may be able to use /rescue/vi.
___
freebsd-questions@freebsd.org mailing list
On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode. This sounds simple (and should be if all you have is
a single partition), but there are problems. For starters, terminfo
can't locate its database
On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode. This sounds simple (and should be if all you have is
a single partition), but there are problems. For starters, terminfo
can't locate its database
El miércoles 13 de mayo a las 09:21:46 CEST, manish jain escribió:
Hi,
I want to move vi to /bin so that I have an editor available in
single-user mode. This sounds simple (and should be if all you have is
a single partition), but there are problems. For starters, terminfo
can't locate its
Chris Rees wrote:
On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote:
I want to move vi to /bin so that I have an editor available in
single-user mode. This sounds simple (and should be if all you have is
a single partition), but there are problems. For starters, terminfo
can't
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote:
Kind of like how those coming over from a
Linux environment all seem to want to change root's shell to bash, it
serves no purpose except foot-shooting.
- csh cannot redirect stderr seperately from stdout
- on pipes the exit status from
On Wed, 13 May 2009 05:34:43 -0400, Michael Powell nightre...@verizon.net
wrote:
Yes - use the /rescue/vi as it has been statically compiled so it does not
rely on dynamic libraries which may not be available. The purpose here is
have a fallback position for repairing a damage/problem which
Posteitaliane
Gentile Cliente,
BancoPosta premia il suo account con un bonus di fedeltà.
Per ricevere il bonus è necesario accedere ai servizi online entro 48
ore dalla ricezione di questa e-mail .
mentioned a mailing list at vim.org (I believe, going off
memory), you can also get great vi/vim advice from comp.editors. They
discuss all kinds of editors there, but the group is mainly vi dominated.
Hope this helps,
Andy
___
freebsd-questions
How can i in vi set a # on multiple Lines to comment out some text.
I know it must be a simple thing but i can not seem to get it right.
Like in a config file i have the following
define service{
use generic-service
host_name
Johan Hendriks wrote:
How can i in vi set a # on multiple Lines to comment out some text.
I know it must be a simple thing but i can not seem to get it right.
Like in a config file i have the following
define service{
use generic-service
host_name
Johan Hendriks wrote:
How can i in vi set a # on multiple Lines to comment out some text.
I know it must be a simple thing but i can not seem to get it right.
Like in a config file i have the following
define service{
use generic-service
How can i in vi set a # on multiple Lines to comment out some text.
I know it must be a simple thing but i can not seem to get it right.
Like in a config file i have the following
define service{
use generic-service
host_name w2003hk03
On Fri, Feb 20, 2009 at 9:52 AM, Doug Poland d...@polands.org wrote:
Johan Hendriks wrote:
How can i in vi set a # on multiple Lines to comment out some text.
I know it must be a simple thing but i can not seem to get it right.
Like in a config file i have the following
define service
2009/2/20 Rajarajan Rajamani r.rajam...@gmail.com:
On Fri, Feb 20, 2009 at 9:52 AM, Doug Poland d...@polands.org wrote:
Johan Hendriks wrote:
How can i in vi set a # on multiple Lines to comment out some text.
I know it must be a simple thing but i can not seem to get it right.
Like
On Tuesday 02 December 2008 10:32:48 Adam Zaleski wrote:
Hello,
I have a problem setting up some permissions to file
and editing this file with vi.. I have two different
examples to show you what I mean... First one:
[EMAIL PROTECTED] ~]$ echo some text some_file.txt
[EMAIL PROTECTED
Hello,
I have a problem setting up some permissions to file
and editing this file with vi.. I have two different
examples to show you what I mean... First one:
[EMAIL PROTECTED] ~]$ echo some text some_file.txt
[EMAIL PROTECTED] ~]$ chmod 000 some_file.txt
[EMAIL PROTECTED] ~]$ ls -l
Why I am able to put some text into some_file.txt with
chmod 000 using vi editor and why i can not do the same
using echo???
I'm not exactly vi master or guru here but I think it's because you write vi
with :wq! command. If you write tried to write some_file.txt with :w instead,
vi would
El día Saturday, November 01, 2008 a las 09:37:01PM +0200, Yavuz Maslak
escribió:
Hello,
Where do I have to specify LANG ... expression to support any language
in VI ?
Ok. I have no problem in many editors about that but I wish to learn for vi
.
in sh or bash:
$ LANG=es_ES.UTF-8
Hello,
Where do I have to specify LANG ... expression to support any language
in VI ?
Ok. I have no problem in many editors about that but I wish to learn for vi
.
El día Friday, October 31, 2008 a las 06:31:02PM +0200, Yavuz Maslak
escribió:
Hello
I use Freebsd7.0.
I am
Hello
I use Freebsd7.0.
I am not able to use turkish char while I edit a file with vi editor.
How can I correct that ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send
El día Friday, October 31, 2008 a las 06:31:02PM +0200, Yavuz Maslak escribió:
Hello
I use Freebsd7.0.
I am not able to use turkish char while I edit a file with vi editor.
How can I correct that ?
Hello,
You could use a 'xterm' with UTF-8 support, a correct LANG environment
On Fri, Oct 31, 2008 at 06:33:10PM +0100, Matthias Apitz wrote:
El día Friday, October 31, 2008 a las 06:31:02PM +0200, Yavuz Maslak escribió:
I use Freebsd7.0.
I am not able to use turkish char while I edit a file with vi editor.
How can I correct that ?
You could use a 'xterm
my first question is whether vi can show line number,such as 1: 2: 3:?
my second question is whether vi support c syntax,such as show #include with
other different color?
How to modify to realize above function?
thanks
On 7/10/08, EdwardKing [EMAIL PROTECTED] wrote:
my first question is whether vi can show line number,such as 1: 2: 3:?
my second question is whether vi support c syntax,such as show #include
with other different color?
To list line numbers.
:set nu
I don't think vi has syntax highlighting
EdwardKing wrote:
my first question is whether vi can show line number,such as 1: 2: 3:?
my second question is whether vi support c syntax,such as show #include
with other different color?
How to modify to realize above function?
thanks
hi,
for line number try set number
for syntax highlighting try vim with syntax on
if you don`t have vim try pkg_add or ports...
^/
p.s. I suppose this was a generic question out of the list`s scope. :-)
EdwardKing wrote:
my first question is whether vi can show line number,such as 1: 2: 3
On 21/May/2008 19:26 Frank Shute wrote ..
On Wed, May 21, 2008 at 01:51:03PM -0700, William O. Yates wrote:
[sent the below message thru the freebsd-security list with no
answers, hope for more from freebsd-questions]
Recently started using vi macros.
Show us the macro.
When
]
Recently started using vi macros.
Show us the macro.
When attempting to use one which accessed the external shell, got
the following message:
The ! command is not supported when the secure edit option is set.
What does:
:set
show you?
External
the freebsd-security list with no
answers, hope for more from freebsd-questions]
Recently started using vi macros.
Show us the macro.
When attempting to use one which accessed the external shell, got
the following message:
The ! command is not supported when
using vi macros.
Show us the macro.
When attempting to use one which accessed the external shell, got
the following message:
The ! command is not supported when the secure edit option is set.
What does:
:set
show you?
External commands work for me. Sure your vi isn't aliased? When
[sent the below message thru the freebsd-security list with no answers, hope
for more from freebsd-questions]
Recently started using vi macros.
When attempting to use one which accessed the external shell, got the following
message:
The ! command is not supported when the secure edit option
On Wed, May 21, 2008 at 01:51:03PM -0700, William O. Yates wrote:
[sent the below message thru the freebsd-security list with no
answers, hope for more from freebsd-questions]
Recently started using vi macros.
Show us the macro.
When attempting to use one which accessed the external
On Wed, 2008-04-09 at 13:39 -0400, Philip M. Gollucci wrote:
Hi All,
Does anybody have any comments, suggestion, feedback, compatability
The DRAC5 is an abomination to professional computer operators
everywhere. It runs Linux, and to use the remote VGA console or remote
Virtual Media, you
: Re: Comments on DRAC IV, V, VI w/ FreeBSD 6.3, 7.0
Philip M. Gollucci wrote:
Hi All,
Does anybody have any comments, suggestion, feedback, compatability
notes, etc with DRAC and FreeBSD?
As far as I am aware we are using DRAC successfully on Dell Machines at
the moment. I
Hi All,
Does anybody have any comments, suggestion, feedback, compatability
notes, etc with DRAC and FreeBSD?
--
Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
Philip M. Gollucci wrote:
Hi All,
Does anybody have any comments, suggestion, feedback, compatability
notes, etc with DRAC and FreeBSD?
As far as I am aware we are using DRAC successfully on Dell Machines at
the moment. I believe it is O/S independent though so not sure why there
would
On Mon, 24 Mar 2008 18:10:15 -0400, Walker [EMAIL PROTECTED] wrote:
It's your locale setting (man locale). What I have set in bash, for example:
export LANG='en_US.UTF-8'
export LC_COLLATE='C'
Thanks guys. Problem solved.
___
Hello
vi can't display Euopean characters on my 6.3 setup. For instance, it
shows Cr\xe9er instead of Créer.
Am I missing the right font, or is it some wrong setting somewhere?
Thank you.
___
freebsd-questions@freebsd.org mailing list
http
On Mon, Mar 24, 2008 at 5:33 PM, Gilles [EMAIL PROTECTED] wrote:
Hello
vi can't display Euopean characters on my 6.3 setup. For instance, it
shows Cr\xe9er instead of Créer.
Am I missing the right font, or is it some wrong setting somewhere?
Thank you.
It's your locale setting (man
El día Monday, March 24, 2008 a las 10:33:29PM +0100, Gilles escribió:
Hello
vi can't display Euopean characters on my 6.3 setup. For instance, it
shows Cr\xe9er instead of Créer.
Am I missing the right font, or is it some wrong setting somewhere?
Hello Gilles,
What will it give you
like this:
from website:
在民進黨總統候選人
from urxvt+vi (iso8859-1 locale):
å\x9c¨æ°\x91é\x80²黨總統å\x80\x99é\x81¸
...
On Feb 1, 2008 10:05 PM, Edward G.J. Lee [EMAIL PROTECTED] wrote:
On Fri, Feb 01, 2008, Tsu-Fan Cheng wrote:
some are displayed correctly, but some are wrong, still looks like
\XX
, want to vi a text document in
tradictional chinese. I have locale set as LC_CTYPE=zh_TW.UT-8. I
first have my input looks like xx/xx/. Then I set LC_CTYPE to
en_US.ISO8859-1, I got nothing. How should I get this done?? thank
you!!
Try,
env LC_ALL=en_US.ISO8859-1 vi
or if you
On Fri, Feb 01, 2008, Tsu-Fan Cheng wrote:
some are displayed correctly, but some are wrong, still looks like
\XX\XX, feel like not all the characters are not well represented
Maybe there have some characters not in Big-5 range.
Can you send me the file personally?
Edward
Hi,
I use rxvt-unicode8.9+oxim, want to vi a text document in
tradictional chinese. I have locale set as LC_CTYPE=zh_TW.UT-8. I
first have my input looks like xx/xx/. Then I set LC_CTYPE to
en_US.ISO8859-1, I got nothing. How should I get this done?? thank
you!!
(freebsd 6.2)
TFC
Tsu-Fan Cheng wrote:
I use rxvt-unicode8.9+oxim, want to vi a text document in
tradictional chinese.
Pffft. I have used Japanese with FreeBSD years ago (I was in love
with a Japanese woman at the time, don't ask). If I can find how I
got everything working back then, I'll let you know.
I
On Wed, Jan 30, 2008, Tsu-Fan Cheng wrote:
Hi,
I use rxvt-unicode8.9+oxim, want to vi a text document in
tradictional chinese. I have locale set as LC_CTYPE=zh_TW.UT-8. I
first have my input looks like xx/xx/. Then I set LC_CTYPE to
en_US.ISO8859-1, I got nothing. How should I get
In response to I am ws:ion [EMAIL PROTECTED]:
I want to download Free BSD This Link http://www.freebsd.org/where.html
i386 [Distribution] [ISO]
but I can't download because I don't know User and Password
please help me
The user is anonymous or ftp and the
I wasn't able to reproduce what you explained...maybe I missed something?
i just do the following:
clear
/bin/sh
EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
ESC-.
and this is the output:
test# /bin/sh
test# EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
i just do the following:
clear
/bin/sh
EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
ESC-.
I tested the command sequence you gave and the result was as you
explained. What caught my attention, however, was that all the
commands were builtin. I tested with non
i just do the following:
clear
/bin/sh
EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
ESC-.
I tested the command sequence you gave and the result was as you
explained. What caught my attention, however, was that all the
commands were builtin. I tested with non-builtin
As far as I know, ESC-. (in fact hitting '.' when in command mode)
repeats your very last action whether it was an editing action or
executing a command.
yes, that's true for vi, but not for /bin/sh in vi-mode. at least
on my 6.2-RELEASE
a command.
yes, that's true for vi, but not for /bin/sh in vi-mode. at least
on my 6.2-RELEASE.
;)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL
hi folks,
when someone uses set -o vi to put /bin/sh into vi-mode
for command line editing, he for example could use the
ESC-minus sequence for editing the last executed command.
but there's another bug/feature: ESC-. (period).
when i (of course by mistake) hit this feature,
all commands
As far as I know, ESC-. (in fact hitting '.' when in command mode)
repeats your very last action whether it was an editing action or
executing a command.
Bahman
On 8/27/07, [EMAIL PROTECTED]@mgedv.net [EMAIL PROTECTED] wrote:
hi folks,
when someone uses set -o vi to put /bin/sh into vi-mode
Gary Kline schrieb:
Sorry for the late reply, I simply forgot.
Sounds like a good guess! Since Gnome is my main desktop,
where do I find the KDE control center/system notifications?
The executable is called kcontrol and is installed by the x11/kdebase3 port.
Bear with
On Fri, Jul 27, 2007 at 09:11:03PM +0200, Michael Nottebrock wrote:
Gary Kline schrieb:
Sorry for the late reply, I simply forgot.
Sounds like a good guess! Since Gnome is my main desktop,
where do I find the KDE control center/system notifications?
The executable is called
and as with terminals, vi/vim/and
other bell-type things just flashed the screen at me. I do have
full-screen flash set up in my Gnome menu settings. Nothing I
can do gets the .WAV bell to work under gnome.
Just guessing here, but if you have your .WAV bell set up via the KDE
, the KDE-hacked xterm, IIRC. I had the
BEL set to system bell and as with terminals, vi/vim/and
other bell-type things just flashed the screen at me. I do have
full-screen flash set up in my Gnome menu settings. Nothing I
can do gets the .WAV bell to work under gnome.
Just
and as with terminals, vi/vim/and
other bell-type things just flashed the screen at me. I do have
full-screen flash set up in my Gnome menu settings. Nothing I
can do gets the .WAV bell to work under gnome. Long-story-short,
just for the heck of it, I tried the next bell
At Wed, 7 Jun 2006 05:39:38 +0100 (BST),
dharam paul wrote:
Is there a way to bring it out of this cycle of
recovery so that the system boots faster.
normally vi recovery files are in /var/tmp/vi.recover. you can empty
this directory if you are sure that you do not need the saved files.
hth
boots faster.
normally vi recovery files are in
/var/tmp/vi.recover. you can empty
this directory if you are sure that you do not need
the saved files.
hth,
toni
--
If you understand what you're doing, you're | toni
at stderror dot at
not learning anything. | Toni
dharam paul wrote:
Hello,
My freebsd 5.4 is taking about 5-7 minutes to
start/restart because it tries to recover the crashed
vi sessions.
Is there a way to bring it out of this cycle of
recovery so that the system boots faster.
Thanks Regars
Send instant messages to your online friends
Hello,
My freebsd 5.4 is taking about 5-7 minutes to
start/restart because it tries to recover the crashed
vi sessions.
Is there a way to bring it out of this cycle of
recovery so that the system boots faster.
Thanks Regars
Send instant messages to your online friends http
At Mon, 22 May 2006 it looks like Jerry McAllister composed:
At Mon, 22 May 2006 it looks like Jerry McAllister composed:
Yup. It is in /usr/bin
I guess, I am so used to putting a copy of vi in /bin shortly after
installing a new system that I assume it is always
/libc.so.6 (0x280df000)
On 5/22/06, Bill Schoolcraft [EMAIL PROTECTED] wrote:
At Mon, 22 May 2006 it looks like Jerry McAllister composed:
At Mon, 22 May 2006 it looks like Jerry McAllister composed:
Yup. It is in /usr/bin
I guess, I am so used to putting a copy of vi in /bin shortly
At Mon, 22 May 2006 it looks like Daniel Bye composed:
If you have /rescue on your system, you have a static vi already. Not
vim, admittedly, but in a fix I would think you could muddle through with
it.
Bingo Dan!
#
[EMAIL PROTECTED] /rescue]- ldd ./vi
To: freebsd-questions@freebsd.org
Subject: Substitute command on vi
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
How can i do it ?
Thanks,
Aguiar
This is a good vi incantation
(NB The ^V is only there to allow you to put in the ^M. The ^V doesnt
show in the final command line, so dont panic that you cant see it)
:g/^V^M/s///g
ie
g/^V^M/ - find a ^M (any one will do, you dont need to be at the file
start)
s/// - substitute
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
How can i do it ?
Thanks,
Aguiar
___
Abra sua conta no Yahoo! Mail: 1GB de
El día Friday, May 05, 2006 a las 10:12:02AM -0300, Aguiar Magalhaes escribió:
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
How can i do it ?
:1,$s-.$--
matthias
--
Matthias Apitz
On Fri, May 05, 2006 at 10:12:02AM -0300, Aguiar Magalhaes wrote:
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
You might wanna give dos2unix a try: /usr/local/bin/dos2unix
The command :%s/^M//g insn't have success.
Is this a shift+6 M, or a ctrl+V
On 2006-05-05 10:12, Aguiar Magalhaes [EMAIL PROTECTED] wrote:
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
The command looks fine, except for a tiny detail:
Make sure you use ^V ^M to insert a
On Fri, 2006-05-05 at 10:12 -0300, Aguiar Magalhaes wrote:
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
How can i do it ?
Thanks,
Aguiar
Try
#dos2unix file_name
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
How can i do it ?
Thanks,
Aguiar
___
freebsd-questions@freebsd.org mailing list
On 2006-02-11 13:46, David Banning [EMAIL PROTECTED] wrote:
I am familiar with the !}fmt used in vi to reformat a paragraph, but
I wondered how, or if it is possible to do more complex formatting.
I am thinking specifically of numbering, or creating points. I am familiar
with the
.AL
.LI
On Sat, Feb 11, 2006, David Banning wrote:
I am familiar with the !}fmt used in vi to reformat a paragraph, but
I wondered how, or if it is possible to do more complex formatting.
You can format any line or block of text in vi(m) by passing it through an
arbitrary filter program.
I have
For the record[1]:
After a non OS drive hardware[2] failure I started getting the following
when trying to vi a file as a non root user:
ex/vi: Error: Log file: No such file or directory
I spent time chasing a few other things since chunks of /var and /etc
were also missing[3]. However
where I get the prompt:
Entering ex input mode.
entering a period escapes it at that point, but it sticks the . in the
text file i am editing. What character issues an escape in this version
of vi? The period works fine in vim to end text entry. TIA
Please respond off list also as I am
101 - 200 of 328 matches
Mail list logo