Re: text substitution for all the files opened in vim

2011-02-23 Thread Ben Schmidt
On 24/02/11 3:50 PM, Peng Yu wrote: :%s only perform substitution with a file. Is there a command that can perform substitution in all the files that are opened by a vim session? Check out :help :argdo :help :bufdo Cheers, Ben. -- You received this message from the "vim_use" maillist. Do

Re: text substitution for all the files opened in vim

2011-02-23 Thread Michael(Xi Zhang)
On Wed, Feb 23, 2011 at 9:50 PM, Peng Yu wrote: > :%s only perform substitution with a file. Is there a command that can > perform substitution in all the files that are opened by a vim session? > > You can try :bufdo %s ... Refer help bufdo for more information. -- You received this message

text substitution for all the files opened in vim

2011-02-23 Thread Peng Yu
:%s only perform substitution with a file. Is there a command that can perform substitution in all the files that are opened by a vim session? -- 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

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

Any dict plugin to translate English to Japanese?

2011-02-23 Thread robert song
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 informat

Re: Vim Aware File Management?

2011-02-23 Thread Marc Weber
Excerpts from howardb21's message of Thu Feb 24 01:51:36 +0100 2011: > Im not sure how other.vim tracks changes, between sessions. Say > viminfo contains information about filename1, that you edited in a > previous session. In the current session, you rename filename1 to > filename2. If you did not

Re: Vim Aware File Management?

2011-02-23 Thread howardb21
On Feb 23, 1:27 pm, Marc Weber wrote: > Funny idea. > > It can be done. There exist different ways to track file changes for > Windows (?), linux and mac. > However I'm not sure its worth the effort because this simple VimL code > was enough for > me:https://github.com/MarcWeber/vim-addon-othe

Re: Need search pattern

2011-02-23 Thread Rostyslaw Lewyckyj
Jean-Rene David wrote: * Rostyslaw Lewyckyj [2011.02.23 13:10]: In a regular expression search pattern, how do I specify a string of fifty nine , non blank characters? \S\{59} Thank you all, including: ZyX , AK -- Rostyk -- You received this message from the "vim_use" maillist

Re: Where g:, b:, t: and w: variables are described?

2011-02-23 Thread Tim Chase
On 02/23/2011 04:14 PM, ZyX wrote: I recently found that there exists `g:' (without any text after `:') variable which is a dictionary that holds all other global variables, same for `b:', `t:' and `w:' variables. Can anybody point me in which help topic they are described? You can read about t

Re: Where g:, b:, t: and w: variables are described?

2011-02-23 Thread Benjamin R. Haskell
On Thu, 24 Feb 2011, ZyX wrote: I recently found that there exists `g:' (without any text after `:') variable which is a dictionary that holds all other global variables, same for `b:', `t:' and `w:' variables. Can anybody point me in which help topic they are described? By the way, the foll

Where g:, b:, t: and w: variables are described?

2011-02-23 Thread ZyX
I recently found that there exists `g:' (without any text after `:') variable which is a dictionary that holds all other global variables, same for `b:', `t:' and `w:' variables. Can anybody point me in which help topic they are described? By the way, the following hack works: let g:["000"]

Re: Vim Aware File Management?

2011-02-23 Thread Marc Weber
Funny idea. It can be done. There exist different ways to track file changes for Windows (?), linux and mac. linux: inotify. Maybe install inotifytools to get an idea whether it would work mac: never used it. Seems to be called FSevents or such windows: no idea. You can find ruby mac, linux impl

Single Instance in Console?

2011-02-23 Thread howardb21
One can edit many files with a single instance of vim, with the argument --remote-tab-silent. Although not clear in the documentation, the `remote' features only work in ms windows and X windows -- not in a console window, dos box, or non-graphic shell. In this regard, I wish the `remote' function

Vim Aware File Management?

2011-02-23 Thread howardb21
Vim keeps all kinds of info. about how you are editing a file. That is, the undo history, bookmarks, content of registers, etc. -- are kept in .viminfo. Under what conditions, is vim aware of your management of the file itself - for instance, that you have moved, renamed, or deleted a previously ed

Re: Need search pattern

2011-02-23 Thread AK
On 02/23/2011 01:20 PM, ZyX wrote: Reply to message «Re: Need search pattern», sent 21:16:54 23 February 2011, Wednesday by AK: No, my mistake - that doesn't work.. -Rainyday You forgot that vim likes backslashes: \S\{59} or \v\S{59} (second uses «very magic»). Ah, right, I always forget {

Re: Need search pattern

2011-02-23 Thread Jean-Rene David
* Rostyslaw Lewyckyj [2011.02.23 13:10]: > In a regular expression search pattern, how do I specify a string > of fifty nine , non blank characters? \S\{59} -- JR -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Need search pattern

2011-02-23 Thread ZyX
Reply to message «Re: Need search pattern», sent 21:16:54 23 February 2011, Wednesday by AK: > No, my mistake - that doesn't work.. -Rainyday You forgot that vim likes backslashes: \S\{59} or \v\S{59} (second uses «very magic»). Original message: > On 02/23/2011 01:14 PM, AK wrote: > > On 02/23

Re: Need search pattern

2011-02-23 Thread AK
On 02/23/2011 01:14 PM, AK wrote: On 02/23/2011 01:05 PM, Rostyslaw Lewyckyj wrote: In a regular expression search pattern, how do I specify a string of fifty nine , non blank characters? Something like: \S{59} HTH, -Rainyday No, my mistake - that doesn't work.. -Rainyday -- You received t

Re: Need search pattern

2011-02-23 Thread AK
On 02/23/2011 01:05 PM, Rostyslaw Lewyckyj wrote: In a regular expression search pattern, how do I specify a string of fifty nine , non blank characters? Something like: \S{59} HTH, -Rainyday -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

Need search pattern

2011-02-23 Thread Rostyslaw Lewyckyj
In a regular expression search pattern, how do I specify a string of fifty nine , non blank characters? -- Rostyk -- 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