Re: gvim works is slow on centos
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 --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Any dict plugin to translate English to Japanese?
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 sell dict file? I don't know well though. On Thu, Feb 24, 2011 at 10:09 AM, robert song wrote: > Hi, everyone. > > Is there any vim plugin which can search for one English word and > translate it into Japanese? > > And any free dict file? > > Regards, > robert > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Any dict plugin to translate English to Japanese?
> I run the command in vim, but it fails with SEGV. Vim does segfault? strange. but at least, segfault seems that it is not vim plugin's bug, but Vim's bug. you must install one of w3m, lynx, elinks, links to get content according to :help ref-alc (oh I found that ref.vim does not 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: >> 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 単語 > > I run the command in vim, but it fails with SEGV. > >> >>> And any free dict file? >> alc.co.jp also sell dict file? >> I don't know well though. >> > > There are some free dict file like > http://www.namazu.org/~tsuchiya/sdic/data/gene.html > > But it only translate English to Japanese, and is very simple. > > Regards, > robert > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Any dict plugin to translate English to Japanese?
I haven't used cursoroverdictionary yet but it also seems a interesting and extensible plugin. to read his japanese blog entries: http://d.hatena.ne.jp/ampmmn/searchdiary?word=cursoroverdictionary cursoroverdictionary's features: - it has operator to search from alc.co.jp - hmm, I don't want that because I want to select a query without text-object in most cases like Vim's gf command behavior. operator feels too much feature for me. - it can define query like the followings: call cursoroverdictionary#add("boost", 'http://www.kmonos.net/alang/boost/classes/{word}.html', "utf-8", "utf-8") call cursoroverdictionary#set_trim_pattern("boost", '', '') command! -nargs=* LetsBoost CODSearchEx boost - ref.vim does not have the feature currently because it is not only for alc dictionary. it is an interface for perldoc, pydoc, man, and so on. I think it is not difficult to implement a similar feature in ref.vim ref.vim's features: - it supports many sources - alc, clojure, erlang, hoogle, man, perldoc, phpmanual, pydoc, refe - there are many users so it is well-tested plugin. - you can define a own source (:help ref-sources). - it is fully customizable - you can use K ("(ref-keyword)"), which is the same behavior as Vim's K command at default. - but for example, in perldoc buffer, it looks up a perl module. - for me, thinca who is the author of ref.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 > > which can do the work. > > On 2/24/11, tyru wrote: >> 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 sell dict file? >> I don't know well though. >> >> On Thu, Feb 24, 2011 at 10:09 AM, robert song >> wrote: >>> Hi, everyone. >>> >>> Is there any vim plugin which can search for one English word and >>> translate it into Japanese? >>> >>> And any free dict file? >>> >>> Regards, >>> robert >>> >>> -- >>> You received this message from the "vim_use" maillist. >>> Do not top-post! Type your reply below the text you are replying to. >>> For more information, visit http://www.vim.org/maillist.php >>> >> >> -- >> You received this message from the "vim_use" maillist. >> Do not top-post! Type your reply below the text you are replying to. >> For more information, visit http://www.vim.org/maillist.php >> > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Any dict plugin to translate English to Japanese?
> 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 run the command in vim, but it fails with SEGV. >> Vim does segfault? strange. >> but at least, segfault seems that it is not vim plugin's bug, but Vim's bug. >> you must install one of w3m, lynx, elinks, links to get content >> according to :help ref-alc >> (oh I found that ref.vim does not 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. > > yes, I install w3m. > And I set the following comand in ~/.vimrc. > let g:ref_alc_cmd='w3m -dump %s' > > I use CentOS 5.5 and vim version is > vim-enhanced-7.0.109-6.el5 > > Regards, > robert > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Any dict plugin to translate English to Japanese?
> there is a function in cursoroverdictionary, if we have a local > dictionary file, we can use CODRegisteDict to create a database file > from the file, and use :CODToggle to open a new windows, and in > another windows of vim, as the pointer moves to another place, the > word will be translated and displayed on the dict window, that is why I > want to use a local dictionary file, I think this way seems to more > convenient. looks interesting. I will let thinca support that maybe? :-) > Of course, I will try to use ref.vim and it also seems to be a nice > one. :) 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 >> but it also seems a interesting and extensible plugin. >> to read his japanese blog entries: >> http://d.hatena.ne.jp/ampmmn/searchdiary?word=cursoroverdictionary >> >> cursoroverdictionary's features: >> - it has operator to search from alc.co.jp >> - hmm, I don't want that because I want to select a query >> without text-object in most cases like Vim's gf command behavior. >> operator feels too much feature for me. >> - it can define query like the followings: >> call cursoroverdictionary#add("boost", >> 'http://www.kmonos.net/alang/boost/classes/{word}.html', "utf-8", >> "utf-8") >> call cursoroverdictionary#set_trim_pattern("boost", '', '') >> command! -nargs=* LetsBoost CODSearchEx boost >> - ref.vim does not have the feature currently because it is not only >> for alc dictionary. >> it is an interface for perldoc, pydoc, man, and so on. >> I think it is not difficult to implement a similar feature in ref.vim >> >> ref.vim's features: >> - it supports many sources >> - alc, clojure, erlang, hoogle, man, perldoc, phpmanual, pydoc, refe >> - there are many users so it is well-tested plugin. >> - you can define a own source (:help ref-sources). >> - it is fully customizable >> - you can use K ("(ref-keyword)"), which is the same behavior as >> Vim's K command at default. >> - but for example, in perldoc buffer, it looks up a perl module. >> - for me, thinca who is the author of ref.vim is my friend so I >> quickly can send a bug report/patch/feature request! :p > > there is a function in cursoroverdictionary, if we have a local > dictionary file, we can use CODRegisteDict to create a database file > from the file, and use :CODToggle to open a new windows, and in > another windows of vim, as the pointer moves to another place, the > word will be translated and displayed on the dict window, that is why I > want to use a local dictionary file, I think this way seems to more > convenient. > > Of course, I will try to use ref.vim and it also seems to be a nice > one. :) > > Regards, > robert > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Conditional bundle loading?
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 (on the order of 30 seconds) for vim (7.3.230 OS X), through some effort I tracked this > down to the syntastic bundle. I like this bundle and it is really useful sometimes, but most of the time it is not needed for > the files I am editing. > > Is there a way to create a map to load this module, or have it load conditionally? > > Thanks, > > Matt > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Conditional bundle loading?
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 manually. > https://github.vim/thinca/vim-rtputil Oops... URL is wrong. https://github.com/thinca/vim-rtputil > > > > > I was getting really long load times (on the order of 30 seconds) for vim (7.3.230 OS X), through some effort I tracked this > > down to the syntastic bundle. I like this bundle and it is really useful sometimes, but most of the time it is not needed for > > the files I am editing. > > > > Is there a way to create a map to load this module, or have it load conditionally? > > > > Thanks, > > > > Matt > > > > -- > > > You received this message from the "vim_use" maillist. > > Do not top-post! Type your reply below the text you are replying to. > > For more information, visit http://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzyfinder | Tabs for cycling selections
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 selections in the one-line buffer (shown when we > execute :FufBuffer). I use the latest fuzzyfinder version. In a previous > version I was able to use the Tab key to cycle through the selections. But > now when I press tab vim puts me into "Insert mode" and inserts a > tab-whitespace. How do I get vim to cycle through the selections when I > press the tab key? > > I had tried setting wildmenu on, but still the behavior is the same. I also > tried mapping to . But that did not work either. My vimrc has the > following entries relevant to this issue. > > set wildmenu > nnoremap :tabn "this I use for going to next tab > > I would appreciate input on this problem. > > Thanks, > Prasad -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzyfinder | Tabs for cycling selections
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 selections in the one-line buffer (shown when we > execute :FufBuffer). I use the latest fuzzyfinder version. In a previous > version I was able to use the Tab key to cycle through the selections. But > now when I press tab vim puts me into "Insert mode" and inserts a > tab-whitespace. How do I get vim to cycle through the selections when I > press the tab key? > > I had tried setting wildmenu on, but still the behavior is the same. I also > tried mapping to . But that did not work either. My vimrc has the > following entries relevant to this issue. > > set wildmenu > nnoremap :tabn "this I use for going to next tab > > I would appreciate input on this problem. > > Thanks, > Prasad -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzyfinder | Tabs for cycling selections
On Mar 11, 9:34 pm, voxner 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-whitespace, but subsequently the > cycling of selections work. hmm, I'm using version 3.5(latest) and it works. But so, how about this? autocmd BufFilePost \[fuf\] imap autocmd BufFilePost \[fuf\] imap or autocmd BufEnter,BufFilePost \[fuf\] imap autocmd BufEnter,BufFilePost \[fuf\] imap > > I also noticed a "[R]" before the files which was not the case before adding > the two lines. Any idea why it's there? Also the does not work, > meaning there is no reverse cycling on pressing Shift-Tab, because I use > as the special key for my screen terminal emulator. > > But the primary problem is the insertion of tab-whitespace the first time I > 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 \[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 selections in the one-line buffer (shown when we > > > execute :FufBuffer). I use the latest fuzzyfinder version. In a previous > > > version I was able to use the Tab key to cycle through the selections. > > But > > > now when I press tab vim puts me into "Insert mode" and inserts a > > > tab-whitespace. How do I get vim to cycle through the selections when I > > > press the tab key? > > > > I had tried setting wildmenu on, but still the behavior is the same. I > > also > > > tried mapping to . But that did not work either. My vimrc has > > the > > > following entries relevant to this issue. > > > > set wildmenu > > > nnoremap :tabn "this I use for going to next tab > > > > I would appreciate input on this problem. > > > > Thanks, > > > Prasad > > > -- > > You received this message from the "vim_use" maillist. > > Do not top-post! Type your reply below the text you are replying to. > > For more information, visithttp://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzyfinder | Tabs for cycling selections
Maybe that indicates type of items, I don't know for details though... On Mar 11, 10:49 pm, voxner wrote: > Hi, > > 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: > > > On Mar 11, 9:34 pm, voxner 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-whitespace, but subsequently the > > > cycling of selections work. > > > hmm, I'm using version 3.5(latest) and it works. > > But so, how about this? > > > autocmd BufFilePost \[fuf\] imap > > autocmd BufFilePost \[fuf\] imap > > > or > > > autocmd BufEnter,BufFilePost \[fuf\] imap > > autocmd BufEnter,BufFilePost \[fuf\] imap > > > > I also noticed a "[R]" before the files which was not the case before > > adding > > > the two lines. Any idea why it's there? Also the does not work, > > > meaning there is no reverse cycling on pressing Shift-Tab, because I use > > > as the special key for my screen terminal emulator. > > > > But the primary problem is the insertion of tab-whitespace the first time > > I > > > 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 \[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 selections in the one-line buffer (shown > > when we > > > > > execute :FufBuffer). I use the latest fuzzyfinder version. In a > > previous > > > > > version I was able to use the Tab key to cycle through the > > selections. > > > > But > > > > > now when I press tab vim puts me into "Insert mode" and inserts a > > > > > tab-whitespace. How do I get vim to cycle through the selections when > > I > > > > > press the tab key? > > > > > > I had tried setting wildmenu on, but still the behavior is the same. > > I > > > > also > > > > > tried mapping to . But that did not work either. My vimrc > > has > > > > the > > > > > following entries relevant to this issue. > > > > > > set wildmenu > > > > > nnoremap :tabn "this I use for going to next tab > > > > > > I would appreciate input on this problem. > > > > > > Thanks, > > > > > Prasad > > > > > -- > > > > You received this message from the "vim_use" maillist. > > > > Do not top-post! Type your reply below the text you are replying to. > > > > For more information, visithttp://www.vim.org/maillist.php > > > -- > > You received this message from the "vim_use" maillist. > > Do not top-post! Type your reply below the text you are replying to. > > For more information, visithttp://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzyfinder | Tabs for cycling selections
Hi. I asked this question at chat room about vim. Room's member told me that [R] indicates readonly. And someone also told my code was slightly bad. autocmd FileType fuf imap autocmd FileType fuf imap should be right. On Mar 11, 10:49 pm, voxner wrote: > Hi, > > 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: > > > On Mar 11, 9:34 pm, voxner 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-whitespace, but subsequently the > > > cycling of selections work. > > > hmm, I'm using version 3.5(latest) and it works. > > But so, how about this? > > > autocmd BufFilePost \[fuf\] imap > > autocmd BufFilePost \[fuf\] imap > > > or > > > autocmd BufEnter,BufFilePost \[fuf\] imap > > autocmd BufEnter,BufFilePost \[fuf\] imap > > > > I also noticed a "[R]" before the files which was not the case before > > adding > > > the two lines. Any idea why it's there? Also the does not work, > > > meaning there is no reverse cycling on pressing Shift-Tab, because I use > > > as the special key for my screen terminal emulator. > > > > But the primary problem is the insertion of tab-whitespace the first time > > I > > > 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 \[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 selections in the one-line buffer (shown > > when we > > > > > execute :FufBuffer). I use the latest fuzzyfinder version. In a > > previous > > > > > version I was able to use the Tab key to cycle through the > > selections. > > > > But > > > > > now when I press tab vim puts me into "Insert mode" and inserts a > > > > > tab-whitespace. How do I get vim to cycle through the selections when > > I > > > > > press the tab key? > > > > > > I had tried setting wildmenu on, but still the behavior is the same. > > I > > > > also > > > > > tried mapping to . But that did not work either. My vimrc > > has > > > > the > > > > > following entries relevant to this issue. > > > > > > set wildmenu > > > > > nnoremap :tabn "this I use for going to next tab > > > > > > I would appreciate input on this problem. > > > > > > Thanks, > > > > > Prasad > > > > > -- > > > > You received this message from the "vim_use" maillist. > > > > Do not top-post! Type your reply below the text you are replying to. > > > > For more information, visithttp://www.vim.org/maillist.php > > > -- > > You received this message from the "vim_use" maillist. > > Do not top-post! Type your reply below the text you are replying to. > > For more information, visithttp://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzyfinder | Tabs for cycling selections
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 that [R] indicates readonly. > > And someone also told my code was slightly bad. > > autocmd FileType fuf imap > autocmd FileType fuf imap > > should be right. > > On Mar 11, 10:49 pm, voxner wrote: > > > Hi, > > > 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: > > > > On Mar 11, 9:34 pm, voxner 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-whitespace, but subsequently > > > > the > > > > cycling of selections work. > > > > hmm, I'm using version 3.5(latest) and it works. > > > But so, how about this? > > > > autocmd BufFilePost \[fuf\] imap > > > autocmd BufFilePost \[fuf\] imap > > > > or > > > > autocmd BufEnter,BufFilePost \[fuf\] imap > > > autocmd BufEnter,BufFilePost \[fuf\] imap > > > > > I also noticed a "[R]" before the files which was not the case before > > > adding > > > > the two lines. Any idea why it's there? Also the does not work, > > > > meaning there is no reverse cycling on pressing Shift-Tab, because I use > > > > as the special key for my screen terminal emulator. > > > > > But the primary problem is the insertion of tab-whitespace the first > > > > time > > > I > > > > 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 \[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 selections in the one-line buffer (shown > > > when we > > > > > > execute :FufBuffer). I use the latest fuzzyfinder version. In a > > > previous > > > > > > version I was able to use the Tab key to cycle through the > > > selections. > > > > > But > > > > > > now when I press tab vim puts me into "Insert mode" and inserts a > > > > > > tab-whitespace. How do I get vim to cycle through the selections > > > > > > when > > > I > > > > > > press the tab key? > > > > > > > I had tried setting wildmenu on, but still the behavior is the same. > > > I > > > > > also > > > > > > tried mapping to . But that did not work either. My vimrc > > > has > > > > > the > > > > > > following entries relevant to this issue. > > > > > > > set wildmenu > > > > > > nnoremap :tabn "this I use for going to next tab > > > > > > > I would appreciate input on this problem. > > > > > > > Thanks, > > > > > > Prasad > > > > > > -- > > > > > You received this message from the "vim_use" maillist. > > > > > Do not top-post! Type your reply below the text you are replying to. > > > > > For more information, visithttp://www.vim.org/maillist.php > > > > -- > > > You received this message from the "vim_use" maillist. > > > Do not top-post! Type your reply below the text you are replying to. > > > For more information, visithttp://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: 'w' command to actually move to the next word
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 punctuation). After all, tar, foo, bar and jar are words > and =" is certainly not a word! And that's how I want vim to behave. I > want to be on 't' and hitting '3w' should take me to 'j'. > > Obviously I want this to work with all punctuation, :;,.- etc. > > Thanks! -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: How to keep the buffer unsaved while jumping to other file
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. > > yes, it's very helpful if I can take care not to use ":q!" while I > quit vim :-) If you want to :quit vim without saving unsaved buffer, create scratch buffer. http://www.vim.org/scripts/script.php?script_id=664 http://www.vim.org/scripts/script.php?script_id=2107 http://www.vim.org/scripts/script.php?script_id=389 I haven't tried all plugins though, maybe they won't disturb when you leave vim. > > Best Regards, > robert > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visithttp://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Exec Web Browser
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://stackoverflow.com/questions/8708154/open-current-file-in-web-browser-in-vim > > Which uses > nmap w :exec 'silent !google-chrome % &' > > But apparently that isn't working according to responses. I am on > windows and vim. > > Is there a way to adapt this or is there a better solution or plugin? > > Sayth > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Is there some copy of vim sources on github?
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 the sources as a zip file. The >> network configurations of the place where I work don't allow to clone >> directly from googlecode (or from other places either). >> >> Could someone point out suck a github clone of the sources? > > I think Björn Winckler provides a clone of the MacVim source at github, > which I believe also contains a branch of the original vim sources: > > https://github.com/b4winckler/macvim > > Mit freundlichen Grüßen > Christian > -- > Ein Mensch in verschiedenen Lebenszeiten ist sich nicht gleich, denkt > anders, nachdem er anders empfindet. > -- Johann Gottfried Herder (Vom Erkennen und Empfinden der > menschlichen Seele) > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Escaping for system()
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't recognize. So I implements a shellescape() function which is not affected by 'shellslash' option value. https://github.com/vim-jp/vital.vim/blob/9159770df1ba4b7b63da7a20fa7906bf66f6ebe/autoload/vital/__latest__/Process.vim#L140-L148 Windows side: Windows doesn't support multiple arguments by Win32API-level. A system call to run a new process(CreateProcess()) only has one command-line parameter including a program name and arguments. So a program must parse one concatenated argument to arguments. But this process was done by startup routine automatically generated by compiler thus usually you don't concern about it (in C, startup routine is called before main()). But there are two problems here: 1. There are programs that implements a startup routine by itself. For example, cygwin's binary executables implements a startup routine by itself to parse UNIXy special characters like glob pattern ("*"). 2. cmd.exe and CreateProcess()'s source code is closed. Thus we can't see precise parsing process. There are 3 important points to doubt when you debug: cmd.exe -> CreateProcess() -> startup routine -> [a program accesses arguments ...] Each processes parses arguments and may get wrong recognition there. Conclusion: Passing arguments to programs on Windows is too difficult ;( There are no *right* way to pass arguments. We always have to choose *mostly right* way... 2014/01/31 0:22 "Andrew Stewart" : > Hello! > > I have a plugin which uses `system(command, input)` to run some external > commands. There seem to be a few escaping problems (mostly on Windows). > > So I did some research and wrote it all up here: > https://github.com/airblade/vim-system-escape > > In a nutshell I'd like to write a VimL `shellescape(str)` function which > gets the escaping right for all Vim versions greater than, say, 7.0. I.e. > implement the current built-in escaping logic in VimL. > > And maybe have a similar function which escapes the whole command passed > to `system(command)`...though I'm not sure yet whether that's necessary. > > Anyway, I'd be most grateful for suggestions and/or feedback on my notes > at the link above. > > Thanks in advance, > > Andy Stewart > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Escaping for system()
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' option is set, shellescape() returns a string wrapped by single quotes which cmd.exe doesn't recognize. > So I implements a shellescape() function which is not affected by 'shellslash' option value. > https://github.com/vim-jp/vital.vim/blob/9159770df1ba4b7b63da7a20fa7906bf66f6ebe/autoload/vital/__latest__/Process.vim#L140-L148 > > Windows side: > Windows doesn't support multiple arguments by Win32API-level. > A system call to run a new process(CreateProcess()) only has one command-line parameter including a program name and arguments. > So a program must parse one concatenated argument to arguments. > But this process was done by startup routine automatically generated by compiler thus usually you don't concern about it (in C, startup routine is called before main()). > > But there are two problems here: > > 1. There are programs that implements a startup routine by itself. > For example, cygwin's binary executables implements a startup routine by itself to parse UNIXy special characters like glob pattern ("*"). > > 2. cmd.exe and CreateProcess()'s source code is closed. > Thus we can't see precise parsing process. > > There are 3 important points to doubt when you debug: > cmd.exe -> CreateProcess() -> startup routine -> [a program accesses arguments ...] > Each processes parses arguments and may get wrong recognition there. And you can skip cmd.exe if you use :!start (:help :!start). But :!start doesn't wait a process until exit. I hope system()'s first argument could take a List value and skip cmd.exe... > > Conclusion: > Passing arguments to programs on Windows is too difficult ;( > There are no *right* way to pass arguments. > We always have to choose *mostly right* way... > > 2014/01/31 0:22 "Andrew Stewart" : > >> Hello! >> >> I have a plugin which uses `system(command, input)` to run some external commands. There seem to be a few escaping problems (mostly on Windows). >> >> So I did some research and wrote it all up here: https://github.com/airblade/vim-system-escape >> >> In a nutshell I'd like to write a VimL `shellescape(str)` function which gets the escaping right for all Vim versions greater than, say, 7.0. I.e. implement the current built-in escaping logic in VimL. >> >> And maybe have a similar function which escapes the whole command passed to `system(command)`...though I'm not sure yet whether that's necessary. >> >> Anyway, I'd be most grateful for suggestions and/or feedback on my notes at the link above. >> >> Thanks in advance, >> >> Andy Stewart >> >> -- >> -- >> You received this message from the "vim_use" maillist. >> Do not top-post! Type your reply below the text you are replying to. >> For more information, visit http://www.vim.org/maillist.php >> >> --- >> You received this message because you are subscribed to the Google Groups "vim_use" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advice needed: best practices for vim plugin testing
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/thinca/vim-themis Regards -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Replace v:val by v:key in a list if patter matches
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}) 2018-02-09 3:17 GMT+09:00 Ni Va : > Hi, > > > How can I change list item's value by list index using map(. > > > let list = ['foo', 'bar'] > let pattern = 'oo' > let mappedlist = [0, 'bar'] > > map(copy(s:xml), '(stridx(v:val,'.pattern.')>-1) ? v:key : v:val ') > > > Thank you > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Takuya Fujiwara -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
http://www.vim.org is down?
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 top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: str2float() issue
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 +'0b' => 240 P.S. Vim script can treat an exponential notation, but unary + operator can not convert it. :echo 1.0e3 => 1000.0 :echo +'1.0e3' => 1 > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Takuya Fujiwara -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.