listing total number of buffers in the statusline

2010-01-19 Thread John Magolske
I'd like to list in the statusline the current buffer number and the total number of open buffers. For example, if there are nine buffers open and I'm viewing buffer number two, I'd like to see: ~/somefilename.txt [2/9] I see that %n will place the current buffer number, but there doesn't seem

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-19 Thread Gary Johnson
On 2010-01-19, Peter Berntsen wrote: > Running 7.2.245 under Slackware Linux 13.0 and I have noticed that > my .vimrc file doesn't seem to be read. For example to not keep a > backup file I comment out the code for that in the vimrc file like > this. > "if has("vms") > " set nobackup " do

Re: Odd behavior of folds...

2010-01-19 Thread Benjamin R. Haskell
On Tue, 19 Jan 2010, Matt Wozniski wrote: > On Tue, Jan 19, 2010 at 8:01 PM, Benjamin R. Haskell wrote: > > Using this following minimal example, with foldmethod=marker: > > > > $ cat foldtest.txt > > {{{ > > }}} > > > > If I close the fold on the last character of a line, 'l' will not > > open t

Re: Odd behavior of folds...

2010-01-19 Thread Matt Wozniski
On Tue, Jan 19, 2010 at 8:01 PM, Benjamin R. Haskell wrote: > Using this following minimal example, with foldmethod=marker: > > $ cat foldtest.txt > {{{ > }}} > > If I close the fold on the last character of a line, 'l' will not open > the fold. This is by design, l only opens the fold if the cur

Odd behavior of folds...

2010-01-19 Thread Benjamin R. Haskell
Using this following minimal example, with foldmethod=marker: $ cat foldtest.txt {{{ }}} If I close the fold on the last character of a line, 'l' will not open the fold. It's actually more annoying with foldmethod=syntax, with closing braces in column 1: $ cat foldtest.c void f() { } void g()

Re: How to show plain text document's structure and syntax highlight

2010-01-19 Thread vimer_at_cn
Chris Jones-44 wrote: > > Hmm.. I see your point. But in that event, wouldn't 'txt.vim' be the > reserved name for a standard syntax file for files with filetype=txt? > > And as the overview in 'txt.txt' indicates, 'txt.vim' does quite a few > things apart from syntax highligthing > Hi: Than

Re: How to force windows vim to load appropriate vimrc?

2010-01-19 Thread Ben Fritz
On Jan 19, 4:18 am, Yosi Izaq wrote: > I have two gvim 7.2 installs on my machine. One for cygwin and another > for windows. I recently noticed that the windows gvim is actually > loading the cygwin ~/.vimrc file instead of the Program file/vim/ > _vimrc file. > How come? Vim will always source

Re: Session or file activity transcript replay?

2010-01-19 Thread Christian Brabandt
On Mo, 18 Jan 2010, Christian Brabandt wrote: > > The amusing part was that you could watch as the editor replayed your > > actions at an accelerated speed. I don't recall that the speed was > > adjustable, but that would be useful. […] While we are at that part, I started to read into the undo-

Re: .vimrc superceeded

2010-01-19 Thread Matt Wozniski
On Tue, Jan 19, 2010 at 3:36 PM, MK wrote: > On Tue, 19 Jan 2010 12:28:45 -0500 (EST) > "Benjamin R. Haskell" wrote: >> Ubuntu 9.10's /usr/share/vim/vimrc contains: >> >> if has("syntax") >>     syntax on >> endif >> >> Try commenting that out, for starters.  Otherwise, I'll keep digging. >> FC 9

Mac OS X Snow Leopard Strange Error when running .vimrc file

2010-01-19 Thread piscesboy
I like to save the state of my files before I leave vim using the :mkview command, and reload it using the :loadview command, so I tried to add them to the .vimrc file to get vim to do this automatically: au BufWinLeave * mkview au BufWinEnter * silent loadview But everytime it runs, I get a stra

Re: How to find all subdirectories from a path

2010-01-19 Thread epanda
On 19 jan, 22:25, Christian Brabandt wrote: > Hi epanda! > > On Di, 19 Jan 2010, epanda wrote: > > > I have seen the finddir func but it might that I have to enter a > > searchedDir name. > > > How list all sub directories from a path and stored found pathSubDirs > > into a map or List. > > Does

Re: How to find all subdirectories from a path

