Re: move tabs using mouse in gvim

2015-01-20 Thread Ken Takata
Hi, 2014/12/25 Thu 0:55:26 UTC+9 kamaraju kusumanchi wrote: > Is it possible to move tabs in a gvim window using mouse? Something similar > to the way we can move tabs across in chrome and firefox? In firefox, we can > even attach/detach tabs which would be really cool to have in gvim. > > I am

Re: why "function!" instead of just "function"

2015-01-20 Thread John Little
> On 2015-01-19 20:31, Bao Niu wrote: > "function!" vs. "function"? On Tuesday, January 20, 2015 at 5:49:55 PM UTC+13, Tim Chase replied: > If a function already exists with the same name as you want to > create, the "!" will tell it to overwrite the previously-existing > function. I'll add that

RE: why "function!" instead of just "function"

2015-01-20 Thread John Beckett
Bao Niu wrote: > I am learning Vimscript and I wonder if there is any > difference between writing "function!" vs. "function"? Expanding on Tim's reply, suppose you have file h.vim which contains: function! Hello() echoerr 'Hello' endfunction In Vim, assuming the directory shown by :pwd

RE: Should vimgrep always use "/" to enclose your search patterns?

2015-01-20 Thread John Beckett
Bao Niu wrote: > in Vim is enclosing your search pattern with "/" recommended? > The documentation says it is optional. If it's optional then > why not just forget it? I would be too nervous to follow Tim's advice, but it seems to work. Are you aware of the general rule that applies to commands li

Re: move tabs using mouse in gvim

2015-01-20 Thread Ben Fritz
On Tuesday, January 20, 2015 at 2:21:30 AM UTC-6, Ken Takata wrote: > > FYI, there is a patch to enable this without setting guioptions-=e: > https://groups.google.com/d/msg/vim_dev/LnZVZYls1yk/fj_Gz0vhnrsJ > With this patch, you can drag GUI tabs on Linux GTK and Windows. > Unfortunately it is no

Re: semicolon to repeat "f" delay

2015-01-20 Thread Salman Halim
On Jan 20, 2015 1:23 AM, "Sergei Gerasenko" wrote: > > Oh yeah, quite a few mappings starting from ; Problem solved. Thanks, guys! > > On Mon, Jan 19, 2015 at 10:56 PM, Erik Falor wrote: >> >> On Mon, Jan 19, 2015 at 08:22:05PM -0800, surge wrote: >> > Hi, >> > >> > What has always puzzled me is

Re: why "function!" instead of just "function"

2015-01-20 Thread Steve Litt
On Tue, 20 Jan 2015 12:35:47 +0800 Xell Liu wrote: > On Tue, Jan 20, 2015 at 12:31 PM, Bao Niu wrote: > > What is that exclamation point for here? > > Try :help before asking! Xell Liu, If you have nothing to add to the discussion, why post at all? SteveT Steve Litt* http:/

Re: why "function!" instead of just "function"

2015-01-20 Thread Steve Litt
On Mon, 19 Jan 2015 22:50:49 -0600 Tim Chase wrote: > On 2015-01-19 20:31, Bao Niu wrote: > > I am learning Vimscript and I wonder if there is any difference > > between writing "function!" vs. "function"? What is that > > exclamation point for here? > > As detailed at > > :help E123 > > If

Re: why "function!" instead of just "function"

2015-01-20 Thread Salman Halim
On Jan 20, 2015 11:36 AM, "Steve Litt" wrote: > > On Mon, 19 Jan 2015 22:50:49 -0600 > Tim Chase wrote: > > > On 2015-01-19 20:31, Bao Niu wrote: > > > I am learning Vimscript and I wonder if there is any difference > > > between writing "function!" vs. "function"? What is that > > > exclamation

Re: why "function!" instead of just "function"

2015-01-20 Thread Nikolay Pavlov
2015-01-20 13:48 GMT+03:00 John Beckett : > Bao Niu wrote: > > I am learning Vimscript and I wonder if there is any > > difference between writing "function!" vs. "function"? > > Expanding on Tim's reply, suppose you have file h.vim which > contains: > > function! Hello() > echoerr 'Hello' >

Re: why "function!" instead of just "function"

2015-01-20 Thread Nikolay Pavlov
2015-01-20 19:42 GMT+03:00 Salman Halim : > > On Jan 20, 2015 11:36 AM, "Steve Litt" wrote: > > > > On Mon, 19 Jan 2015 22:50:49 -0600 > > Tim Chase wrote: > > > > > On 2015-01-19 20:31, Bao Niu wrote: > > > > I am learning Vimscript and I wonder if there is any difference > > > > between writin

