Re: Single Instance in Console?

2011-02-24 Thread Marko Mahnič
On Feb 23, 10:17 pm, howardb21 howard...@gmail.com wrote: Is there some way one could use only one instance of vim, when editing files in a plain old unix shell? Only way I can think of, offhand, is to write a vim shell script that ran instead of vim.exe. Then, vim filename  -- would check if

Re: Single Instance in Console?

2011-02-24 Thread Marko Mahnič
This may be what you are looking for: X terminal 1:   vim --servername THEONE X terminal 2:   vim --servername THEONE --remote file_to_edit.txt This should open the file in vim running in terminal 1. If you don't use --servername with --remote, the server name defaults to VIM, so here

Re: Single Instance in Console?

2011-02-24 Thread Benjamin R. Haskell
On Thu, 24 Feb 2011, Marko Mahnič wrote: On Feb 23, 10:17 pm, howardb21 wrote: Is there some way one could use only one instance of vim, when editing files in a plain old unix shell? Only way I can think of, offhand, is to write a vim shell script that ran instead of vim.exe. Then, vim

Re: text substitution for all the files opened in vim

2011-02-24 Thread Tim Chase
On 02/23/2011 11:20 PM, Ben Schmidt wrote: 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 ...remembering that vim will

Re: text substitution for all the files opened in vim

2011-02-24 Thread Christian Brabandt
On Thu, February 24, 2011 1:03 pm, Tim Chase wrote: On 02/23/2011 11:20 PM, Ben Schmidt wrote: :help :argdo :help :bufdo ...remembering that vim will complain if you try to leave a modified buffer unless you 1) save the buffer as part of your command: :bufdo %s/foo/bar/g|w 2) set

Re: text substitution for all the files opened in vim

2011-02-24 Thread David Kahn
On Thu, Feb 24, 2011 at 6:33 AM, Christian Brabandt cbli...@256bit.orgwrote: On Thu, February 24, 2011 1:03 pm, Tim Chase wrote: On 02/23/2011 11:20 PM, Ben Schmidt wrote: :help :argdo :help :bufdo ...remembering that vim will complain if you try to leave a modified buffer unless you

Re: text substitution for all the files opened in vim

2011-02-24 Thread Tim Chase
On 02/24/2011 09:07 AM, David Kahn wrote: On Thu, Feb 24, 2011 at 6:33 AM, Christian Brabandtcbli...@256bit.orgwrote: On Thu, February 24, 2011 1:03 pm, Tim Chase wrote: On 02/23/2011 11:20 PM, Ben Schmidt wrote: :help :argdo :help :bufdo ...remembering that vim will complain if you try to

Re: Using no hard line breaks

2011-02-24 Thread Chris Jones
On Mon, Feb 21, 2011 at 11:55:39AM EST, Benjamin R. Haskell wrote: On Mon, 21 Feb 2011, Chris Jones wrote: On Mon, Feb 21, 2011 at 03:57:17AM EST, Erik Christiansen wrote: On Sun, Feb 20, 2011 at 02:37:33PM -0500, Chris Jones wrote: [..] Bt, I don't understand how Esc becomes alt/meta,

Re: Vim Aware File Management?

2011-02-24 Thread Ben Fritz
On Feb 23, 3:27 pm, Marc Weber marco-owe...@gmx.de wrote: 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

Re: Vim Aware File Management?

2011-02-24 Thread Marc Weber
I don't think the simple code you point to handles the undo files. I I use version control systems rather than undo files. So yes - this code only gets my job done. Marc Weber -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Automatically open new files in tabs

2011-02-24 Thread Matt
How can Vim be setup so that all new files edited will open in their own tab? I know I can open multiple files from the command line, each in their own tab with: $ vim -p aaa.txt bbb.txt ccc.txt And if I have multiple files open in buffers I can put them each into a tab with: :tab ball

Re: Automatically open new files in tabs

2011-02-24 Thread AK
On 02/24/2011 03:02 PM, Matt wrote: How can Vim be setup so that all new files edited will open in their own tab? I know I can open multiple files from the command line, each in their own tab with: $ vim -p aaa.txt bbb.txt ccc.txt And if I have multiple files open in buffers I can put

Re: Automatically open new files in tabs

