Re: (g)vim changing directory on invocation

2010-05-24 Thread James Kanze
On May 22, 5:55 am, Ben Fritz fritzophre...@gmail.com wrote: On May 21, 1:32 pm, James Kanze james.ka...@gmail.com wrote: On May 20, 1:31 am, Charles E Campbell Jr drc...@campbellfamily.biz wrote: Do you happen to have the acd (autochdir) option set? :verbose set acd? (the question

:V generates E464: Ambiguous use of user-defined command (windows)

2010-05-24 Thread Jean Johner
Hello, Using the standard windows _vimrc and typing :V generates the message E464: Ambiguous use of user-defined command Typing :h :V only gives netrw command :Vexplore In the list in index.txt, I found no other command starting with :V Why this E464 error? Best regards Jean Johner -- You

Re: :V generates E464: Ambiguous use of user-defined command (windows)

2010-05-24 Thread Christian Brabandt
Hi Jean! On Mo, 24 Mai 2010, Jean Johner wrote: Hello, Using the standard windows _vimrc and typing :V generates the message E464: Ambiguous use of user-defined command Typing :h :V only gives netrw command :Vexplore In the list in index.txt, I found no other command starting with

Re: Replacements with return

2010-05-24 Thread leandromartinez98
On 22 maio, 19:59, Gary Johnson garyj...@spocom.com wrote: On 2010-05-22,leandromartinez98wrote: I'm trying do replace strings that contain return characters. For example, I would like to change: 0 0 to 1 1 --- I tried many things, as:

Terminal into vim, best options???

2010-05-24 Thread Pablo Giménez
Hi. I have been looking aroundto see what are the best options to have e fully usable terminal in VIM. Basically a buffer which opens a terminal. I have seen a coupleof options: VimSh: http://www.vim.org/scripts/script.php?script_id=165 Problem here is that it needs a python ready vim, which is

Re: :V generates E464: Ambiguous use of user-defined command (windows)

2010-05-24 Thread Tony Mechelynck
On 24/05/10 14:40, Christian Brabandt wrote: Hi Jean! On Mo, 24 Mai 2010, Jean Johner wrote: Hello, Using the standard windows _vimrc and typing :V generates the message E464: Ambiguous use of user-defined command Typing :h :V only gives netrw command :Vexplore In the list in index.txt, I

Re: Terminal into vim, best options???

2010-05-24 Thread Tony Mechelynck
On 24/05/10 15:29, Pablo Giménez wrote: Hi. I have been looking aroundto see what are the best options to have e fully usable terminal in VIM. Basically a buffer which opens a terminal. I have seen a coupleof options: VimSh: http://www.vim.org/scripts/script.php?script_id=165 Problem here is

Re: Terminal into vim, best options???

2010-05-24 Thread Tim Chase
On 05/24/2010 08:29 AM, Pablo Giménez wrote: I have been looking aroundto see what are the best options to have e fully usable terminal in VIM. ... Screen: http://www.vim.org/scripts/script.php?script_id=2711 This one looks good, and screen is a common in any UNIX system. I either use screen

Mapping the Super / Windows key

2010-05-24 Thread Bernhard Walle
Hi! Is it possible to map the Super key (Windows key) in gvim? I understand that this is quite hard / impossible in Terminal vim, but in gvim it should be possible in theory, right? Regards, Bernhard -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: Mapping the Super / Windows key

2010-05-24 Thread Tony Mechelynck
On 24/05/10 17:22, Bernhard Walle wrote: Hi! Is it possible to map the Super key (Windows key) in gvim? I understand that this is quite hard / impossible in Terminal vim, but in gvim it should be possible in theory, right? Regards, Bernhard Even in gvim, it isn't sure that the key reaches

Re: Mapping the Super / Windows key

2010-05-24 Thread Bernhard Walle
Am 24.05.2010 17:55, schrieb Tony Mechelynck: 1):set showcmd 2)Start Insert mode 3)Hit Ctrl-V (or Ctrl-Q if you use Ctrl-V to paste into Vim) 4)Hit the problematic key or key combo. If after step 4, you still see ^V (or maybe ^Q) at bottom right of the Vim screen, the key

Re: [patch] fixed grammatical errors in vim help files using LanguageTool