Re: Should vimgrep always use "/" to enclose your search patterns?

2015-01-20 Thread Bao Niu
Thank you John, but your advice makes me nervous. Does this dot ('.') rule also apply to vimgrep? Or it's only for substitution? This must be something that only pros use? On Tue, Jan 20, 2015 at 2:48 AM, John Beckett wrote: > Bao Niu wrote: > > in Vim is enclosing your search pattern with "/" r

Re: Should vimgrep always use "/" to enclose your search patterns?

2015-01-20 Thread Erik Falor
On Tue, Jan 20, 2015 at 01:33:46PM -0800, Bao Niu wrote: > Thank you John, but your advice makes me nervous. Does this dot ('.') rule > also apply to vimgrep? Or it's only for substitution? > This must be something that only pros use? Don't let it intimidate you! It's quite simple, really. In fa

Re: why "function!" instead of just "function"

2015-01-20 Thread Bao Niu
Thank you guys, I really appreciate all the useful tips here! On Tue, Jan 20, 2015 at 9:46 AM, Nikolay Pavlov wrote: > > > 2015-01-20 19:42 GMT+03:00 Salman Halim : > >> >> On Jan 20, 2015 11:36 AM, "Steve Litt" wrote: >> > >> > On Mon, 19 Jan 2015 22:50:49 -0600 >> > Tim Chase wrote: >> > >>

Re: Should vimgrep always use "/" to enclose your search patterns?

2015-01-20 Thread Bao Niu
Thanks for this! On Tue, Jan 20, 2015 at 2:01 PM, Erik Falor wrote: > On Tue, Jan 20, 2015 at 01:33:46PM -0800, Bao Niu wrote: > > Thank you John, but your advice makes me nervous. Does this dot ('.') > rule > > also apply to vimgrep? Or it's only for substitution? > > This must be something tha

Re: Should vimgrep always use "/" to enclose your search patterns?

2015-01-20 Thread Tim Chase
[reordering as inline replies are preferred over top-posting on this mailing list] On 2015-01-20 13:33, Bao Niu wrote: >> An example to replace "hello" with "goodbye": >> >> :%s/hello/goodbye/g >> >> Suppose you need to replace something with slashes in it. >> The following attempt to replace "a

Timeout of i_CTRL-X mode (insert_expand)

2015-01-20 Thread Дарио Ѓорѓевски
I noticed that the mode used for auto-completion etc., that you enter by pressing CTRL-X when in insert mode, times out very fast. Why is this so? Increasing timeoutlen and even setting notimeout made no difference. It does not appear to be a plugin issue. I am running Vim 7.4.580 on Arch Linux

Re: Timeout of i_CTRL-X mode (insert_expand)

2015-01-20 Thread Дарио Ѓорѓевски
Okay, the issue is not present without any config (-u NONE). Any idea what could cause this? I have no idea where to start looking. 21.01.2015, 00:42, "Дарио Ѓорѓевски" : > I noticed that the mode used for auto-completion etc., that you enter by > pressing CTRL-X when in insert mode, times out v

Gvim shows wrong color for highlight group color names on Ubuntu 14.04

2015-01-20 Thread Jacky Liu
Freshly installed Ubuntu 14.04 then built gvim 7.4 on it, I just discovered that the colors gvim picked were all wrong for the predefined color names, like the name "Green",See below: http://bluegene8210.is-programmer.com/user_files/bluegene8210/Image/Screenshot%20from%202015-01-21%2010:14:26.p

Re: Should vimgrep always use "/" to enclose your search patterns?

2015-01-20 Thread Nikolay Pavlov
2015-01-21 1:50 GMT+03:00 Tim Chase : > [reordering as inline replies are preferred over top-posting on this > mailing list] > > On 2015-01-20 13:33, Bao Niu wrote: > >> An example to replace "hello" with "goodbye": > >> > >> :%s/hello/goodbye/g > >> > >> Suppose you need to replace something wi

Re: Gvim shows wrong color for highlight group color names on Ubuntu 14.04

2015-01-20 Thread Jacky Liu
On Wednesday, January 21, 2015 at 11:31:27 AM UTC+8, Jacky Liu wrote: > Freshly installed Ubuntu 14.04 then built gvim 7.4 on it, I just discovered > that the colors gvim picked were all wrong for the predefined color names, > like the name "Green",See below: > > http://bluegene8210.is-programme