Re: Global indent

2014-09-13 Thread Albert van der Horst
In article , Anders Wegge Keller wrote: >On Sun, 24 Aug 2014 00:56:11 +1000 >Steven D'Aprano wrote: > >> Despite my comments, I don't actually have any objection to people who >> choose to use Emacs, or Vim, or edit their text files by poking the hard >> drive platter with a magnetised needle if

Re: Global indent

2014-08-24 Thread Joshua Landau
On 23 August 2014 22:55, Rustom Mody wrote: > On Sunday, August 24, 2014 2:27:56 AM UTC+5:30, Joshua Landau wrote: > >> Ay, so is any editor with an API. I use Sublime mostly because it's >> pretty, fast and has a Python-based API. The only actual feature it >> has that some others don't is multip

Re: Global indent

2014-08-23 Thread Marko Rauhamaa
Anders Wegge Keller : > Curiously enough, even today the same lousy kind of connections > prevail. We still have a sizeable modem bank at my job. We still do > our remote support over a telnet/ssh session. And we still are unable > to reliable get the connection speeds[2], that would make anythin

Re: Global indent

2014-08-23 Thread Anders Wegge Keller
On Sun, 24 Aug 2014 00:56:11 +1000 Steven D'Aprano wrote: > Despite my comments, I don't actually have any objection to people who > choose to use Emacs, or Vim, or edit their text files by poking the hard > drive platter with a magnetised needle if they prefer :-) But I do think > it's silly of

Re: Global indent

2014-08-23 Thread Rustom Mody
On Sunday, August 24, 2014 2:27:56 AM UTC+5:30, Joshua Landau wrote: > Ay, so is any editor with an API. I use Sublime mostly because it's > pretty, fast and has a Python-based API. The only actual feature it > has that some others don't is multiple selections, and even then a lot > do. You mean

Re: Global indent

2014-08-23 Thread Joshua Landau
On 23 August 2014 17:17, Christian Gollwitzer wrote: > Am 23.08.14 16:19, schrieb Joshua Landau: >> >> On 23 August 2014 10:41, Christian Gollwitzer wrote: >>> >>> Sometimes I impress my colleagues with what they call "magic", i.e. >>> creating >>> special repeated lists of numbers by a few keyst

Re: Global indent

2014-08-23 Thread Tim Chase
On 2014-08-23 15:19, Joshua Landau wrote: > I have yet to be truly impressed by Vim, in that Sublime Text with a > few extensions seems to do the same things just as easily Can it be run remotely in a tmux session which can be accessed via SSH from multiple machines? ;-) Using the command-line:

Re: Global indent

2014-08-23 Thread Tim Chase
On 2014-08-23 19:31, Steven D'Aprano wrote: > Sorry, but I have no idea what you mean by "orthogonal set of verbs > and nouns in an editing language". Can you explain? In the context of vi/vim, an "orthogonal set of verbs and nouns in an editing language" mean that you have a collection of verbs (

Re: Global indent [levity]

2014-08-23 Thread Peter Pearson
On Sat, 23 Aug 2014 19:08:10 +1000, Steven D'Aprano wrote: > Marko Rauhamaa wrote: >> Rob Gaddi : >> >>> Emacs and vim both have huge learning curves >> >> Really now? >> >> When you start emacs, it advises you to start the builtin tutorial. > > You need a tutorial for a text editor??? Did you

Re: Global indent

2014-08-23 Thread Christian Gollwitzer
Am 23.08.14 16:19, schrieb Joshua Landau: (Since this is already an editor war...) On 23 August 2014 10:41, Christian Gollwitzer wrote: Sometimes I impress my colleagues with what they call "magic", i.e. creating special repeated lists of numbers by a few keystrokes in gvim, and that has trigg

Re: Global indent

2014-08-23 Thread Christian Gollwitzer
Hi Steven, I agree with all you said. Am 23.08.14 16:56, schrieb Steven D'Aprano: Christian Gollwitzer wrote: There are ways to put these editors into Beginner's mode, for vim there is "evim", and for sure emacs has something similar, where the editor behaves more like you expect. In evim, thi

