Lua support

2010-09-23 Thread Marco
Hi,

Vim 7.3 has build-in Lua support, right? Is there any documentation about the
API, sample lua scripts or alike to see how things work?

Regards
Marco


-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Lua support

2010-09-23 Thread Zsolt Udvari
Hello Marco!

Maybe you'll like this:
http://www.vim.org/scripts/script.php?script_id=1763

Zsolt

2010/9/23 Marco net...@lavabit.com:
 Hi,

 Vim 7.3 has build-in Lua support, right? Is there any documentation about the
 API, sample lua scripts or alike to see how things work?

 Regards
 Marco


 --
 You received this message from the vim_use maillist.
 Do not top-post! Type your reply below the text you are replying to.
 For more information, visit http://www.vim.org/maillist.php


-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Lua support

2010-09-23 Thread Marco
On 2010-09-23 Zsolt Udvari udvzs...@gmail.com wrote:

 Maybe you'll like this:
 http://www.vim.org/scripts/script.php?script_id=1763
Thanks for the hint, but that's not exactly what I need. The script helps to
write arbitrary lua code. My intention is to write code in lua (instead of
vimscript) that accesses vim variables and modifies the buffer... I want vim
to interpret my lua code instead of the external lua interpreter.

Like:
:lua x={mtest=5}
:lua print(x.mtest)

Regards
Marco


-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Lua support

2010-09-23 Thread Marco
On 2010-09-23 ZyX zyx@gmail.com wrote:

 Is the information provided in if_lua.txt help file insufficient?
No. This was exactly the starting point I was looking for. Thanks.

Marco


-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Find mappings for ctrl

2010-09-23 Thread Ben Fritz


On Sep 22, 3:14 am, ZyX zyx@gmail.com wrote:

 Map commands show only custom user mappings. If you want to list builtin
 commands, use either tab completion on `:h CTRL-W' or `:helpgrep \*CTRL-W'.

Or potentially even better, type :h CTRL-W (9 keystrokes) and then hit
CTRL-D (two keystrokes). This will give you a list of all the matches
including CTRL-W in the :help (there are many).

 I do
 not know any way to show both builtin commands and custom user mappings.


That's because there is no way to do this with a single built-in
command.

-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


What does perl's VIM::Eval do with dictionaries?

2010-09-23 Thread Ben Fritz
:help perl-Eval says that VIM::Eval in the perl interface will convert
a list into a string by joining the items and inserting line breaks.

This seems kind of strange, but at least it's documented.

So, what is done with Dictionaries?

-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: What does perl's VIM::Eval do with dictionaries?

2010-09-23 Thread ZyX
Ответ на сообщение «What does perl's VIM::Eval do with dictionaries?», 
присланное в 21:25:42 23 сентября 2010, Четверг,
отправитель Ben Fritz:

It throws an error ``E731: using Dictionary as a String'' and returns a tuple 
with 1 and an empty string. According to the documentation, this is a bug: 1 
should be returned only when Eval succeed to evaluate the expression.

Текст сообщения:
 :help perl-Eval says that VIM::Eval in the perl interface will convert
 
 a list into a string by joining the items and inserting line breaks.
 
 This seems kind of strange, but at least it's documented.
 
 So, what is done with Dictionaries?


signature.asc
Description: This is a digitally signed message part.