Re: Packages

2016-03-08 Thread LCD 47
On 8 March 2016, Bram Moolenaar wrote: > > Gary Johnson wrote: > > > On 2016-03-07, Eric Christopherson wrote: > > > On Sun, Mar 06, 2016, Benjamin Fritz wrote: > > > [in attachment] > > > > +directory under your package, whereas plugins you enable on demand go > > > > in

Re: Packages

2016-03-08 Thread h_east
Hi Bram, 2016-3-8(Tue) 21:49:39 UTC+9 Bram Moolenaar: > Gary Johnson wrote: > > > On 2016-03-07, Eric Christopherson wrote: > > > On Sun, Mar 06, 2016, Benjamin Fritz wrote: > > > [in attachment] > > > > +directory under your package, whereas plugins you enable on demand go > > > > in an > > >

Re: Go to definition and open in new tab

2016-03-08 Thread h_east
Hello Thomas! 2016-3-8(Tue) 19:04:06 UTC+9 Thomas R.: > Hello, > > I'm trying to remap the shortcut so it goes to the definition but using > a new tab. For example using . > > I have tried the following in my vimrc: > > nnoremap > > I don't understand why it doesn't

Re: How do I add the option +xterm_clipboard to terminal vim

2016-03-08 Thread Bee
On Monday, March 7, 2016 at 8:46:28 AM UTC-8, Gary Johnson wrote: > On 2016-03-07, Bee wrote: > > On Sunday, March 6, 2016 at 11:26:21 PM UTC-8, Gary Johnson wrote: > > > On 2016-03-06, Bee wrote: > > > > How do I add the option +xterm_clipboard to terminal vim? > > > > > > > > I can compile vim

Re: Packages

2016-03-08 Thread Bram Moolenaar
Gary Johnson wrote: > On 2016-03-07, Eric Christopherson wrote: > > On Sun, Mar 06, 2016, Benjamin Fritz wrote: > > [in attachment] > > > +directory under your package, whereas plugins you enable on demand go in > > > an > > > +"opt" directory so that |:packadd| can find them. See |pack-add|

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread rameo
Thanks but I still don't understand it. No problem. Hope I'll not have problems with `vim.current.buffer[linenr -1]`. My experience with Python tells me that Python language is much easier then vimscript. Things can be done easier with the many Python modules using less code then in vimscript.

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 14:03 GMT+03:00 rameo : >> Better `vim.Function('getline')(linenr) > > You seems to know everything in every computer language :) > Yes I use Pyth3 and many times also `vim.current.buffer[linenr-1]` > or things like this `r = vim.current.buffer[startline:endline]` > >

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread rameo
> Better `vim.Function('getline')(linenr) You seems to know everything in every computer language :) Yes I use Pyth3 and many times also `vim.current.buffer[linenr-1]` or things like this `r = vim.current.buffer[startline:endline]` To avoid decoding errors it is better to switch all these

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 13:34 GMT+03:00 Nikolay Aleksandrovich Pavlov : > 2016-03-08 13:22 GMT+03:00 rameo : >> Thank you. >> You're right. It is not a question of decoding a list but decoding a string. >> Never did anything before with string encoding. I've got it: I

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 13:22 GMT+03:00 rameo : > Thank you. > You're right. It is not a question of decoding a list but decoding a string. > Never did anything before with string encoding. I've got it: I cannot use > searchpos() to use with python. Searching positions must be done in

Re: Go to definition and open in new tab

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 13:04 GMT+03:00 Thomas R. : > Hello, > > I'm trying to remap the shortcut so it goes to the definition but using > a new tab. For example using . > > I have tried the following in my vimrc: > > nnoremap There is no key ``, you need to

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread rameo
Thank you. You're right. It is not a question of decoding a list but decoding a string. Never did anything before with string encoding. I've got it: I cannot use searchpos() to use with python. Searching positions must be done in python (p.e. finditer). BTW I thought that ['encoding'] was a

Go to definition and open in new tab

2016-03-08 Thread Thomas R.
Hello, I'm trying to remap the shortcut so it goes to the definition but using a new tab. For example using . I have tried the following in my vimrc: nnoremap I don't understand why it doesn't work. The shortcuts on the right seem to do exactly what I want when using

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 12:23 GMT+03:00 rameo : > Can't find anything on the net about string.encode(vim.options[encoding]). > No info either in Vim documentation: if_pyth > > Let say I create my list "MyPositions" with start/end position of matches > using searchpos() in vim. > > Then in my

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread rameo
Can't find anything on the net about string.encode(vim.options[encoding]). No info either in Vim documentation: if_pyth Let say I create my list "MyPositions" with start/end position of matches using searchpos() in vim. Then in my python code I have to do something like this to convert it to