2010-01-19 Thread Christian Brabandt
Hi epanda! On Di, 19 Jan 2010, epanda wrote: > I have seen the finddir func but it might that I have to enter a > searchedDir name. > > How list all sub directories from a path and stored found pathSubDirs > into a map or List. Does this what you want: :echo glob('path/**/') regards, Christian

How to find all subdirectories from a path

2010-01-19 Thread epanda
Hi, I have seen the finddir func but it might that I have to enter a searchedDir name. How list all sub directories from a path and stored found pathSubDirs into a map or List. Thanks -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/mailli

Re: .vimrc superceeded

2010-01-19 Thread MK
On Tue, 19 Jan 2010 12:28:45 -0500 (EST) "Benjamin R. Haskell" wrote: > Ubuntu 9.10's /usr/share/vim/vimrc contains: > > if has("syntax") > syntax on > endif > > Try commenting that out, for starters. Otherwise, I'll keep digging. > FC 9 and 10 don't appear to have a similar 'global vimrc

vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-19 Thread Peter Berntsen
Running 7.2.245 under Slackware Linux 13.0 and I have noticed that my .vimrc file doesn't seem to be read. For example to not keep a backup file I comment out the code for that in the vimrc file like this. "if has("vms") " set nobackup " do not keep a backup file, use versions instead "els

gVim stripping diacritics not in keyboard charset

2010-01-19 Thread Tuetschek
Hi, I am using gVim 7.2 under Windows 7 and I have customized my En-Us keyboard using the MS Keyboard Layout Creator, so that it contains not only English characters, but also Czech ones and others (e.g. Latin long vocals), which have diacritical marks. It works perfectly well in all programs but

Re: Ctags horror, since vim can't find a tag from one file, but another

2010-01-19 Thread Brett Stahlman
On Jan 19, 9:29 am, Torsten Andre wrote: > Hi there, > I'm close to smashing my monitor at the wall, so please bare with me ;) > > I have the problem that when I follow symbol from one file, everything > works fine, from another vim tells me that it cannot find the tag. So > how did I get here?

Re: .vimrc superceeded

2010-01-19 Thread Benjamin R. Haskell
On Tue, 19 Jan 2010, MK wrote: > On Sun, 17 Jan 2010 18:06:29 +0100 > Tony Mechelynck wrote: > > Like Ben said, I suspect that you're doing ":syntax on" (which > > reloads the colorscheme if any, and if none, the compiled-in > > defaults) after your ":hi" statements, so that the latter are > >

Re: How to force windows vim to load appropriate vimrc?

2010-01-19 Thread Gary Johnson
On 2010-01-19, Yosi Izaq wrote: > Hi, > > I have two gvim 7.2 installs on my machine. One for cygwin and another > for windows. I recently noticed that the windows gvim is actually > loading the cygwin ~/.vimrc file instead of the Program file/vim/ > _vimrc file. > How come? :help _vimrc > a

Ctags horror, since vim can't find a tag from one file, but another

2010-01-19 Thread Torsten Andre
Hi there, I'm close to smashing my monitor at the wall, so please bare with me ;) I have the problem that when I follow symbol from one file, everything works fine, from another vim tells me that it cannot find the tag. So how did I get here? I have the following directory setup: /project /som

Re: filelist window ?

2010-01-19 Thread Tom Link
> This is impossible to use. It's just too slow.. > Such a feature must have an index, otherwise it's useless. The file list is generated only once. If there are several tenthousand files in the directory + subdirectories, then it probably is the presentation of the file list that is slow -- I can

ctrl-j mapping not working properly

2010-01-19 Thread Mr.SpOOn
Hi, I'm trying to use these mappings: map j map k map h map l They usually work fine, but sometimes (I don't understand exactly when) the c-j mapping does other things. In this moment, while I'm editing a php it brings me to the "insert mode". In my vimrc that is the only setting regarding c

Re: Hi all, I have a question about vim

2010-01-19 Thread Matt Wozniski
On Tue, Jan 19, 2010 at 3:51 AM, Jürgen Krämer wrote: > > Hi, > > Albie Janse van Rensburg wrote: >> Matt Wozniski wrote on 19/01/2010 07:04 AM: >>> Your vim is running in vi-compatible mode.  Fixing this should be as easy as >>> >>>     echo "set compatible" >>~/.vimrc >>> >>> ~Matt >>> >> >> Shou