2010-05-24 Thread Matthew Winn
On Sat, 22 May 2010 09:43:40 +0200, Dominique Pellé dominique.pe...@gmail.com wrote: Attached patch fixes grammatical errors in the Vim help files. I found those errors using LanguageTool (http://www.languagetool.org/) It has made a couple of mistakes: runtime/doc/pi_netrw.txt -response

Re: Terminal into vim, best options???

2010-05-24 Thread thudfoo
Tony Mechelynck wrote: On 24/05/10 15:29, Pablo Giménez wrote: Hi. I have been looking aroundto see what are the best options to have e fully usable terminal in VIM. Basically a buffer which opens a terminal. I have seen a coupleof options: VimSh:

how to insert two lines at the same place in many files

2010-05-24 Thread Aryeh M. Friedman
I have over 300 files that need the following done to them: at line X insert the following two lines: xxx [foo] xxx ack where [foo] is the fully qualified path the the file with the /'s converted to .'s -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: how to insert two lines at the same place in many files

2010-05-24 Thread Tim Chase
On 05/24/2010 04:33 PM, Aryeh M. Friedman wrote: I have over 300 files that need the following done to them: at line X insert the following two lines: xxx [foo] xxx ack where [foo] is the fully qualified path the the file with the /'s converted to .'s assuming you've started vim with your

GVIM on Windows not loading vimrc sometimes

2010-05-24 Thread divad24
I'm using GVIM 7.2 on Windows 7 and am having a problem with the vimrc file. When I open GVIM and then open a file, it loads all my preferences just fine. When I right click on a file and select Edit with Vim it doesn't load my preferences. My _vimrc file is in C:\ vim72\. Is there something I

introduction, and a beginner question about vimrc files

2010-05-24 Thread Jose Caballero
Hi, this is my first post in this list, so I wanted to introduce myself and say hello to everyone here. I have a very basic question, as a beginner I am using vi. I use vim 6.3.82, on Red Hat. I have no root privileges. Right now I have all my mappings and abbreviations and those things in a

editing an existing buffer

2010-05-24 Thread Kirill Igumenshchev
hi, suppose i have a vim session (vim1) with multiple buffers. I open another session vim2 in another terminal and would like to edit one of the files that is already opened as a hidden buffer in vim1. is there a way to do so that both vim1 and vim2 are synced? --Kirill -- You

RE: GVIM on Windows not loading vimrc sometimes

2010-05-24 Thread John Beckett
divad24 wrote: I'm using GVIM 7.2 on Windows 7 and am having a problem with the vimrc file. When I open GVIM and then open a file, it loads all my preferences just fine. When I right click on a file and select Edit with Vim it doesn't load my preferences. My _vimrc file is in C:\vim72\. Is

Re: introduction, and a beginner question about vimrc files

2010-05-24 Thread Francisco Dibar
On Mon, May 24, 2010 at 4:02 PM, Jose Caballero jcaballero@gmail.com wrote: Right now I have all my mappings and abbreviations and those things in a single file: ~/.vimrc Clearly that is not efficient given I am using the same setup if I edit a python script, a HTML document, a C++ one,

RE: introduction, and a beginner question about vimrc files

2010-05-24 Thread John Beckett
Jose Caballero wrote: I use vim 6.3.82, on Red Hat. I have no root privileges. That version is extremely obsolete. It is possible to install your own version (without root privilege), but really you should use a large cluestick on your admins. Right now I have all my mappings and abbreviations

Re: GVIM on Windows not loading vimrc sometimes

2010-05-24 Thread Gary Johnson
On 2010-05-24, divad24 wrote: I'm using GVIM 7.2 on Windows 7 and am having a problem with the vimrc file. When I open GVIM and then open a file, it loads all my preferences just fine. When I right click on a file and select Edit with Vim it doesn't load my preferences. My _vimrc file is in

Re: introduction, and a beginner question about vimrc files

2010-05-24 Thread Gary Johnson
On 2010-05-24, Jose Caballero wrote: Hi, this is my first post in this list, so I wanted to introduce myself and say hello to everyone here. I have a very basic question, as a beginner I am using vi. I use vim 6.3.82, on Red Hat. I have no root privileges. Right now I have all my

Re: GVIM on Windows not loading vimrc sometimes

2010-05-24 Thread divad24
Okay, so I created a VIM environment variable, set to C:\vim72\ and now when I run GVim with the Edit with Vim button, I get this error message: Error detected while processing C:\vim72\_vimrc: line1: E185: Cannot find color scheme desert Error detected while processing C:\vim72\menu.vim:

macosx-10.6 + xterm: left/right arrows behave like shift left/right arrows

2010-05-24 Thread raf
hi, i've just got a new macbookpro with macosx-10.6.3 and have noticed that when running vim in an xterm (even via ssh onto a remote machine), the left and right arrow keys behave like shift left and right arrow keys moving a word at a time instead of a character at a time. i keep having to get

Re: Mapping the Super / Windows key

2010-05-24 Thread John Little
Unfortunately it seems that gvim doesn't get the Super key. You can make windows give gvim those keys (In windows speak they're called Left Windows, Right Windows, and Application). When I use vim on windows a lot I always do this; mostly as a side effect of fixing (polite term) the damned,

Re: macosx-10.6 + xterm: left/right arrows behave like shift left/right arrows

2010-05-24 Thread raf
raf wrote: hi, i've just got a new macbookpro with macosx-10.6.3 and have noticed that when running vim in an xterm (even via ssh onto a remote machine), the left and right arrow keys behave like shift left and right arrow keys moving a word at a time instead of a character at a time. i

Re: GVIM on Windows not loading vimrc sometimes

2010-05-24 Thread John Little
On May 25, 12:46 pm, divad24 danielschmid...@gmail.com wrote: Okay, so I created a VIM environment variable, set to C:\vim72\ and now when I run GVim  with the Edit with Vim button, I get this error message: IMO changing $VIM can cause trouble. The usual place on windows for _vimrc is $HOME,