Re: python can not access predefined variable

2017-03-17 Fir de Conversatie Yggdroot Chen
在 2017年3月17日星期五 UTC+8下午6:19:04,ZyX写道: > 2017-03-17 12:58 GMT+03:00 Yggdroot Chen : > > One local buffer variable is predefined: > > *b:changedtick* *changetick* > > > > But I can't access it through this: > >

python can not access predefined variable

2017-03-17 Fir de Conversatie Yggdroot Chen
One local buffer variable is predefined: *b:changedtick* *changetick* But I can't access it through this: :py print vim.current.buffer.vars["changedtick"] I think this is a bug! Perhaps there are other predefined variables which have this issue. -- --

[bug] getchar(0) should not return `<80>^B`

2016-06-05 Fir de Conversatie Yggdroot Chen
execute the following commands: :set nomore :while 1|sleep 1|echo getchar(0)|endw if input the key , the output will be: <80>^B<80>, <80>^B<80>. <80>^B <80>^B <80>^B <80>^B ... I think the output should be <80>^B<80>, <80>^B<80>. 0 0 0 ... There

Re: [bug] os.chdir() report E344 when destination directory contains Chinese characters.

2016-06-01 Fir de Conversatie Yggdroot Chen
在 2016年6月1日星期三 UTC+8下午7:53:23,Ken Takata写道: > Hi, > > 2016/6/1 Wed 17:36:35 UTC+9 Yggdroot Chen wrote: > > Steps to reproduce: > > 1. Open vim in directory D:\中文\test\ > > 2. Execute the following commands: > > :py import os > > :py os.chdir('

[bug] os.chdir() report E344 when destination directory contains Chinese characters.

2016-06-01 Fir de Conversatie Yggdroot Chen
Steps to reproduce: 1. Open vim in directory D:\中文\test\ 2. Execute the following commands: :py import os :py os.chdir('..') the change succeed, but raise an error: Traceback (most recent call last): File "", line 1, in vim.error: failed to change directory Error d

Re: [patch] Option to show indent level with 'expandtab' and 'list' option

2013-11-28 Fir de Conversatie Yggdroot Chen
在 2013年11月27日星期三UTC+8下午2时56分58秒,hari.g写道: > Hi, > > The attached patch adds a 'listchars' option 'lsp' which marks leading space > at 'shiftwidth' with the defined characer so that you can follow the indent > level in a bit too much nested code when you also have 'expandtab' option set > and us