Re: The question of moving vi to /bin

2009-06-24 Thread Jonathan McKeown
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

Re: The question of moving vi to /bin

2009-06-24 Thread Chad Perrin
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

Re: The question of moving vi to /bin

2009-06-24 Thread Chad Perrin
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

Re: The question of moving vi to /bin

2009-06-24 Thread Bruce Cran
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

Re: The question of moving vi to /bin

2009-06-24 Thread Manish Jain
) 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

Re: The question of moving vi to /bin

2009-06-24 Thread John L. Templer
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

Re: How to move vi to /bin

2009-05-19 Thread Chris Rees
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

Re: How to move vi to /bin

2009-05-15 Thread Manish Jain
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

Re: How to move vi to /bin

2009-05-15 Thread Matthew Seaman
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

Re: How to move vi to /bin

2009-05-15 Thread perryh
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

Re: How to move vi to /bin

2009-05-15 Thread Chad Perrin
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

Re: How to move vi to /bin

2009-05-15 Thread Mel Flynn
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

Re: How to move vi to /bin

2009-05-15 Thread Michael Powell
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

Re: How to move vi to /bin

2009-05-14 Thread Chris Rees
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

Re: How to move vi to /bin

2009-05-14 Thread Chad Perrin
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

Re: How to move vi to /bin

2009-05-14 Thread Chris Rees
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

Re: How to move vi to /bin

2009-05-14 Thread Mel Flynn
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

Re: How to move vi to /bin

2009-05-14 Thread Mel Flynn
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

Re: How to move vi to /bin

2009-05-14 Thread Polytropon
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

Re: How to move vi to /bin

2009-05-14 Thread perryh
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

How to move vi to /bin

2009-05-13 Thread manish jain
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

Re: How to move vi to /bin

2009-05-13 Thread andrew clarke
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

Re: How to move vi to /bin

2009-05-13 Thread Benjamin M. A'Lee
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

Re: How to move vi to /bin

2009-05-13 Thread Chris Rees
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

Re: How to move vi to /bin

2009-05-13 Thread Jose Garcia Juanino
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

Re: How to move vi to /bin

2009-05-13 Thread Michael Powell
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

Re: How to move vi to /bin

2009-05-13 Thread Mel Flynn
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

Re: How to move vi to /bin

2009-05-13 Thread Polytropon
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

Premio vi aspetta!

2009-04-06 Thread MondoBancoPosta
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 .

Re: RE: vi set comment #

2009-02-21 Thread af300wsm
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

vi set comment #

2009-02-20 Thread Johan Hendriks
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

Re: vi set comment #

2009-02-20 Thread Doug Poland
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

Re: vi set comment #

2009-02-20 Thread DAve
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

RE: vi set comment #

2009-02-20 Thread Johan Hendriks
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

Re: vi set comment #

2009-02-20 Thread Rajarajan Rajamani
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

Re: vi set comment #

2009-02-20 Thread Javier Perez
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

Re: Problem with permissions and vi

2008-12-02 Thread Mel
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

Problem with permissions and vi

2008-12-02 Thread Adam Zaleski
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

Re: Problem with permissions and vi

2008-12-02 Thread Anthony M. Rasat
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

Re: about vi editor and turkish char

2008-11-03 Thread Matthias Apitz
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

Re: about vi editor and turkish char

2008-11-01 Thread Yavuz Maslak
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

about vi editor and turkish char

2008-10-31 Thread Yavuz Maslak
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

Re: about vi editor and turkish char

2008-10-31 Thread Matthias Apitz
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

Re: about vi editor and turkish char

2008-10-31 Thread Chad Perrin
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

how to set vi line number?

2008-07-10 Thread EdwardKing
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

Re: how to set vi line number?

2008-07-10 Thread sac u
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

Re: how to set vi line number?

2008-07-10 Thread Paul Procacci
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

Re: how to set vi line number?

2008-07-10 Thread alt127
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

Re: vi secure

2008-05-22 Thread William O. Yates
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

Re: vi secure

2008-05-22 Thread Frank Shute
] 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

Re: vi secure

2008-05-22 Thread Christian Zachariasen
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

Re: vi secure

2008-05-22 Thread Derek Ragona
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

vi secure

