how to fetch the encoding property in C code?

2010-11-21 Fir de Conversatie winterTTr
Can anyone give me some tips about how to fetch encoding property in C code? Maybe some tips which should be pay attention to when try to fetch it ? -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For more information,

clear buffer content via py3

2010-11-09 Fir de Conversatie winterTTr
I recently use py3 in vim and try to accomplish some function. I remember that in py( which means python2 ), we can clear the current buffer by : :py vim.current.buffer[:] = [] OR: :py del vim.current.buffer[:] But in py3 now, the former code return a error message, and i can't find other way to

python3 and unicode problem

2010-11-04 Fir de Conversatie winterTTr
I don't know if this is a problem already solved, my vim version on windows is Vi IMproved 7.3 Included patches: 1-29 I found a problem like this, when i use python3 interface to set the buffer content to a sepecific chinese character, some kind of error occured. the code is like below: :py3

Re: python3 and unicode problem

2010-11-04 Fir de Conversatie winterTTr
2010/11/4 lilydjwg lilyd...@gmail.com: On Thu, Nov 04, 2010 at 05:16:40PM +0800, winterTTr wrote: I don't know if this is a problem already solved, my vim version on windows is Vi IMproved 7.3 Included patches: 1-29 I found a problem like this, when i use python3 interface to set

Is there any internal mechanism that convert the accessing key of dictionary to a specific function?

2010-08-12 Fir de Conversatie winterTTr
I mean if there is such mechanism in the vim script itself. OK, maybe the title of this mail is not very clear for you to understand, i just give an example. let foo = {} let foo.var = 100 we can access the value 100 by : echo foo.var echo foo['var'] i just want to know if there is a mechanism

Re: Is there any internal mechanism that convert the accessing key of dictionary to a specific function?

