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 informati
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
2010/11/4 lilydjwg :
> 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,
>>
>&
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 imp
On 12 August 2010 20:34, Ben Fritz wrote:
>
>
> On Aug 12, 4:23 am, winterTTr 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 thi
On 12 August 2010 17:01, Jürgen Krämer 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
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 t
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:
http://vim
On Tue, Jul 27, 2010 at 11:04 PM, Ben Fritz wrote:
>
>
> On Jul 27, 2:55 am, winterTTr 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
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 ca
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 t
On Fri, May 14, 2010 at 12:55 AM, Geert VL wrote:
> 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:
> \Ruby19
>
> This gives
On Thu, Mar 11, 2010 at 8:29 AM, SungHyun Nam 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 occur
On Tue, Mar 2, 2010 at 4:02 AM, Bram Moolenaar 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
On Fri, Feb 26, 2010 at 3:41 PM, winterTTr 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 th
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 run
On Fri, Jan 8, 2010 at 9:49 PM, Christian Brabandt wrote:
> Hi winterTTr!
>
> On Fr, 08 Jan 2010, winterTTr wrote:
>
> > 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
> > me
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 another
see that the vim can use the distributed version control system.
And the mercurial is my favorite one ^_^
Thanks for the repos~
Best Regards,
winterTTr
>
> --
> You can't have everything. Where would you put it?
>-- Steven Wright
>
> /// Bram Moolenaar
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
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
On Thu, Nov 19, 2009 at 9:53 PM, Henrik Öhman wrote:
>
> On Oct 19, 11:10 am, winterTTr 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! (a
On Tue, Nov 3, 2009 at 6:43 PM, Bram Moolenaar 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
2009/10/31 Tony Mechelynck :
>
> 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 caus
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
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
more,
2009/10/27 Ben Fritz :
>
>
>
> On Oct 26, 9:44 pm, winterTTr 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 h
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 , "&bufty
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
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()
py
Thanks to your answer
and , so kindly for the hint about the function name :-)
2009/10/10 Ingo Karkat :
>
> On 10-Oct-09 4:22, winterTTr wrote:
>> I map a vim key like this
>> nnoremap :call foo()
>>
>> and , foo() is a function written by myself.
>>
>>
I map a vim key like this
nnoremap :call foo()
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 ?
--~--~-~-
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 now
32 matches
Mail list logo