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

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})

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

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

Re: Escaping for system()

2014-01-30 Thread tyru
2014/01/31 2:34 tyru tyru@gmail.com: 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

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 cbli...@256bit.org 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

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 flebber.c...@gmail.com 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

Re: Conditional bundle loading?

2011-09-22 Thread tyru
2011/09/23 2:47 Matt Martini matt.mart...@gmail.com: 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

Re: Conditional bundle loading?

2011-09-22 Thread tyru
2011/09/23 8:38 tyru tyru@gmail.com: 2011/09/23 2:47 Matt Martini matt.mart...@gmail.com: 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

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 robertsong.ja...@gmail.com wrote: Hi, tyru, On 2/25/11, tyru tyru@gmail.com wrote: I

Re: Any dict plugin to translate English to Japanese?

2011-02-25 Thread tyru
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 robertsong.ja...@gmail.com wrote: On 2/25/11, tyru tyru@gmail.com wrote: I haven't used cursoroverdictionary yet but it also seems

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread tyru
. 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 robertsong.ja...@gmail.com: Hi, tyru, thank you very much. On 2/24/11, tyru tyru@gmail.com wrote: http

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread tyru
robertsong.ja...@gmail.com: 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 which can do the work. On 2/24/11, tyru tyru@gmail.com wrote: http://alc.co.jp/ supports

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 also

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 robertsong.ja...@gmail.com 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

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 andrei@gmail.com wrote: Is there any way to get vim's 'w' command (and similar) to move from word to word? E.g.:   tar foo bar=jar I want vim to see this as 4 words separated by non-words

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 buffer Tab C-n autocmd BufEnter \[fuf\] imap buffer S-Tab C-p On Mar 11, 2:46 pm, voxner voxner@gmail.com wrote: Hi, I use fuzzyfinder to cycle between buffers. I am forced

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 buffer Tab C-n autocmd BufEnter \[fuf\] imap buffer S-Tab C-p On Mar 11, 2:46 pm, voxner voxner@gmail.com wrote: Hi, I use fuzzyfinder to cycle between buffers. I am forced

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
use the tab key to cycle through selections. Thanks, voxner On Thu, Mar 11, 2010 at 5:37 PM, tyru tyru@gmail.com wrote: Hi voxner. ':set wildmenu' does not change fuzzyfinder's behavior. How about this? autocmd BufEnter \[fuf\] imap buffer Tab   C-n autocmd BufEnter \[fuf

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
? Hope it's not an issue. Thanks, voxner On Thu, Mar 11, 2010 at 6:25 PM, tyru tyru@gmail.com wrote: On Mar 11, 9:34 pm, voxner voxner@gmail.com wrote: Hi, Thanks for the tip. But I am facing a weird problem, the first time I press tab key the behavior is insertion of tab

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
@gmail.com wrote: Hi, Thanks. autocmd BufEnter,BufFilePost \[fuf\] imap buffer Tab C-n 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 tyru@gmail.com wrote

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 buffer Tab C-n autocmd FileType fuf inoremap buffer S-Tab C-p On Mar 12, 1:01 am, tyru tyru@gmail.com wrote: Hi. I asked this question at chat room about vim. Room's member told

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