Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
scripting language for immediate use
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rameo  
View profile  
 More options Mar 24 2012, 5:40 am
From: rameo <rai...@gmail.com>
Date: Sat, 24 Mar 2012 02:40:49 -0700 (PDT)
Local: Sat, Mar 24 2012 5:40 am
Subject: scripting language for immediate use
Would it be possible in a next release to use vim scripting language
without putting it in menu.vim or .vimrc?
For immediate, temporary scripting.
p.e.in a little window beside the vim window.

This gives the possibility to do little things very quickly without
the use of macros.
p.e.

for i in range (3,30)
print (put) "2**".i."=".2**i
endfor

output:

2**3 = 8
2**4 = 16
...
etc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Johnson  
View profile  
 More options Mar 24 2012, 8:00 pm
From: Gary Johnson <garyj...@spocom.com>
Date: Sat, 24 Mar 2012 17:00:29 -0700
Local: Sat, Mar 24 2012 8:00 pm
Subject: Re: scripting language for immediate use

On 2012-03-24, rameo wrote:
> Would it be possible in a next release to use vim scripting language
> without putting it in menu.vim or .vimrc?
> For immediate, temporary scripting.
> p.e.in a little window beside the vim window.

> This gives the possibility to do little things very quickly without
> the use of macros.

You can already do this.

    :new
    <type your little thing>
    ggyG
    :@"

See

    :help :@

Regards,
Gary


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Little  
View profile  
 More options Mar 24 2012, 11:42 pm
From: John Little <John.B.Lit...@gmail.com>
Date: Sat, 24 Mar 2012 20:42:01 -0700 (PDT)
Local: Sat, Mar 24 2012 11:42 pm
Subject: Re: scripting language for immediate use

On Saturday, March 24, 2012 10:40:49 PM UTC+13, rameo wrote:
> p.e.in a little window beside the vim window.

Well, if you type exactly

:for i in range(3,30)
put ='2**' . i . ' = '.printf('%-10.0f',pow(2,i))
endfor

That's exactly what will appear, in a few lines at the bottom of the vim "screen".  Admittedly, it will disappear when you press enter after the endfor, but you can see it again if you open the "command-line-window", see
:h command-line-window

regards, John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Szamotulski  
View profile  
 More options Mar 25 2012, 4:51 am
From: Marcin Szamotulski <msza...@gmail.com>
Date: Sun, 25 Mar 2012 09:51:37 +0100
Local: Sun, Mar 25 2012 4:51 am
Subject: Re: scripting language for immediate use
On 17:00 Sat 24 Mar     , Gary Johnson wrote:

What about using the ':help Ex-mode' (for example with gQ).

Best,
Marcin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Little  
View profile  
 More options Mar 25 2012, 5:41 pm
From: John Little <John.B.Lit...@gmail.com>
Date: Sun, 25 Mar 2012 14:41:09 -0700 (PDT)
Local: Sun, Mar 25 2012 5:41 pm
Subject: Re: scripting language for immediate use

On Saturday, March 24, 2012 10:40:49 PM UTC+13, rameo wrote:
> This gives the possibility to do little things very quickly without
> the use of macros.

One can already do such things very quickly, just using the existing command mode prompt.  If you type exactly (ending each line with enter)

:for i in range(3,30)
put ='2**' . i . ' = '.printf('%-10.0f',pow(2,i))
endfor

it will run there and then.  You could check out the command-line-window, too, see :h cmdwin

Regards, John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Little  
View profile  
 More options Mar 25 2012, 5:52 pm
From: John Little <John.B.Lit...@gmail.com>
Date: Sun, 25 Mar 2012 14:52:26 -0700 (PDT)
Local: Sun, Mar 25 2012 5:52 pm
Subject: Re: scripting language for immediate use

Sorry guys, the new google groups web interface appeared to have lost my first post; it did not show when I reviewed the thread.  Cursing, I retyped it, then the first one popped back.  Perhaps some interaction with my browser cache;  I've noticed that when I uncheck "Let pages override these settings" in my colour preferences, some threads that have had new replies show as the colour for a visited link, which in the old google groups indicated I'd read it up to date, and was a more reliable indication than the "new of" legend.

Regards, John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mattn  
View profile  
 More options Mar 25 2012, 9:35 pm
From: mattn <mattn...@gmail.com>
Date: Sun, 25 Mar 2012 18:35:02 -0700 (PDT)
Local: Sun, Mar 25 2012 9:35 pm
Subject: Re: scripting language for immediate use

:call setline('.', map(range(3,30), 'printf("2**%d = %-10.0f", v:val, pow(2, v:val))'))

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lilydjwg  
View profile  
 More options Mar 26 2012, 1:03 am
From: lilydjwg <lilyd...@gmail.com>
Date: Mon, 26 Mar 2012 13:03:14 +0800
Local: Mon, Mar 26 2012 1:03 am
Subject: Re: scripting language for immediate use

On Sat, Mar 24, 2012 at 02:40:49AM -0700, rameo wrote:
> Would it be possible in a next release to use vim scripting language
> without putting it in menu.vim or .vimrc?
> For immediate, temporary scripting.
> p.e.in a little window beside the vim window.

> This gives the possibility to do little things very quickly without
> the use of macros.
> p.e.

> for i in range (3,30)
> print (put) "2**".i."=".2**i
> endfor

Would you try my 'Rcode' plugin[1]? You can type the code in a temporary
small buffer and run it.

[1]: http://www.vim.org/scripts/script.php?script_id=3705

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rameo  
View profile  
 More options Mar 27 2012, 3:49 am
From: rameo <rai...@gmail.com>
Date: Tue, 27 Mar 2012 00:49:51 -0700 (PDT)
Local: Tues, Mar 27 2012 3:49 am
Subject: Re: scripting language for immediate use

Thank you all.
Thanks also for the Rcode plugin.
I'll check it out.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »