Re: Importing values from vim to python in vim9

2023-12-06 Thread rameo
You are right. The variable names in the above example should be without quotes MyFunction(variable1, variable2) . In my functions, they are without quotes. On Wednesday, December 6, 2023 at 1:14:04 AM UTC+1 Salman Halim wrote: > I might be nitpicking, but why are the function parameters in

Re: Importing values from vim to python in vim9

2023-12-05 Thread Salman Halim
I might be nitpicking, but why are the function parameters in the function definition in quotes? Salman On Tue, Dec 5, 2023, 17:14 Christian Brabandt wrote: > > On Di, 05 Dez 2023, rameo wrote: > > > I installed vim 9 but still have multiple functions written in old > vimscript. > > > > I've

Re: Importing values from vim to python in vim9

2023-12-05 Thread rameo
No message. I noticed that the values are no longer correct. I am using the same function more and the values are not refreshed. Old values are kept. I can't remember exactly when it stopped working. I noticed it today. I just tested with this: variable1 = str(vim.bindeval("a:variable1"))

Re: Importing values from vim to python in vim9

2023-12-05 Thread Christian Brabandt
On Di, 05 Dez 2023, rameo wrote: > I installed vim 9 but still have multiple functions written in old vimscript. > > I've read that functions written in old vimscript still work. > > However I noticed that importing variables into Python > `vim.eval("a:myvariable")` no longer works > > I

Importing values from vim to python in vim9

2023-12-05 Thread rameo
I installed vim 9 but still have multiple functions written in old vimscript. I've read that functions written in old vimscript still work. However I noticed that importing variables into Python `vim.eval("a:myvariable")` no longer works I don't always get the right values imported.

Re: Vim and Python 3.7

2018-07-10 Thread Yggdroot Chen
在 2018年7月2日星期一 UTC+8下午9:54:21,Yongwei Wu写道: > I am using MacVim with Homebrew. Homebrew's Python version is now 3.7, and > executing simply `pyx print('Hello')` gives me a warning message: > > the imp module is deprecated in favour of importlib … > > > ​I guess this should not be specific to

Vim and Python 3.7

2018-07-02 Thread Yongwei Wu
I am using MacVim with Homebrew. Homebrew's Python version is now 3.7, and executing simply `pyx print('Hello')` gives me a warning message: the imp module is deprecated in favour of importlib … ​I guess this should not be specific to MacVim? Any chances to get it fixed upstream?​ ​Best

Crash when using vim with Python 3.7 (both compiled from source) - PyThreadState_Get: no current thread

2017-03-27 Thread Jonathan Crall
I'm not sure if this is a vim issue or a python 3.7 issue. I have compiled both vim and python 3.7 from source. Whenever I try to execute a python3 block in a vim script I get the following crash: ``` Fatal Python error: PyThreadState_Get: no current thread Vim: Caught deadly signal ABRT Vim

idx-edx: Different Character count in Vim and Python

2017-01-25 Thread rameo
Example: s="I like crème caramel but not only caramel I also like crème fraîche." Searching the idx-edx numbers of the matches of the word "crème": echo matchstrpos(s, "crème") --> 7,13 echo matchstrpos(s, "crème",14) --> 55,61 I do have a python function in which I transform the above

Vim and Python

2016-03-04 Thread rameo
Vim and Python is an incredible power combination. Vimscript is great, Python makes it even greater, faster and easier. What I just want to ask is if it possible in a future release to include the python regex code as well. Now I do a search in vim, capture the search/matches and use

Re: Installing auto completion in vim for python.

2015-01-26 Thread Ben Fritz
On Sunday, January 25, 2015 at 12:45:00 AM UTC-6, prabhath kiran wrote: I used Pydiction plugin to install Tab completion for python. But it doesn't work. I am using os x and vim 7.4 Thanks for the help. You're going to give WAY more detail than that, to get an answer. For example: *

Installing auto completion in vim for python.

2015-01-25 Thread prabhath kiran
I used Pydiction plugin to install Tab completion for python. But it doesn't work. I am using os x and vim 7.4 Thanks for the help. -- -- 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

Re: compile vim against python

2014-09-24 Thread Konstantinos Pachnis
/embedding.html#compiling-and-linking-under-unix-like-systems -- Konstantinos On 23 Sep 2014, at 11:59, Jay Jesus Amorin wrote: I'm trying to build vim with python support, but I got this error during compile. gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1

compile vim against python