Re: Global indent

2014-08-23 Thread Seymore4Head
On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head wrote: >Is there a way to indent everything again? > >Say I have a while statement with several lines of code and I want to >add a while outside that. That means indenting everything. Is there >a global way to do that? I did two things. I decid

Re: Global indent

2014-08-23 Thread Steven D'Aprano
Christian Gollwitzer wrote: > Am 23.08.14 11:08, schrieb Steven D'Aprano: >> This is the moment that I decide to give up on Emacs and take up >> something trivial in comparison, like being a Soyuz pilot, если вы >> знаете, что я имею в виду. > > Well done, Steve! This is the exact reason that I d

Re: Global indent

2014-08-23 Thread Rustom Mody
On Saturday, August 23, 2014 2:38:10 PM UTC+5:30, Steven D'Aprano wrote: > Marko Rauhamaa wrote: > > Rob Gaddi : > >> Emacs and vim both have huge learning curves > > Really now? > > When you start emacs, it advises you to start the builtin tutorial. > You need a tutorial for a text editor??? >

Re: Global indent

2014-08-23 Thread Gene Heskett
On Saturday 23 August 2014 06:17:24 alister did opine And Gene did reply: > On Sat, 23 Aug 2014 18:19:21 +1000, Steven D'Aprano wrote: > > Rob Gaddi wrote: > >> Emacs and vim both have huge learning curves that I've decided > >> aren't worth climbing. > > > > In my opinion, they are designed for p

Re: Global indent

2014-08-23 Thread Joshua Landau
(Since this is already an editor war...) On 23 August 2014 10:41, Christian Gollwitzer wrote: > Sometimes I impress my colleagues with what they call "magic", i.e. creating > special repeated lists of numbers by a few keystrokes in gvim, and that has > triggered the request from them to learn a b

Re: Global indent

2014-08-23 Thread mm0fmf
On 22/08/2014 20:46, Seymore4Head wrote: http://gvim.en.softonic.com/ Has a snazzy look, but I think it is not compatible with Windows so it looks like I might have to try Emacs. Others will disagree but I find keeping Windows and *nix separate helps me a lot. So I'll use emacs on Linux fo

Re: Global indent

2014-08-23 Thread alister
On Sat, 23 Aug 2014 18:19:21 +1000, Steven D'Aprano wrote: > Rob Gaddi wrote: > >> Emacs and vim both have huge learning curves that I've decided aren't >> worth climbing. > > In my opinion, they are designed for people willing and able to commit > to memory dozens, even hundreds, of obscure key

Re: Global indent

2014-08-23 Thread Christian Gollwitzer
Am 23.08.14 11:08, schrieb Steven D'Aprano: I just started up emacs, and got a GUI window with an abstract picture of a gnu and a bunch of instructions which I didn't get a chance to read. I clicked on the text, and the instructions disappeared. I don't know how to get them back. They were replac

Re: Global indent

2014-08-23 Thread Steven D'Aprano
Dan Stromberg wrote: > The first time I saw vi, I hated it.  I thought "Why would anyone > actually choose such a terrible editor?" > > But then I was forced to use vi for a while,  and I'm glad I was.  I > choose it over other editors now.  vi/vim give you a pretty much > orthogonal set of verbs

Re: Global indent

2014-08-23 Thread Marko Rauhamaa
Steven D'Aprano : > Marko Rauhamaa wrote: >> When you start emacs, it advises you to start the builtin tutorial. > > You need a tutorial for a text editor??? > > If that's supposed to prove how easy Emacs is, you have failed > miserably. You see, I tend to read even the assembly instructions of I

Re: Global indent

2014-08-23 Thread Steven D'Aprano
Marko Rauhamaa wrote: > Rob Gaddi : > >> Emacs and vim both have huge learning curves > > Really now? > > When you start emacs, it advises you to start the builtin tutorial. You need a tutorial for a text editor??? If that's supposed to prove how easy Emacs is, you have failed miserably. Any

Re: Global indent