2011-02-24 Thread Ben Schmidt
On 25/02/11 7:02 AM, Matt wrote: How can Vim be setup so that all new files edited will open in their own tab? I know I can open multiple files from the command line, each in their own tab with: $ vim -p aaa.txt bbb.txt ccc.txt And if I have multiple files open in buffers I can put them

Re: Automatically open new files in tabs

2011-02-24 Thread Matt Martini
Ben, AK: Thanks for the help. I did a bit of reading and now understand the purpose/functionality of tabs in Vim much better. $ alias vim='vim -p' Got me most of the way there. With this Bash alias if I open a bunch of files at once they will open in a separate tab each. I also mapped

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread robert song
Hi, tyru, thank you very much. On 2/24/11, tyru tyru@gmail.com 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

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread 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 tyru@gmail.com wrote: http://alc.co.jp/ supports English to Japanese, Japanese to

Why doesn't the cursor go beyond the last character in Vim when in command mode?

2011-02-24 Thread Gerardo Marset
I'm quite new at Vim and I love it already, but this question just won't let me sleep. Why is it that the cursor doesn't go beyond the last character when in command mode? I find it kind of wierd, and because of that I have to use either a or A to append something to a line (instead of i).

Re: Why doesn't the cursor go beyond the last character in Vim when in command mode?

2011-02-24 Thread Ben Schmidt
On 25/02/11 10:06 AM, Gerardo Marset wrote: I'm quite new at Vim and I love it already, but this question just won't let me sleep. Why is it that the cursor doesn't go beyond the last character when in command mode? I find it kind of wierd, and because of that I have to use either a or A to

Re: Why doesn't the cursor go beyond the last character in Vim when in command mode?

2011-02-24 Thread AK
On 02/24/2011 06:06 PM, Gerardo Marset wrote: I'm quite new at Vim and I love it already, but this question just won't let me sleep. Why is it that the cursor doesn't go beyond the last character when in command mode? I find it kind of wierd, and because of that I have to use either a or A to

Re: How to open files in splitted tabs

2011-02-24 Thread Vladimir Rybas
From my .vim config ... Tabs nmap M-t :spcrC-wT Open current buffer in new tab nmap M-w :tabclosecr map C-Left esc:tabpreviouscr map C-Right esc:tabnextcr Open tab by number map M-1 1gt map M-2 2gt map M-3 3gt map M-4 4gt map M-5 5gt map M-6

Want to change color of highlighted text

2011-02-24 Thread Rostyslaw Lewyckyj
I have Vim 7.3 on a Win 7 system. Everything is absolutely default as installed from distribution package at vim.org. I am editing files of collected email in Gvim. (For anyone interested, I'm trying to clean up the grossly inflated headers of mailing list messages, such as those from

Re: Want to change color of highlighted text

2011-02-24 Thread AK
On 02/24/2011 08:58 PM, Rostyslaw Lewyckyj wrote: I have Vim 7.3 on a Win 7 system. Everything is absolutely default as installed from distribution package at vim.org. I am editing files of collected email in Gvim. (For anyone interested, I'm trying to clean up the grossly inflated headers of

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread tyru
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

Re: Any dict plugin to translate English to Japanese?

2011-02-24 Thread tyru
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

python, vsplit, wincmd

2011-02-24 Thread AK
Hi, I'm getting some odd results when using wincmd after vsplit in a vim python script: from vim import * command(vsplit) command(wincmd h) This creates a horizontal split! If the last line is commented out, I get a vertical split as expected. I also tried prepending ':', doing 'vertical

RE: Why doesn't the cursor go beyond the last character in Vim when in command mode?

2011-02-24 Thread John Beckett
Gerardo Marset wrote: Why is it that the cursor doesn't go beyond the last character when in command mode? I find it kind of wierd, and because of that I have to use either a or A to append something to a line (instead of i). There is also: :set virtualedit=all :help virtualedit One

Re: Why doesn't the cursor go beyond the last character in Vim when in command mode?

2011-02-24 Thread Erik Christiansen
On Thu, Feb 24, 2011 at 09:06:48PM -0200, Gerardo Marset wrote: I find it kind of wierd, and because of that I have to use either a or A to append something to a line (instead of i). Just one thought, in addition to the others: A major benefit of using 'A' is that you can do it from anywhere