2010-08-12 Fir de Conversatie winterTTr
On 12 August 2010 17:01, Jürgen Krämer jottka...@googlemail.com wrote: Hi, Ingo Karkat wrote: On 12-Aug-2010 10:19, winterTTr wrote: Or is there an alternate method to accessing dictionary  when the key is not found , instead of showing error directly? You can use     echo get(foo

Re: Is there any internal mechanism that convert the accessing key of dictionary to a specific function?

2010-08-12 Fir de Conversatie winterTTr
On 12 August 2010 20:34, Ben Fritz fritzophre...@gmail.com wrote: On Aug 12, 4:23 am, winterTTr winterttr@gmail.com wrote: OK, thanks so much for your answers.  I do not notice the get() method. There is indeed an alternate way to do so. That's great. However, I must use this code

Provide latest gvim.exe of mine

2010-08-02 Fir de Conversatie winterTTr
I compile the vim from the latest source of Mercurial Repository with version 2474. I provide the gvim.exe file download address if anyone want it. Compile by mingw gcc (GCC) 3.4.5 on WindowsXP platform: Support python2.X Support Lua5.1 Support Perl5.6 Download Address: Support Py26:

Is read-only text possible in vim?

2010-07-27 Fir de Conversatie winterTTr
I know that we can use the set nomodifiable to make a buffer read-only, which makes all the text in it not modifiable. But is it possible to make some text in a buffer read-only but not for the whole buffer? I mean maybe we can bind a property to the string ( or text, or character ) , which can

Re: Is read-only text possible in vim?

2010-07-27 Fir de Conversatie winterTTr
On Tue, Jul 27, 2010 at 11:04 PM, Ben Fritz fritzophre...@gmail.com wrote: On Jul 27, 2:55 am, winterTTr winterttr@gmail.com wrote: I know that we can use the set nomodifiable to make a buffer read-only, which makes all the text in it not modifiable. But is it possible to make some

About the lua interface feature

2010-07-19 Fir de Conversatie winterTTr
Lua is really a embedded language with a good efficiency, and the lua running environment is small enough to be embedded in vim executive file.So i am a litter curious about that the lua interface will embed the whole lua virtual machine ( i am not very if i can call it with this words ) into

Re: Compiling Vim 7.2.418 and Ruby 1.9.1 with Visual C++

2010-05-13 Fir de Conversatie winterTTr
On Fri, May 14, 2010 at 12:55 AM, Geert VL geert.vanlaet...@gmail.comwrote: Hi, I am trying to compile Vim 7.2.418 together with Ruby 1.9.1. I use Visual C++ 2008 Express edition. I use the following command line: nmake -f Make_mvc.mak GUI=yes MSVCVER=9.0 PYTHON=c:\Python26 RUBY=c:

Re: VIM-7.2.394 multibyte related problem?

2010-03-10 Fir de Conversatie winterTTr
On Thu, Mar 11, 2010 at 8:29 AM, SungHyun Nam gow...@gmail.com wrote: Hello, With the attached files (vimrc and mb.txt), if I open the mb.txt and just type A, gvim -u vimrc -U NONE --noplugin mb.txt A, Now, I should saw (X = cursor): ,X But, I saw , X It

Re: Any limitation of autocmd when the bufdo is processing ?

2010-03-01 Fir de Conversatie winterTTr
On Tue, Mar 2, 2010 at 4:02 AM, Bram Moolenaar b...@moolenaar.net wrote: Antony Scriven wrote: I vaguely wrote: [...] Me too. It looks to me like 'ei' is being set to ,Syntax which is causing do_set() to fail ... on a subsequent :set ei+=. I hope that's clearer.

Re: Any limitation of autocmd when the bufdo is processing ?

2010-02-28 Fir de Conversatie winterTTr
On Fri, Feb 26, 2010 at 3:41 PM, winterTTr winterttr@gmail.com wrote: Actually, i meet a problem like below. I tried to update a specific unlisted buffer every time the BufEnter event happens. the Code like below( just an example, not the real code ): I am trying to use the set

Any limitation of autocmd when the bufdo is processing ?

2010-02-25 Fir de Conversatie winterTTr
Actually, i meet a problem like below. I tried to update a specific unlisted buffer every time the BufEnter event happens. the Code like below( just an example, not the real code ): I am trying to use the set eventignore+=BufEnter and set eventignore-=BufEnter to prevent the process from running

Re: Mercurial repository available for Vim

2010-01-07 Fir de Conversatie winterTTr
favorite one ^_^ Thanks for the repos~ Best Regards, winterTTr -- You can't have everything. Where would you put it? -- Steven Wright /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org

screen does not scrolling when moving cursor in function

2010-01-07 Fir de Conversatie winterTTr
I am not very sure whether this is a bug of screen update. OR some kind of rule for the vim, sorry i can't find this kind of rule mentioned in the help doc. It happens when i do some kind of moving cursor action in a vim function which is used to move the cursor position (out of screen) in

Re: About the internal function iconv

2009-11-23 Fir de Conversatie winterTTr
On Mon, Nov 23, 2009 at 3:56 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 23/11/09 07:43, winterTTr wrote: I use vim to read the file which is the attachment of this mail. This file can be read in with the encoding cp936, and thing goes well. When i read the file via “:e

About the internal function iconv

2009-11-22 Fir de Conversatie winterTTr
I use vim to read the file which is the attachment of this mail. This file can be read in with the encoding cp936, and thing goes well. When i read the file via “:e ++enc=sjis” ( with a wrong encoding ) , the vim shows conversion error, and the characters get messed. So , the conversion failed by

Re: Is there a memory limit for a single vim instance ?

2009-11-19 Fir de Conversatie winterTTr
On Thu, Nov 19, 2009 at 9:53 PM, Henrik Öhman spe...@gmail.com wrote: On Oct 19, 11:10 am, winterTTr winterttr@gmail.com wrote: I don't know much about the memory management for the vim. But , recently , my gvim ( gvim72 under WinXP ) always give a warning about Out of memory

Re: Patch 7.2.268

2009-11-03 Fir de Conversatie winterTTr
On Tue, Nov 3, 2009 at 6:43 PM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.2.268 Problem:Crash when using Python to set cursor beyond end of line. (winterTTr) Solution: Check the column to be valid. Files: src/if_python.c *** ../vim-7.2.267/src/if_python.c

Re: to let buffers just open on a specific window

2009-11-01 Fir de Conversatie winterTTr
2009/10/31 Tony Mechelynck antoine.mechely...@gmail.com: On 30/09/09 03:05, winterTTr wrote: Is there a way to let the buffer just open on a specific windows ? OK , maybe i should use a example to explain my need. for example , i use vim open 3 file which will cause vim to own three

Problem about the browse command

2009-10-29 Fir de Conversatie winterTTr
There is a problem about the browse command for my gvim now. However, i can not find the reason for it. I remember that , when i run the command :browse w filename to a new buffer, there should be a dialog shown to let me select the file position for saving , but now the dialog does not show any

Re: A bug or a misuse with the vim function setbufvar?

2009-10-27 Fir de Conversatie winterTTr
2009/10/27 Ben Fritz fritzophre...@gmail.com: On Oct 26, 9:44 pm, winterTTr winterttr@gmail.com wrote: Is there anything wrong with my operation ? PS:    version info : vi...@winxp I don't see anything immediately wrong with what you did (though I think hard-coding the buffer

A bug or a misuse with the vim function setbufvar?

2009-10-26 Fir de Conversatie winterTTr
I think you can reproduce the case like this open a new vim : source the code below : ---code 1- call bufnr( PV_LISTBUF_8680477943 ,1 ) call setbufvar( 2 , modifiable , 0 ) call setbufvar( 2 , swapfile , 0 ) call setbufvar( 2 , buftype ,

Is there a memory limit for a single vim instance ?

2009-10-19 Fir de Conversatie winterTTr
I don't know much about the memory management for the vim. But , recently , my gvim ( gvim72 under WinXP ) always give a warning about Out of memory! (allocating %d bytes) where %d is a number . The warning appeared sometimes, but not every time. I try to autoload some python module ( written

Re: a question about map command

2009-10-10 Fir de Conversatie winterTTr
Thanks to your answer and , so kindly for the hint about the function name :-) 2009/10/10 Ingo Karkat sw...@ingo-karkat.de: On 10-Oct-09 4:22, winterTTr wrote: I map a vim key like this nnoremap F1 :call foo()CR and , foo() is a function written by myself. Is there a way  to enter

bug about the 'vim' python module

2009-10-10 Fir de Conversatie winterTTr
OS: WindowsXP VIM : vim72 MS-Windows 32-bit GUI version i am doing a coding through the python module ' vim' for vim and , find a problem which will cause the vim to crash. you can try it like this : 1. save a file as bellow = test.vim--- function! Foo()

a question about map command

2009-10-09 Fir de Conversatie winterTTr
I map a vim key like this nnoremap F1 :call foo()CR and , foo() is a function written by myself. Is there a way to enter the insert-mode after this map is executed , without modifying the map-command itself. i mean , if i can just add some function call in the foo() to do this ?

to let buffers just open on a specific window

2009-09-29 Fir de Conversatie winterTTr
Is there a way to let the buffer just open on a specific windows ? OK , maybe i should use a example to explain my need. for example , i use vim open 3 file which will cause vim to own three buffers in the buffer list . : ls buffer 1 buffer 2 buffer 3 # just for show , not the output of and