2014-08-23 Thread Steven D'Aprano
Rob Gaddi wrote: > Emacs and vim both have huge learning curves that I've decided aren't > worth climbing. In my opinion, they are designed for people willing and able to commit to memory dozens, even hundreds, of obscure key sequences to get the simplest thing done. They are not designed for e

Re: Global indent

2014-08-23 Thread Steven D'Aprano
Seymore4Head wrote: > Is there a way to indent everything again? > > Say I have a while statement with several lines of code and I want to > add a while outside that. That means indenting everything. Is there > a global way to do that? In kwrite, kate, geany, and any other sensible editor, you

Re: Global indent

2014-08-22 Thread Dan Stromberg
On Fri, Aug 22, 2014 at 1:16 PM, Neil D. Cerutti wrote: >> Emacs and vim both have huge learning curves that I've decided aren't >> worth climbing. Notepad++ is an excellent GUI text editor for Windows. >> Geany is nearly as good, and runs on anything. > > > They do have a very long learning incl

Re: Global indent

2014-08-22 Thread Mark Lawrence
On 22/08/2014 21:20, Chris Angelico wrote: On Sat, Aug 23, 2014 at 5:46 AM, Seymore4Head wrote: On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head wrote: Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that.

Re: Global indent

2014-08-22 Thread Chris Angelico
On Sat, Aug 23, 2014 at 5:46 AM, Seymore4Head wrote: > On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head > wrote: > >>Is there a way to indent everything again? >> >>Say I have a while statement with several lines of code and I want to >>add a while outside that. That means indenting everything.

Re: Global indent

2014-08-22 Thread Neil D. Cerutti
On 8/22/2014 3:54 PM, Rob Gaddi wrote: On Fri, 22 Aug 2014 15:46:33 -0400 Seymore4Head wrote: On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head wrote: Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that.

Re: Global indent

2014-08-22 Thread Marko Rauhamaa
Rob Gaddi : > Emacs and vim both have huge learning curves Really now? When you start emacs, it advises you to start the builtin tutorial. That's how I learned it in the 1980's and didn't experience any learning curve. Nowadays, emacs has a GUI that makes you productive immediately without any

Re: Global indent

2014-08-22 Thread Simon Ward
On 22 August 2014 19:44:39 BST, "Neil D. Cerutti" wrote: >This sort of simple task [indenting blocks of text] is why fancy text editors >were invented. > >I use and recommend gvim (press > in select mode using the standard >python plugin), but there are plenty of options out there. Even with

Re: Global indent

2014-08-22 Thread Rob Gaddi
On Fri, 22 Aug 2014 15:46:33 -0400 Seymore4Head wrote: > On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head > wrote: > > >Is there a way to indent everything again? > > > >Say I have a while statement with several lines of code and I want to > >add a while outside that. That means indenting ever

Re: Global indent

2014-08-22 Thread Seymore4Head
On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head wrote: >Is there a way to indent everything again? > >Say I have a while statement with several lines of code and I want to >add a while outside that. That means indenting everything. Is there >a global way to do that? Ok.so the answer is no

Re: Global indent

2014-08-22 Thread Dan Stromberg
On Fri, Aug 22, 2014 at 11:44 AM, Neil D. Cerutti wrote: > On 8/22/2014 2:19 PM, Seymore4Head wrote: >> >> Is there a way to indent everything again? >> >> Say I have a while statement with several lines of code and I want to >> add a while outside that. That means indenting everything. Is there

Re: Global indent

2014-08-22 Thread Neil D. Cerutti
On 8/22/2014 2:19 PM, Seymore4Head wrote: Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that. That means indenting everything. Is there a global way to do that? This sort of simple task is why fancy text e

Re: Global indent

2014-08-22 Thread Skip Montanaro
On Fri, Aug 22, 2014 at 1:19 PM, Seymore4Head wrote: > Say I have a while statement with several lines of code and I want to > add a while outside that. That means indenting everything. Is there > a global way to do that? Depends on your text editor/IDE. In Emacs using either python-mode.el or

Global indent

2014-08-22 Thread Seymore4Head
Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that. That means indenting everything. Is there a global way to do that? -- https://mail.python.org/mailman/listinfo/python-list