Re: gvim doesn't start from desktop icons or unity launcher but from shell

2011-11-21 Thread punknroll
On 19 Nov., 06:22, Tony Mechelynck wrote: > On 15/11/11 08:20, punknroll wrote: > > > hi all, > > > when i  try to start gvim from the desktop icon or the unity launcher > > the gvim process shows up for a few seconds when i run "top" in the > > shell but doesn't start. When I enter the same com

Re: Different path variables

2011-11-21 Thread Srushti
I use zsh, vim's ':set shell' also returns '/bin/zsh'. I do have some PATH stuff going on in my .zshrc, but I can't imagine that being run twice would cause any issues. If anything that should lead to the folders showing up twice, which while not ideal shouldn't cause any (especially these) proble

Re: In script always search from start of buffer

2011-11-21 Thread porphyry5
On Sun, Nov 20, 2011 at 1:25 PM, Gary Johnson-4 [via VIM] wrote: > On 2011-11-20, porphyry5 wrote: >> In a script, how can I get repeated searches always to begin at the start >> of >> the buffer? >> If I precede the search with gg  or :cursor(1, 1) I get E492, with 1G I >> get >> E464. >> >> :map

Re: In script always search from start of buffer

2011-11-21 Thread Tim Chase
On 11/21/11 05:11, Graham Lawrence wrote: On Sun, Nov 20, 2011 at 1:12 PM, Tim Chase wrote: ...:b#:0sil! /0i and just prefix the search/silent command with the line number from which you want to start (either "0" in my example, or possibly "1"; difference being what happens when a match occu

Re: In script always search from start of buffer

2011-11-21 Thread porphyry5
On Sun, Nov 20, 2011 at 5:10 PM, Tony Mechelynck [via VIM] wrote: > Yes, and why not use bar-separated commands? You _are_ running in > 'nocompatible' mode aren't you? The following (untested) assumes that > this mapping definition is part of a script (of your vimrc, maybe): Essentially I wrote

Re: In script always search from start of buffer

2011-11-21 Thread Graham Lawrence
On Mon, Nov 21, 2011 at 4:44 AM, Tim Chase wrote: > In normal-mode, the number prefixing a search is a count, to find the Nth > match.  In command-line mode (entered when you hit the colon), it's the line > at which to start. > >> But one thing still puzzles me: in fact, I had tried each of gg, 1

Re: _vimrc file on Windows with 7.3

