Re: str2float() issue

2018-11-26 Thread tyru
2018年11月25日(日) 14:51 : > > str2float('0x1') returns 1 ( as expected ) > but > str2float('0b1') returns 0 ( why ? ) If you want to convert strings of hexadecimal (0xa), octal (0755), binary (0b) to integers, you can use unary + operator. :echo +'0xa' => 10 :echo +'0755' => 493 :echo +'0b11

http://www.vim.org is down?

2018-02-14 Thread tyru
Hi list, When I access to http://www.vim.org , I was redirected to https://sourceforge.net/error-404.html . ("Page not found - SourceForge.net") But it seems https://vim.sourceforge.io/ is alive, though. -- Takuya Fujiwara -- -- You received this message from the "vim_use" maillist. Do not

Re: Replace v:val by v:key in a list if patter matches

2018-02-14 Thread tyru
Hi Ni Va, You can choose what you like. let list = ['foo', 'bar'] let pattern = 'oo' echo map(copy(list), 'v:val =~# pattern ? v:key : v:val') " or echo map(copy(list), 'v:val =~# '.string(pattern).' ? v:key : v:val') " or (Vim 8 or higher) echo map(copy(list), {i,v -> v =~# pattern ? i : v}) 2

Re: Advice needed: best practices for vim plugin testing

2017-10-20 Thread tyru
2017/10/20 16:29 "lith" : > I have tried a couple of other vim plugins for testing with little/no success. Which one did you try? Are you looking for something like vader < https://github.com/junegunn/vader.vim>? Or if you want a full stack one, themis.vim is also the thing. https://github.com/

Re: Escaping for system()

2014-01-30 Thread tyru
2014/01/31 2:34 "tyru" : > > Hi. > > Passing arguments to programs on Windows is difficult at several points, > especially when you pass multiple arguments or *special character* at many many sides... > > Vim side: > on Windows, when 'shellslash' o

Re: Escaping for system()

2014-01-30 Thread tyru
Hi. Passing arguments to programs on Windows is difficult at several points, especially when you pass multiple arguments or *special character* at many many sides... Vim side: on Windows, when 'shellslash' option is set, shellescape() returns a string wrapped by single quotes which cmd.exe doesn'

Re: Is there some copy of vim sources on github?

2013-03-21 Thread tyru
Another one here: https://github.com/vim-jp/vim On Thu, Mar 21, 2013 at 5:44 AM, Christian Brabandt wrote: > Hi skeept! > > On Mi, 20 Mär 2013, skeept wrote: > >> Hi, >> >> I recall someone having a(non-official) copy of the vim sources on github. >> This is useful for me because I can download t

Re: Exec Web Browser

2012-10-19 Thread tyru
Hi Sayth Renshaw Try this script: http://www.vim.org/scripts/script.php?script_id=3133 On Thu, Oct 18, 2012 at 8:26 AM, Sayth Renshaw wrote: > Hi > > I have been looking for a way to send a html file to browser to review > it. There is a lot of attempts, there is one here on stackoverflow > http

Re: Conditional bundle loading?

2011-09-22 Thread tyru
2011/09/23 8:38 "tyru" : > > > 2011/09/23 2:47 "Matt Martini" : > > > > > I would like to know if there is a way to conditionally load a bundle, or if there is an way to load a bundle manually. > > rtputil.vim has the functionality to load a bundle

Re: Conditional bundle loading?

2011-09-22 Thread tyru
2011/09/23 2:47 "Matt Martini" : > > I would like to know if there is a way to conditionally load a bundle, or if there is an way to load a bundle manually. rtputil.vim has the functionality to load a bundle manually. https://github.vim/thinca/vim-rtputil > > I was getting really long load times

Re: Any dict plugin to translate English to Japanese?

2011-02-25 Thread tyru
) yeah, ref.vim is nice but cursoroverdictionary seems to fit your requirements. I think ref.vim is overspec just to look up an English or Japanese word. On Fri, Feb 25, 2011 at 5:14 PM, robert song wrote: > On 2/25/11, tyru wrote: >> I haven't used cursoroverdictionary yet >>

Re: Any dict plugin to translate English to Japanese?

2011-02-25 Thread tyru
> I use CentOS 5.5 and vim version is > vim-enhanced-7.0.109-6.el5 hmm.. I don't have vim older than 7.2 so I can't test that. I recommend to upgrade your vim. On Fri, Feb 25, 2011 at 5:05 PM, robert song wrote: > Hi, tyru, > > On 2/25/11, tyru wrote: >>> I ru

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread tyru
ef.vim is my friend so I quickly can send a bug report/patch/feature request! :p 2011/2/25 robert song : > By the way, there is another plugin > cursoroverdictionary : Look up word or phrase in English-Japanese > Dictionary > http://www.vim.org/scripts/script.php?script_id=2680 >

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread tyru
have english help. I will report or send pull request to ref.vim's author) Please tell me your Vim's version and OS. and check if you installed program required for ref-alc source. 2011/2/25 robert song : > Hi, tyru, > thank you very much. > > On 2/24/11, tyru wrote: >&

Re: Any dict plugin to translate English to Japanese?

2011-02-23 Thread tyru
http://alc.co.jp/ supports English to Japanese, Japanese to English. and if you want to look up in vim, ref.vim is good. http://www.vim.org/scripts/script.php?script_id=3067 " Translate "word" to Japanese. :Ref alc word " Translate "単語" to English. :Ref alc 単語 > And any free dict file? alc.co.jp

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread tyru
Hi. On May 18, 8:25 pm, robert song wrote: > Thank you very much, Ephraim, > > > I like to just :set hidden, which keeps all buffers in memory even when they > > are not visible.  I tend to think the default, which doesn't do this is a > > holdover from when memory was much more expensive. > > ye

Re: 'w' command to actually move to the next word

2010-03-26 Thread tyru
Hi. Try smartword. http://www.vim.org/scripts/script.php?script_id=2470 On Mar 26, 9:42 am, AK wrote: > Is there any way to get vim's 'w' command (and similar) to move from > word to word? > > E.g.:   tar > > I want vim to see this as 4 words separated by non-words (i.e. > whitespace and punctu

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi. Sorry to send mails again and again. 'inoremap' is better than 'imap'. autocmd FileType fuf inoremap autocmd FileType fuf inoremap On Mar 12, 1:01 am, tyru wrote: > Hi. > > I asked this question at chat room about vim. > Room's member told me

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
t; > Thanks. > > autocmd BufEnter,BufFilePost \[fuf\] imap > > works. But I still see '[R]' at the beginning of each selection. Any idea > what it signifies? Hope it's not an issue. > > Thanks, > voxner > > On Thu, Mar 11, 2010 at 6:25 PM, tyru wrote: > &

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
at it signifies? Hope it's not an issue. > > Thanks, > voxner > > On Thu, Mar 11, 2010 at 6:25 PM, tyru wrote: > > > On Mar 11, 9:34 pm, voxner wrote: > > > Hi, > > > > Thanks for the tip. But I am facing a weird problem, the first time I

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
gt; use the tab key to cycle through selections. > > Thanks, > voxner > > On Thu, Mar 11, 2010 at 5:37 PM, tyru wrote: > > Hi voxner. > > > ':set wildmenu' does not change fuzzyfinder's behavior. > > How about this? > > > autocmd BufEnter

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi voxner. ':set wildmenu' does not change fuzzyfinder's behavior. How about this? autocmd BufEnter \[fuf\] imap autocmd BufEnter \[fuf\] imap On Mar 11, 2:46 pm, voxner wrote: > Hi, > > I use fuzzyfinder to cycle between buffers. I am forced to use the > command to cycle between selec

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi voxner. ':set wildmenu' does not change fuzzyfinder's behavior. How about this? autocmd BufEnter \[fuf\] imap autocmd BufEnter \[fuf\] imap On Mar 11, 2:46 pm, voxner wrote: > Hi, > > I use fuzzyfinder to cycle between buffers. I am forced to use the > command to cycle between selec

Re: gvim works is slow on centos

2009-07-15 Thread tyru
if your gvim gets sometimes freezed, put this on your .vimrc if has('unix') set nofsync set swapsync= endif I'm using Vim 7.2 on CentOS 5.3. oren_a wrote: > I've recently installed centos and it seems that gvim (version 7.1) > works much slower than it used to work on the redhat version