2014-09-23 Thread Jay Jesus Amorin
I'm trying to build vim with python support, but I got this error during compile. gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/memfile.o memfile.c gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1

Re: Vim with +python support

2014-05-15 Thread Ole Hansen
Thank you very much, this helped. -- -- 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 because you are subscribed to the Google

Re: Vim with +python support

2014-05-14 Thread Ole Hansen
I used the current stable Windows binary to install Vim 7.4. Both console and gvim have 'VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:33:40)' in their :ver output. However the gvim version has +python/dyn and +python3/dyn and the console version has -python and -python3. I

Re: Vim with +python support

2014-05-14 Thread David Fishburn
and +python3/dyn and the console version has -python and -python3. I installed python 2.7 after I installed vim, but I tried a reinstall of vim afterwards. Looks like you need to find a Vim installation with python/dyn enabled for the console Vim as well. I had originally thought you were

Re: Vim with +python support

2014-05-13 Thread David Fishburn
On Tue, May 13, 2014 at 9:54 AM, Ole Hansen olehanse...@gmail.com wrote: Hi, I was trying to install python and vim +python support. I successfully installed python 2.7 and if I go into my gvim :echo has('python') returns 1. But if I open my command line vim (which I use primarily

Re: Vim with +python support

2014-05-13 Thread Gary Johnson
On 2014-05-13, Ole Hansen wrote: Hi, I was trying to install python and vim +python support. I successfully installed python 2.7 and if I go into my gvim :echo has('python') returns 1. But if I open my command line vim (which I use primarily) of the same installation, :echo has('python

Re: Vim as Python IDE

2013-04-06 Thread David Halter
2013/3/6 tucky.k...@gmail.com On Friday, January 18, 2013 10:09:19 PM UTC+1, David Halter wrote: The IDE features are better than those of python-mode, but python-mode offers other additional features. They work side by side. Just disable the rope features of python-mode. How do

vim 64 python dll loading

2013-03-26 Thread CanisMajorWuff
Hello, I am trying to build vim on Win64. I have a successful build with Dynamic Python 27 Support. But it does not work properly it does not load the python library. My vim plugins inform me that I need python to run them. Here you can see the build of if_python.c gcc -c -Iproto -DWIN32

Re: Vim as Python IDE

2013-03-06 Thread tucky . kong
On Friday, January 18, 2013 10:09:19 PM UTC+1, David Halter wrote: The IDE features are better than those of python-mode, but python-mode offers other additional features. They work side by side. Just disable the rope features of python-mode. How do you disable those features? Do you

Re: Vim as Python IDE

2013-03-06 Thread Benjamin Klein
On Jan 12, 2013, at 2:02 AM, Zippermeyer wsulliva...@gmail.com wrote: I would like to know what´s the best way to turn Vim into a Python IDE on Windows 7 There seems to be more written on Vim as a Python IDE than on Vim as an IDE for anything else. I do not use Python, and this is about four

Re: Unable to compile Vim with Python 3, Perl, and OLE support for Windows XP with MinGW

2013-03-01 Thread cyboman
On Friday, March 1, 2013 3:40:53 PM UTC-5, cyboman wrote: I tried to post similar question vim_dev group, but I think I posted in the wrong group. I apologize in advance if you have seen this question before. I'm going to try to post it here. Issue I need to compile Vim with Python 3

Re: Unable to compile Vim with Python 3, Perl, and OLE support for Windows XP with MinGW

2013-03-01 Thread cyboman
to post it here. Issue I need to compile Vim with Python 3, Perl, and OLE and OLEsupport. Problem 1. I tried to compile with OLE support (all I have to do is to set OLE=yes) but for some reason it doesn't work. As far as I understand it links some dll's but In order for them to work I

Re: Unable to compile Vim with Python 3, Perl, and OLE support for Windows XP with MinGW

2013-03-01 Thread Ben Fritz
On Friday, March 1, 2013 2:40:53 PM UTC-6, cyboman wrote: I tried to post similar question vim_dev group, but I think I posted in the wrong group. I apologize in advance if you have seen this question before. I'm going to try to post it here. Issue I need to compile Vim with Python 3

Re: Vim as Python IDE

2013-01-18 Thread David Halter
I would like to know what´s the best way to turn Vim into a Python IDE on Windows 7 If you're interested in autocompletion / goto and this kind of IDE stuff, jedi-vim might be for you: https://github.com/davidhalter/jedi-vim The IDE features are better than those of python-mode, but python

Vim as Python IDE

2013-01-12 Thread Zippermeyer
Hello, I would like to know what´s the best way to turn Vim into a Python IDE on Windows 7 Thank you. -- 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: Vim as Python IDE

2013-01-12 Thread lordkrandel
On 12/01/2013 09:02, Zippermeyer wrote: Hello, I would like to know what´s the best way to turn Vim into a Python IDE on Windows 7 Thank you. There is no such thing as a best way. It depends on which features you'd like to get. If they are not already there in Vim, you can use plugins

Re: Vim as Python IDE

2013-01-12 Thread Hidolfo Anselmi
the best way to turn Vim into a Python IDE on Windows 7 Thank you. There is no such thing as a best way. It depends on which features you'd like to get. If they are not already there in Vim, you can use plugins, or script them yourself. There are plenty of tutorial and guides about

Re: Compiling vim with python and python3 support under Cygwin

2012-07-27 Thread Chris Sutcliffe
On 26 July 2012 06:59, Chris Sutcliffe ir0nh...@gmail.com wrote: On 25 July 2012 20:25, Tony Mechelynck wrote: And finally: If nothing else avails, try recompiling Vim with static Python (remove the =dynamic then make sure your new config settings will be used by running make reconfig. See

Re: Compiling vim with python and python3 support under Cygwin

2012-07-27 Thread Chris Sutcliffe
On 27 July 2012 08:32, Chris Sutcliffe wrote: I managed to get it to work. I had to modify config.mk to include the actual python dlls to load dynamically (it was generated with an empty string). As time permits I'll look in to patching configure.in / configure to pick up the dll names

Re: Compiling vim with python and python3 support under Cygwin

2012-07-27 Thread Chris Sutcliffe
On 27 July 2012 09:20, Chris Sutcliffe wrote: On 27 July 2012 08:32, Chris Sutcliffe wrote: I managed to get it to work. I had to modify config.mk to include the actual python dlls to load dynamically (it was generated with an empty string). As time permits I'll look in to patching

Re: Compiling vim with python and python3 support under Cygwin

2012-07-27 Thread Chris Sutcliffe
On 27 July 2012 11:47, Chris Sutcliffe wrote: On 27 July 2012 09:20, Chris Sutcliffe wrote: On 27 July 2012 08:32, Chris Sutcliffe wrote: I managed to get it to work. I had to modify config.mk to include the actual python dlls to load dynamically (it was generated with an empty string). As

Re: Compiling vim with python and python3 support under Cygwin

2012-07-26 Thread Chris Sutcliffe
) has(python3) what is the answer? If it's other than 1 1 there is at least one Python library which Vim couldn't find. Response was 0 0. Are you running Vim from a Cygwin bash prompt or aren't you? If you aren't, see if it makes a difference. I'm running vim from within Cygwin mksh

Compiling vim with python and python3 support under Cygwin

2012-07-25 Thread Chris Sutcliffe
Python3 has recently been made available under Cygwin so I figured I would build vim to support both. I added: --enable-pythoninterp=dynamic and --enable-python3interp=dynamic and sure enough, in :version I see +python/dyn +python3/dyn. However, when I try: :py print hi or :py3 print(hi)

Re: Compiling vim with python and python3 support under Cygwin

2012-07-25 Thread Tony Mechelynck
where Vim can find it? (e.g. in the PATH) If you type :echo has(python) has(python3) what is the answer? If it's other than 1 1 there is at least one Python library which Vim couldn't find. Are you running Vim from a Cygwin bash prompt or aren't you? If you aren't, see if it makes

Re: vim/cygwin: python support

2012-06-30 Thread Tony Mechelynck
On 29/06/12 16:22, ping wrote: not sure this should go to vim/cygwin team...so copy both and Vlad(Voom plugin author) I got a new laptop (folio) come with win7. for some reason I want to give win7 a trial. cygwin full install went smooth. but looks I don't have python support here. that means I

Re: vim/cygwin: python support

2012-06-30 Thread Tony Mechelynck
On 30/06/12 23:32, ping wrote: Thanks I just got it recompiled under cygwin with python support At least Voom that is based on python runs smoothly now I can post detailed steps if anyone is interested [...] Maybe you should create a tip at http://vim.wikia.com/ ? Best regards, Tony. --

Re: vim/cygwin: python support

2012-06-30 Thread ping
On 6/30/2012 6:04 PM, Tony Mechelynck wrote: On 30/06/12 23:32, ping wrote: Thanks I just got it recompiled under cygwin with python support At least Voom that is based on python runs smoothly now I can post detailed steps if anyone is interested [...] Maybe you should create a tip at

vim/cygwin: python support

2012-06-29 Thread ping
not sure this should go to vim/cygwin team...so copy both and Vlad(Voom plugin author) I got a new laptop (folio) come with win7. for some reason I want to give win7 a trial. cygwin full install went smooth. but looks I don't have python support here. that means I won't be able to have some

Re: vim/cygwin: python support

2012-06-29 Thread ping
got returned msg about cygwin. so resent.. On 06/29/2012 10:22 AM, ping wrote: not sure this should go to vim/cygwin team...so copy both and Vlad(Voom plugin author) I got a new laptop (folio) come with win7. for some reason I want to give win7 a trial. cygwin full install went smooth. but

make vim a python IDE by only change .vimrc and creat other files.

2011-10-17 Thread Chao YUE
Dear all, I am working on a linux server and it's difficult for me to ask our engineer to install new plugin for editing .py file with vim. Does anyone has experience make vim more python syntax highlighting (generally more easier for python script editing) by only add new configuration lines

Re: make vim a python IDE by only change .vimrc and creat other files.

2011-10-17 Thread Ben Fritz
On Oct 17, 4:18 am, Chao YUE chaoyue...@gmail.com wrote: Dear all, I am working on a linux server and it's difficult for me to ask our engineer to install new plugin for editing .py file with vim. Does anyone has experience make vim more python syntax highlighting (generally more easier

Re: make vim a python IDE by only change .vimrc and creat other files.

2011-10-17 Thread Taylor Hedberg
You shouldn't need an engineer to install a plugin for you. Rather than installing it system-wide, you can just install plugins into your $HOME/.vim directory and they will override/extend the system defaults. -- You received this message from the vim_use maillist. Do not top-post! Type your

Re: make vim a python IDE by only change .vimrc and creat other files.

2011-10-17 Thread Chao YUE
Thanks. I'll try this. Chao 2011/10/17 Taylor Hedberg tmhedb...@gmail.com You shouldn't need an engineer to install a plugin for you. Rather than installing it system-wide, you can just install plugins into your $HOME/.vim directory and they will override/extend the system defaults. --

Re: Using vim as Python-IDE

2010-08-28 Thread Jeffrey 'jf' Lim
On Sat, Aug 14, 2010 at 4:58 AM, Reid Thompson reid.thomp...@ateb.com wrote: On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE.

Re: Using vim as Python-IDE

2010-08-28 Thread Reid Thompson
On 8/28/2010 11:03 AM, Jeffrey 'jf' Lim wrote: On Sat, Aug 14, 2010 at 4:58 AM, Reid Thompsonreid.thomp...@ateb.com wrote: On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to

Using vim as Python-IDE

2010-08-13 Thread meino . cramer
Hi, for developing python scripts I want to convert my vim into a a Python IDE. I searched the web and found dozens of tricks tips and other things how to accomplish that. I tried to combine all that bits and pieces and end up with a bunch full of warnings and errors from wrong configs and script

Re: Using vim as Python-IDE

2010-08-13 Thread Marc Weber
Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE. Hi meino.cramer Maybe start explaining what you expect from an IDE. Also telling I have many errors without telling which won't help us

Re: Using vim as Python-IDE

2010-08-13 Thread Reid Thompson
On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE. google pida google vimmate -- You received this message from the vim_use

Re: Using vim as Python-IDE

2010-08-13 Thread meino . cramer
Reid Thompson reid.thomp...@ateb.com [10-08-13 23:00]: On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE. google pida google

Re: Vim and Python

2010-03-12 Thread Sergey Khorev
And yet, I still get E370: Could not load library python26.dll when I try doing a Python command. Perhaps, python26.dll misses another dlls. The easiest would be to get dependency walker from http://www.dependencywalker.com and trace Vim (File-Open - browse to (g)vim.exe, Profile - Start

RE: Vim and Python

2010-03-12 Thread John Beckett
Max wrote: Running vim 7.2 with patches 1-356 on Windows 7, installed via Cream, except using the Vim without Cream installers. :version confirms +python/dyn :version and gvim.exe confirms DYNAMIC_PYTHON_DLL=python26.dll :echo $PATH confirms c:\Windows\System32 is in path