2008-05-21 Thread William O. Yates
[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

Re: vi secure

2008-05-21 Thread Frank Shute
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

Re: Comments on DRAC IV, V, VI w/ FreeBSD 6.3, 7.0

2008-04-11 Thread Brian A. Seklecki
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

2008-04-10 Thread Alpha 4299
: 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

Comments on DRAC IV, V, VI w/ FreeBSD 6.3, 7.0

2008-04-09 Thread Philip M. Gollucci
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.

Re: Comments on DRAC IV, V, VI w/ FreeBSD 6.3, 7.0

2008-04-09 Thread Terry Sposato
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

Re: [6.3/vi] European characters?

2008-03-25 Thread Gilles
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. ___

[6.3/vi] European characters?

2008-03-24 Thread Gilles
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

Re: [6.3/vi] European characters?

2008-03-24 Thread Walker
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

Re: [6.3/vi] European characters?

2008-03-24 Thread Matthias Apitz
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

Re: vi+urxvt8.9+oxim for traditional chinese, HOW??

2008-02-02 Thread Tsu-Fan Cheng
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

Re: vi+urxvt8.9+oxim for traditional chinese, HOW??

2008-02-01 Thread Tsu-Fan Cheng
, 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

Re: vi+urxvt8.9+oxim for traditional chinese, HOW??

2008-02-01 Thread Edward G.J. Lee
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

vi+urxvt8.9+oxim for traditional chinese, HOW??

2008-01-30 Thread Tsu-Fan Cheng
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

Re: vi+urxvt8.9+oxim for traditional chinese, HOW??

2008-01-30 Thread Alphons Fonz van Werven
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

Re: vi+urxvt8.9+oxim for traditional chinese, HOW??

2008-01-30 Thread Edward G.J. Lee
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

Problem fetching iso vi ftp (was Re: Please Help me...)

2007-09-14 Thread Bill Moran
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

Re: /bin/sh vi mode command line editing and the period

2007-08-29 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-29 Thread Bahman M.
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

Re: /bin/sh vi mode command line editing and the period

2007-08-29 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-28 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-28 Thread Bahman M.
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

/bin/sh vi mode command line editing and the period

2007-08-27 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-27 Thread Bahman M.
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

Re: [kde-freebsd] BEL (primarily for vi).

2007-07-27 Thread Michael Nottebrock
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

Re: [kde-freebsd] BEL (primarily for vi).

2007-07-27 Thread Gary Kline
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

Re: [kde-freebsd] BEL (primarily for vi).

2007-07-23 Thread Michael Nottebrock
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

Re: [kde-freebsd] BEL (primarily for vi).

2007-07-23 Thread Gary Kline
, 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

BEL (primarily for vi).

2007-07-22 Thread Gary Kline
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

Re: slow system startup; recovering vi sessions

2006-06-07 Thread Toni Schmidbauer
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

Re: slow system startup; recovering vi sessions

2006-06-07 Thread dharam paul
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

Re: slow system startup; recovering vi sessions

2006-06-07 Thread Eric Schuele
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

slow system startup; recovering vi sessions

2006-06-06 Thread dharam paul
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

Re: MESS (statically compiled vi )

2006-05-22 Thread Bill Schoolcraft
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

Re: MESS (statically compiled vi )

2006-05-22 Thread Andy Greenwood
/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

Re: MESS (BINGO! /rescue/vi )

2006-05-22 Thread Bill Schoolcraft
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

RE: Substitute command on vi

2006-05-08 Thread Ilias Sachpazidis
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

RE: Substitute command on vi

2006-05-07 Thread Murray Taylor
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

Substitute command on vi

2006-05-05 Thread Aguiar Magalhaes
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

Re: Substitute command on vi

2006-05-05 Thread guru
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

Re: Substitute command on vi

2006-05-05 Thread Riemer Palstra
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

Re: Substitute command on vi

2006-05-05 Thread Giorgos Keramidas
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

Re: Substitute command on vi

2006-05-05 Thread Kalashnikov Ilya
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

re: Substitute command on vi

2006-05-05 Thread Denis R.
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

Re: formatting text from within vi

2006-02-11 Thread Giorgos Keramidas
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

Re: formatting text from within vi

2006-02-11 Thread Bill Campbell
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

ex/vi: Error: Log file: No such file or directory (solved)

2005-12-29 Thread Jed Clear
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

vi escape command from EX mode in script

2005-11-27 Thread Ronny Hippler
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

<    1   2   3   4   >