2011-11-21 Thread Ben Fritz
On Nov 20, 6:44 pm, Henry Hertz Hobbit wrote: > I use these function keys on Linux with no problems (the zz > is lower case, not upper case and was done to get rid of some > strange behavior on OpenSuse 11.2 until I altered what caused > it not to come back to where I was at but shoved the line

Re: _vimrc file on Windows with 7.3

2011-11-21 Thread Ben Fritz
On Nov 20, 8:59 pm, "John Beckett" wrote: > Henry Hertz Hobbit wrote: > > I have the _vimrc file in these two locations: > > > %UserProfile%\_vimrc > > %ProgramFiles%\Vim > > > The Wiki mentions $Home for Windows. > > The wiki is correct. > Vim does NOT use %USERPROFILE% or %ProgramFiles%. > So

can I disable input method in vim normal mode

2011-11-21 Thread jason . 桂林
I normally input code in vim, it's all ascii chars, but sometime I need type chinese, for document and comment. The input method is chinese at insert mode, and I press , and then I type some vim command, but this command can't be execute unless I switch input method back to english. I will never

Re: can I disable input method in vim normal mode

2011-11-21 Thread Albin Olsson
On Mon, Nov 21, 2011 at 6:37 PM, jason.桂林 wrote: > I normally input code in vim, it's all ascii chars, but sometime I need type > chinese, for document and comment. > The input method is chinese at insert mode, and I press , and then I > type some vim command, but this command can't be execute unl

Re: Different path variables

2011-11-21 Thread John Little
On Nov 22, 12:13 am, Srushti wrote: > Assuming I can't find anything is there some hack-y way where I can > override the PATH used in the shell in a vim setting so that I can > actually get back to being able to run my tests from inside vim? Sure, :let $PATH = 'whatever' Regards, John -- Yo

RE: _vimrc file on Windows with 7.3

2011-11-21 Thread John Beckett
Ben Fritz wrote: >> The wiki is correct. >> Vim does NOT use %USERPROFILE% or %ProgramFiles%. > > Sorry, John. Not quite true. > > Although I don't think Vim uses USERPROFILE, it *does* use > the program files directory by default. If a _vimrc is not > found in $HOME, Vim looks it the $VIM director

Re: Different path variables

2011-11-21 Thread Benjamin R. Haskell
On Thu, 17 Nov 2011, Srushti wrote: I use Vim primarily to write ruby code. Recently I switched to using rbenv which involves changing the PATH variable to add some shims (for which I've added a couple of lines to my .zshrc). .zshrc is only for interactive shells, which wouldn't cover: :!ech

Re: Different path variables

2011-11-21 Thread Gary Johnson
On 2011-11-21, John Little wrote: > On Nov 22, 12:13 am, Srushti wrote: > > > Assuming I can't find anything is there some hack-y way where I can > > override the PATH used in the shell in a vim setting so that I can > > actually get back to being able to run my tests from inside vim? > > Sure, >

How do I make vim.exe / gvim.exe use ncftp.exe instead of ftp.exe?

2011-11-21 Thread Haider Raza
I have tried the 'let g:netrw_ftp_cmd="ncftp"' command in vim and in the _vimrc file. I also edited the netwr.vim file directly and put ncftp there but when I look at the dos box that comes up when the ftp request is made to edit a file, I see that vim is using ftp.exe to make the connection. Pleas

Re: How do I make vim.exe / gvim.exe use ncftp.exe instead of ftp.exe?

2011-11-21 Thread Tony Mechelynck
On 22/11/11 00:35, Haider Raza wrote: I have tried the 'let g:netrw_ftp_cmd="ncftp"' command in vim and in the _vimrc file. I also edited the netwr.vim file directly and put ncftp there but when I look at the dos box that comes up when the ftp request is made to edit a file, I see that vim is us

Re: can I disable input method in vim normal mode

2011-11-21 Thread Tony Mechelynck
On 21/11/11 18:37, jason.桂林 wrote: I normally input code in vim, it's all ascii chars, but sometime I need type chinese, for document and comment. The input method is chinese at insert mode, and I press , and then I type some vim command, but this command can't be execute unless I switch input m

Re: can I disable input method in vim normal mode

2011-11-21 Thread pansz
2011/11/22 Tony Mechelynck : > - for X11 (compiled with +xim) >        :help mbyte-XIM > - for all versions (compiled with either of the above) >        :help 'imactivatekey' >        :help 'imcmdline' >        :help 'imdisable' >        :help 'iminsert' >        :help 'imsearch' > Does this work

Re: In script always search from start of buffer

2011-11-21 Thread Tony Mechelynck
On 21/11/11 14:19, porphyry5 wrote: On Sun, Nov 20, 2011 at 5:10 PM, Tony Mechelynck [via VIM] <[hidden email] > wrote: > Yes, and why not use bar-separated commands? You _are_ running in > 'nocompatible' mode aren't you? The following (untested) assumes that > this mapping definition is part

Re: In script always search from start of buffer

2011-11-21 Thread Tony Mechelynck
On 21/11/11 15:23, Graham Lawrence wrote: On Mon, Nov 21, 2011 at 4:44 AM, Tim Chase wrote: In normal-mode, the number prefixing a search is a count, to find the Nth match. In command-line mode (entered when you hit the colon), it's the line at which to start. But one thing still puzzles me

Change text-object from start of line

2011-11-21 Thread Nathan Neff
I like the ci" feature in Vim, especially how you can type ci" from *outside* a quoted string. Vim figures out that I want to change the contents of the first quoted string on the line. But, Vim only does this for single quotes and double quotes. Why is that? For example, if my cursor is at ">"

Re: Change text-object from start of line

2011-11-21 Thread Rich Healey
I don't know for sure (And hopefully someone who does will chime in) but my hypothesis is that it relates to quotes using the same character for beginning and end. This is supported by the same behavior for backticks, ie > rawr test `ps aux` (type di` ) rawr test `` -- You received this mes

Re: In script always search from start of buffer

2011-11-21 Thread Tony Mechelynck
On 21/11/11 12:22, porphyry5 wrote: On Sun, Nov 20, 2011 at 1:25 PM, Gary Johnson-4 [via VIM] <[hidden email] > wrote: > On 2011-11-20, porphyry5 wrote: >> In a script, how can I get repeated searches always to begin at the start >> of >> the buffer? >> If I precede the search with gg or :

Re: can I disable input method in vim normal mode

2011-11-21 Thread Tony Mechelynck
On 22/11/11 04:23, pansz wrote: 2011/11/22 Tony Mechelynck: - for X11 (compiled with +xim) :help mbyte-XIM - for all versions (compiled with either of the above) :help 'imactivatekey' :help 'imcmdline' :help 'imdisable' :help 'iminsert' :help 'imse

Re: can I disable input method in vim normal mode

2011-11-21 Thread alick oahz
于 2011年11月22日 01:37, jason.桂林 写道: > I normally input code in vim, it's all ascii chars, but sometime I need > type chinese, for document and comment. > > The input method is chinese at insert mode, and I press , and then I > type some vim command, but this command can't be execute unless I switch >

Re: can I disable input method in vim normal mode

2011-11-21 Thread pansz
2011/11/22 alick oahz : > I guess the best way is to use vimim plugin. You can find it here: This still does not solve the problem when you use console vim. because the XIM is always there. and now you've got 2 different IM. vimim can be more useful if you can completely disable system XIM when y

Re: Dotfile and Github

2011-11-21 Thread carlosvillu
Thx Rich and Jacobo, I will try the two option to see what is the best for me. :) On Nov 20, 12:55 pm, Rich Healey wrote: > I went the other way, I have a script to copy my dotfiles out into another > repo ( and to strip private data in transit ) > > The reason for this is that the full and unabr