Yang Zhang | 1 Sep 01:46 2007
Picon

Filetype detection outside ~/.vim


I have some filetype files that work fine when I put them in ~/.vim:

$ ls */scala.vim
ftdetect/scala.vim  indent/scala.vim  syntax/scala.vim
$ cat ftdetect/scala.vim
au BufRead,BufNewFile *.scala set filetype=scala

However, when I move these into an alternative rtp (from which plugins
are working fine), the filetype is no longer being handled. I tried
looking in help for more details but haven't found anything. Any
hints? Thanks!

Yang

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

gmguyx | 1 Sep 01:56 2007
Picon

how to get list of open windows


Is there some function I can call to get the list of open windows (not
buffers) in vim? When I say windows I mean split windows. The reason I
need this is because I'm writing a script whose behavior will be
different depending on how many split windows are open.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

John Beckett | 1 Sep 02:38 2007
Picon

Re: repeat a search and replace


On 8/31/07, jturnbull wrote:
> how do I repeat this command on another line without re-typing it?

Folks, we could use some help putting this valuable information on the
Vim Tips wiki!

There are two tips that use  <at> : and they should be merged:

 http://vim.wikia.com/wiki/VimTip44
 http://vim.wikia.com/wiki/VimTip990

If anyone feels inspired to contribute, please edit tip 44 to include
a summary of the info from this thread. You might also copy any useful
content from tip 990 into tip 44, then I can do some magic to flag tip
990 for deletion.

Or, if you don't want to bother editing the wiki, email some plain
text here or direct to me, and I'll fix the wiki.

If you are really inspired, please see the guidelines:
 http://vim.wikia.com/wiki/Vim_Tips_Wiki:General_guidelines

BTW The title for tip 990 is somewhat broken because the wiki doesn't
like ':' in a title - I'll fix that in due course (although in this
case, the tip should just be deleted).

John

--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

Tim Chase | 1 Sep 02:47 2007

Re: how to get list of open windows


> Is there some function I can call to get the list of open windows (not
> buffers) in vim? When I say windows I mean split windows. The reason I
> need this is because I'm writing a script whose behavior will be
> different depending on how many split windows are open.

If you mean an actual List of the (":help List"), you can use

  :let x=[]
  :windo call add(x, winnr())

If you want the filename as well,

  :let x=[]
  :windo call add(x, [winnr(), bufname('%')])
  :echo x

With a little jockeying, you can even preserve the window and
return to it:

  :let oldwin=winnr()
  :let x=[]
  :windo call add(x, winnr())
  :exec oldwin.'wincmd w'

HTH,

-tim

--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

A.Politz | 1 Sep 03:11 2007
Picon

Re: how to get list of open windows


gmguyx wrote:

>Is there some function I can call to get the list of open windows (not
>buffers) in vim? When I say windows I mean split windows. The reason I
>need this is because I'm writing a script whose behavior will be
>different depending on how many split windows are open.
>
>
>>
>  
>
list_of_open_window = range(1,winnr('$'))

-ap

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

John Beckett | 1 Sep 03:32 2007
Picon

RE: Finally on the list?


A.Politz wrote:
> I have a `real` mail receiving problem, that is I don't 
> receive any mail from vim_dev at all.  I subscribed to both, 
> created a google-account, joined both groups and checked the 
> 'send be everything by mail' button.  I did a couple of un- 
> and subscribings, but no change.  Is this already addressed 
> in some thread ?

Did you see the message from Bram sent 16 Aug 2007? 
Subject: Problems with Vim lists on Google Groups

The message said that some people had problems because of a failed attempt
to mass-subsribe the old addresses. That is, if you are using an address
that was subscribed to the old vim.org list, you may have been blocked.

Bram said: If you have the problems described, you can do one of these:
- Subscribe with another e-mail address.
- Some people reported that it started working after creating a Google
  account.
- Contact Groups support at this URL:
  http://groups.google.com/support/bin/request.py

John

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

Dave Land | 1 Sep 04:03 2007
Picon

Re: Feature request... non-uniform tabstops

On Aug 28, 2007, at 3:49 PM, Mark Waggoner wrote:

On 8/27/07, Tony Mechelynck < antoine.mechelynck <at> gmail.com> wrote:

I'm skeptical of all this however. Vim is a plaintext editor, not a
spreadsheet. Or is that old-fashioned me throwing wrenches into the wheels of
progress?
If vim was just a plaintext editor, we would not have syntax highlighting, folding, or quite a few other things.

Well-said, Mark, but Tony knew he was being a bit of a Luddite...

Vim, like Emacs, is as much a _platform_ as a text editor, so extending it is in its DNA.

If it was _just_ a text editor, we probably wouldn't even have Vim, just vi.

Dave



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

=

A.Politz | 1 Sep 05:26 2007
Picon

Re: Finally on the list?


John Beckett wrote:

>A.Politz wrote:
>  
>
>>I have a `real` mail receiving problem, that is I don't 
>>receive any mail from vim_dev at all.  I subscribed to both, 
>>created a google-account, joined both groups and checked the 
>>'send be everything by mail' button.  I did a couple of un- 
>>and subscribings, but no change.  Is this already addressed 
>>in some thread ?
>>    
>>
>
>Did you see the message from Bram sent 16 Aug 2007? 
>Subject: Problems with Vim lists on Google Groups
>  
>
I read it, and now I am starting to remember, that I
subscribed to the old list the week it broke.

>The message said that some people had problems because of a failed attempt
>to mass-subsribe the old addresses. That is, if you are using an address
>that was subscribed to the old vim.org list, you may have been blocked.
>
>Bram said: If you have the problems described, you can do one of these:
>- Subscribe with another e-mail address.
>- Some people reported that it started working after creating a Google
>  account.
>  
>
So I don't actually _have_ to create one, in order to get
the list by mail ? I'd like to think that I had to for vim_use.

>- Contact Groups support at this URL:
>  http://groups.google.com/support/bin/request.py
>  
>
filling in forms, mh

>John
>
>
>>
>  
>
Thanks John for remainding me.

-ap

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

gmguyx | 1 Sep 05:40 2007
Picon

Re: how to get list of open windows


Thanks for the help Tim and AP!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Tony Mechelynck | 1 Sep 06:00 2007
Picon

Re: skinny cursor in terminal


James M Beck wrote:
> The one thing I really like about gvim is the skinny cursor when in insert  
> mode. Is there any way to get a skinny cursor in the terminal version? Is  
> there another good way to allow VIM to use the cursor to tell me what mode  
> I'm in?
> 
> Perhaps the cursor could blink faster?
> 
> Thanks!

Vim knows how to vary the height (but not the width) of the cursor -- but only 
in DOS or Win32 versions: see ":help 'guicursor'".

In other console versions I guess you're pretty much at the mercy of the 
terminal. If you know which control characters to send to the terminal to 
change the shape of the cursor, you can define 't_SI' and 't_EI' in your 
vimrc, see ":help termcap-cursor-shape".

Best regards,
Tony.
--

-- 
A jury consists of 12 persons chosen to decide
who has the better lawyer.
		-- Robert Frost

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---


Gmane