Re: how to match the first pattern

2018-07-31 Thread Chr. von Stuckrad
On Tue, 31 Jul 2018, Michael Wagner wrote: > On Jul 30, 2018 um 18:46:42, Sand Glass wrote: > If you are on Linux, you can test 'txt2regex'. Interesting! And a good way to compose for more than one of the dialects. Bit ALAS, it does not know (as far as I saw) about 'shortest' aka non-greedy

Re: how to match the first pattern

2018-07-30 Thread Chr. von Stuckrad
On Mon, 30 Jul 2018, Sand Glass wrote: > On Saturday, July 28, 2018 at 3:18:23 PM UTC+8, Sand Glass wrote: > > how can I stop the pattern at the first "]"? > It's good in vim. Then I try to use the regular in perl script, but failed. Same 'thing', i.e. the shortest match, so (in linux 'man

Re: Bash in :shell vs :terminal

2018-06-05 Thread Chr. von Stuckrad
On Mon, 04 Jun 2018, Jason Franklin wrote: > ... I'm fine with a VIM_TERMINAL variable so long as it allows me to > distinguish when a terminal window is in use. I think, it boils down to one kind of typical situation, and an otherwise never reliably solvable problem. If you only need to know,

Re: First line starting with space affects cursor position when switching buffers

2018-06-01 Thread Chr. von Stuckrad
On Thu, 31 May 2018, dmcco...@comcast.net wrote: > Save the file (:w) and switch (:e) to view another file. > Switch back (:e) to the original file. > Notice that the cursor is on the first line, not where it was originally. This is original default behaviour - open file, stand at first char.

Re: Bash in :shell vs :terminal

2018-05-30 Thread Chr. von Stuckrad
On Wed, 30 May 2018, Jason Franklin wrote: > I would like for bash to be able to discern whether it is being run with > :shell or with :term. I would assume this would need to be done with an > environment variable. Does this feature to do something like this already > exist? The method I