Re: nano vs VI
On 01/05/2014 03:37 AM, Osamu Aoki wrote: > Choose 1-7 []: 6 > $ dpkg -S select-editor > sensible-utils: /usr/bin/select-editor > sensible-utils: /usr/share/man/man1/select-editor.1.gz > > As I see its changelog, it is only in testing/sid: so, it isn't in wheezy .. that's what I figured out:) # select-editor -su: select-editor: command not found root@pauls-server:~# apt-get install sensible-utils Reading package lists... Done Building dependency tree Reading state information... Done sensible-utils is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@pauls-server:~# dpkg -S select-editor dpkg-query: no path found matching pattern *select-editor* root@pauls-server:~# cat /etc/os-r* PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=debian ANSI_COLOR="1;31" HOME_URL="http://www.debian.org/"; SUPPORT_URL="http://www.debian.org/support/"; BUG_REPORT_URL="http://bugs.debian.org/"; -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c94b97.7010...@gmail.com
Re: nano vs VI
On Thu, Jan 02, 2014 at 11:17:24AM +, Curt wrote: > On 2014-01-02, Paul Cartwright wrote: > > On 01/01/2014 08:01 PM, John Hasler wrote: > >> man select-editor > > man select-editor > > No manual entry for select-editor > > I think you need to install 'sensible-utils', which provides > > /usr/bin/sensible-browser > /usr/bin/sensible-editor > /usr/bin/sensible-pager > > I guess it's the sensible thing to do (I haven't done it!) > > Oops; he said 'select-editor'. Mmm, maybe he meant what I 'read' 'cause I > can't find select-editor anywhere. I never heard about it :-) but I have it here. $ select-editor Select an editor. To change later, run 'select-editor'. 1. /bin/ed 2. /usr/bin/emacs23 3. /usr/bin/mcedit 4. /usr/bin/vim.basic 5. /usr/bin/vim.gtk 6. /usr/bin/vim.nox 7. /usr/bin/vim.tiny Choose 1-7 []: 6 $ dpkg -S select-editor sensible-utils: /usr/bin/select-editor sensible-utils: /usr/share/man/man1/select-editor.1.gz As I see its changelog, it is only in testing/sid: sensible-utils (0.0.9) unstable; urgency=low * Fix bashism in select-editor Patch by Thorsten Glaser Closes: #711321 -- Anibal Monsalve Salazar Thu, 06 Jun 2013 22:19:39 +1000 sensible-utils (0.0.8) unstable; urgency=low * Merge 0.0.7ubuntu1 - add select-editor (Closes: #482774) - modify sensible-editor to pick the editor from select-editor * Removes reference to non-existent BROWSER documentation in environ(7) Patch by Matt Kraai Closes: #567250 * Commented-out Vcs-* headers Closes: #661752 * Standards Version is 3.9.4 -- Anibal Monsalve Salazar Thu, 06 Jun 2013 12:27:15 +1000 Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20140105083749.GA6693@goofy
Re: nano vs VI
On 01/02/2014 07:25 AM, shawn wilson wrote: No idea. I compile vim on Debian for ruby support (command-t). Probably vim-gtk. So I'm putting this back on the list. On Jan 2, 2014 7:19 AM, "Paul Cartwright"wrote: On 01/02/2014 07:12 AM, shawn wilson wrote: On Jan 1, 2014 7:43 PM, "Paul Cartwright" wrote: > > On 01/01/2014 07:00 PM, Richard Hector wrote: > > Also perhaps: > > > > aptitude purge nano :-) > > > > Richard > thanks, I might do that also, since I use either VI or gedit.. > You do know about gvim right? not really.. should I? when I try to install it I get: apt-get install gvim Reading package lists... Done Building dependency tree Reading state information... Done Package gvim is a virtual package provided by: vim-gtk 2:7.3.547-7 vim-gnome 2:7.3.547-7 vim-athena 2:7.3.547-7 You should explicitly select one to install. so, which one is right? ok, so synaptics actually had VIM.. here is what I now have installed.. dpkg -l|grep vim ii vim 2:7.3.547-7 amd64 Vi IMproved - enhanced vi editor ii vim-addon-manager 0.5.2 all manager of addons for the Vim editor ii vim-common 2:7.3.547-7 amd64 Vi IMproved - Common files ii vim-gnome 2:7.3.547-7 amd64 Vi IMproved - enhanced vi editor - with GNOME2 GUI ii vim-gui-common 2:7.3.547-7 all Vi IMproved - Common GUI files ii vim-runtime 2:7.3.547-7 all Vi IMproved - Runtime files ii vim-scripts 20121007 all plugins for vim, adding bells and whistles ii vim-tiny 2:7.3.547-7 amd64 Vi IMproved - enhanced vi editor - compact version I tried to vim a file.. nice interface! I'll have to play with it. -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c55ce0.5090...@gmail.com
Re: nano vs VI
No idea. I compile vim on Debian for ruby support (command-t). Probably vim-gtk. So I'm putting this back on the list. On Jan 2, 2014 7:19 AM, "Paul Cartwright" wrote: > On 01/02/2014 07:12 AM, shawn wilson wrote: > > > On Jan 1, 2014 7:43 PM, "Paul Cartwright" wrote: > > > > On 01/01/2014 07:00 PM, Richard Hector wrote: > > > Also perhaps: > > > > > > aptitude purge nano :-) > > > > > > Richard > > thanks, I might do that also, since I use either VI or gedit.. > > > > You do know about gvim right? > > not really.. should I? > when I try to install it I get: > apt-get install gvim > Reading package lists... Done > Building dependency tree > Reading state information... Done > Package gvim is a virtual package provided by: > vim-gtk 2:7.3.547-7 > vim-gnome 2:7.3.547-7 > vim-athena 2:7.3.547-7 > You should explicitly select one to install. > > > so, which one is right? > > -- > Paul Cartwright > Registered Linux User #367800 and new counter #561587 > >
Re: nano vs VI
On 01/02/2014 07:12 AM, shawn wilson wrote: On Jan 1, 2014 7:43 PM, "Paul Cartwright"wrote: > > On 01/01/2014 07:00 PM, Richard Hector wrote: > > Also perhaps: > > > > aptitude purge nano :-) > > > > Richard > thanks, I might do that also, since I use either VI or gedit.. > You do know about gvim right? gvim, is basically vim-tiny? portable? If I travel, I either have my linux laptop., or android tablet.. -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c55a64.5080...@gmail.com
Re: nano vs VI
On Jan 1, 2014 7:43 PM, "Paul Cartwright" wrote: > > On 01/01/2014 07:00 PM, Richard Hector wrote: > > Also perhaps: > > > > aptitude purge nano :-) > > > > Richard > thanks, I might do that also, since I use either VI or gedit.. > You do know about gvim right?
Re: nano vs VI
On 2014-01-02, Paul Cartwright wrote: > On 01/01/2014 08:01 PM, John Hasler wrote: >> man select-editor > man select-editor > No manual entry for select-editor I think you need to install 'sensible-utils', which provides /usr/bin/sensible-browser /usr/bin/sensible-editor /usr/bin/sensible-pager I guess it's the sensible thing to do (I haven't done it!) Oops; he said 'select-editor'. Mmm, maybe he meant what I 'read' 'cause I can't find select-editor anywhere. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnlcaim8.3o4.cu...@einstein.electron.org
Re: nano vs VI
On 01/01/2014 08:01 PM, John Hasler wrote: > man select-editor man select-editor No manual entry for select-editor that's OK, I already did the .bashrc EDITOR=vi -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c4bdc2.5050...@gmail.com
Re: nano vs VI
man select-editor -- John Hasler jhas...@newsguy.com Elmwood, WI USA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87d2kb9oz1@thumper.dhh.gt.org
Re: nano vs VI
On 01/01/2014 07:00 PM, Richard Hector wrote: > Also perhaps: > > aptitude purge nano :-) > > Richard thanks, I might do that also, since I use either VI or gedit.. -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c4b62b.3010...@gmail.com
Re: nano vs VI
On 02/01/14 04:20, Markus Schönhaber wrote: > 01.01.2014 15:09, Andreas Rönnquist: >> On Wed, 01 Jan 2014 08:59:24 -0500, >> Paul Cartwright wrote: >> >>> ok, so I have a wheezy setup. When I do a crontab -e to EDIT my >>> crontab, it brings up a nano session. I'm a VI kind guy, how do I >>> change that so VI comes up?? >>> >> >> It gets the editor from the EDITOR environment variable - to change to >> vi, do something like >> >> export EDITOR=vi >> >> - too keep this you can for example do it in your .bashrc. > > ... and if you rather want to change the system default, do > > update-alternatives --config editor > > as root. Also perhaps: aptitude purge nano :-) Richard -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c4ac09.8000...@walnut.gen.nz
Re: nano vs VI
On 01/01/2014 10:20 AM, Markus Schönhaber wrote: > ... and if you rather want to change the system default, do > > update-alternatives --config editor > > as root. > > P.S.: Sorry Andeas for the PM. Shouldn't have happened, but the brain > controlling my fingers seems to be still stuck in 2013... thank you , that worked! nice command.. -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c4603d.4070...@gmail.com
Re: nano vs VI
01.01.2014 15:09, Andreas Rönnquist: > On Wed, 01 Jan 2014 08:59:24 -0500, > Paul Cartwright wrote: > >> ok, so I have a wheezy setup. When I do a crontab -e to EDIT my >> crontab, it brings up a nano session. I'm a VI kind guy, how do I >> change that so VI comes up?? >> > > It gets the editor from the EDITOR environment variable - to change to > vi, do something like > > export EDITOR=vi > > - too keep this you can for example do it in your .bashrc. ... and if you rather want to change the system default, do update-alternatives --config editor as root. P.S.: Sorry Andeas for the PM. Shouldn't have happened, but the brain controlling my fingers seems to be still stuck in 2013... -- Regards mks -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c4322b.6010...@list-post.mks-mail.de
Re: nano vs VI
Paul Cartwright writes: > ok, so I have a wheezy setup. When I do a crontab -e to EDIT my crontab, > it brings up a nano session. I'm a VI kind guy, how do I change that so > VI comes up?? Most generally, you should set the environmental variable EDITOR to be your favorite editor. For example, my ~/.profile has the line EDITOR=emacs On Debian specifically, you can use update-alternatives(8) to change what /etc/alternatives/editor symbolically links to. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87bnzvdbui@abbey.wistly.net
Re: nano vs VI
On Wed, 01 Jan 2014 08:59:24 -0500, Paul Cartwright wrote: >ok, so I have a wheezy setup. When I do a crontab -e to EDIT my >crontab, it brings up a nano session. I'm a VI kind guy, how do I >change that so VI comes up?? > It gets the editor from the EDITOR environment variable - to change to vi, do something like export EDITOR=vi - too keep this you can for example do it in your .bashrc. -- Andreas Rönnquist mailingli...@gusnan.se gus...@gusnan.se -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20140101150936.0b13e...@debian-workstation.lan
nano vs VI
ok, so I have a wheezy setup. When I do a crontab -e to EDIT my crontab, it brings up a nano session. I'm a VI kind guy, how do I change that so VI comes up?? -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52c41f3c.9050...@gmail.com