Re: .vimrc superceeded

2010-01-19 Thread MK
On Sun, 17 Jan 2010 18:06:29 +0100 Tony Mechelynck wrote: > Like Ben said, I suspect that you're doing ":syntax on" (which reloads > the colorscheme if any, and if none, the compiled-in defaults) after > your ":hi" statements, so that the latter are overriden. No! As I mentioned in the first em

Re: Parse file in background

2010-01-19 Thread Marc Weber
Excerpts from KKde's message of Tue Jan 19 11:42:40 +0100 2010: > > > -> :h garbagecollect() > > Ok. I understood through garbagecollect we can cleanup unused lists or > dict. My question is will VIM will automatically recover the memory > once the complete function completes? I'm not going to gi

Re: filelist window ?

2010-01-19 Thread Ramagudi Naziir
On Dec 29 2009, 5:15 pm, bill lam wrote: > you may have look at the project plugin that I used to manage over 1000 > files.  There is a very short introduction at > > http://ariya.blogspot.com/2008/07/vim-lightning-fast-navigation-in-la... Thanks, I'll try it. I hope it can scale for bigger proje

Re: filelist window ?

2010-01-19 Thread Ramagudi Naziir
On Jan 5, 10:09 am, Tom Link wrote: > Are you calling :TSelectFilesInSubdirs? This is impossible to use. It's just too slow.. Such a feature must have an index, otherwise it's useless. Didn't you say you have a plugin that uses the git index ? Can I please use it ? Thanks -- You received this

Re: filelist window ?

2010-01-19 Thread Ramagudi Naziir
Joan Miquel Torres Rigo wrote: > Instead of that, when I need to pick for some file, I simply execute > ":tabedit ." (note the final dot) which opens current directory in new tab. Did you mean ":tabnew ." ? Anyway, this method force me to browse for my file. Think of a huge project (e.g. linux ke

Re: Parse file in background

2010-01-19 Thread KKde
> -> :h garbagecollect() Ok. I understood through garbagecollect we can cleanup unused lists or dict. My question is will VIM will automatically recover the memory once the complete function completes? -- You received this message from the "vim_use" maillist. For more information, visit http://

How to force windows vim to load appropriate vimrc?

2010-01-19 Thread Yosi Izaq
Hi, I have two gvim 7.2 installs on my machine. One for cygwin and another for windows. I recently noticed that the windows gvim is actually loading the cygwin ~/.vimrc file instead of the Program file/vim/ _vimrc file. How come? and how can I fix that? TIA, Yosi -- You received this message fro

Re: How to show plain text document's structure and syntax highlight

2010-01-19 Thread Chris Jones
On Sat, Jan 16, 2010 at 09:36:56PM EST, vimer_at_cn wrote: > > > Chris Jones-44 wrote: > > > > This makes me think that it might be a good idea to find a more > > distinctive name for your file names, and possibly the corresponding > > tags in the help file.. > > > > Why not PlainTextBrowser.v

Re: Hi all, I have a question about vim

2010-01-19 Thread Jürgen Krämer
Hi, Albie Janse van Rensburg wrote: > Matt Wozniski wrote on 19/01/2010 07:04 AM: >> Your vim is running in vi-compatible mode. Fixing this should be as easy as >> >> echo "set compatible" >>~/.vimrc >> >> ~Matt >> > > Shouldn't that be as follows? > > echo "set nocompatible" >>~/.v

Re: Hi all, I have a question about vim

2010-01-19 Thread Albie Janse van Rensburg
Matt Wozniski wrote on 19/01/2010 07:04 AM: > Your vim is running in vi-compatible mode. Fixing this should be as easy as > > echo "set compatible" >>~/.vimrc > > ~Matt > Shouldn't that be as follows? echo "set nocompatible" >>~/.vimrc -- [ Albie Janse van Rensburg ~ http://morph.

Re: Hi all, I have a question about vim

2010-01-19 Thread peter linux
What's your nerdtree plugin's version? My version is 4.1.0 and works well. It may be work well if you try it. My vim version is 7.2.245 in ubuntu 8.04. 2010/1/19 gaoxt1983 > > There is a situation I must use a source-compiled vim, so I downloaded > vim72 > and run configure , make, make install