[Vimoutliner] How do you use _exe_ ?
Tim Roberts
timr at probo.com
Thu May 22 18:33:19 EDT 2008
Scott Scriven wrote:
> * Steve Litt <slitt at troubleshooters.com> wrote:
>
>> Now, place the cursor ANYWHERE on a line with _exe_ on it,
>> press ,,e and the command line following the _exe_ will be
>> executed.
>>
>
> Personally, I find this awkward. Why is _exe_ required?
>
> It seems like it would be simpler to just make ,,e execute any
> line, with no particular marker needed. I mean, just remove the
> leading whitespace and any checkboxes and/or percents on the left
> side, and then run the contents of the line.
>
> It would probably at least clear up confusion about things
> like...
>
> - move the cursor to a line containing "ls /tmp"
> - type ,,e
> - receive an error, "Not an executable line"
> - scratch head... "ls /tmp" sure looks executable
>
It would also make it AWFULLY easy to run a dangerous command
accidentally. I believe it is better that strings that are intended by
the author to be executable be clearly delimited.
- Sample Unix command lines
+ ls -l
+ rm -rf *
+ echo This is a disaster just waiting to happen
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vimoutliner.org/pipermail/vimoutliner/attachments/20080522/310f3a70/attachment.html
More information about the VimOutliner
mailing list