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,
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
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
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
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
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
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
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:
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
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
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
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:
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
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.
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
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
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
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
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
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
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
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
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
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
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
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 ,
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
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
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()
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 ?
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
31 matches
Mail list logo