RE: Blinking highlight like cursor

2009-10-13 Thread John Beckett
anna wrote: > I want to have a blinking highlight similar like cursor. Eeek. Please specify the exact system (Vim, terminal/gvim, operating system), then someone may have some info. > Is it also possible to highlight different patterns with > different color at the same time? I use a good tip f

Re: Different buffer list for different tabs?

2009-10-13 Thread Raúl Núñez de Arenas Coronado
Saluton :) Sorry for the delay, I missed this email! skribis: >> > What I would like to do is to work on different projects in the >> > same Vim program. As far as I know a tab page holds a group of >> > windows, not a buffer list but I am wondering if I can use one tab >> > for one project and

How to issue two commands to vim by servername

2009-10-13 Thread digit
Dear all: I have problem about tools/xcmdsrv_client.c. How I can issue tow command through this channel by the code? I modify as the below: main(int argc, char **argv) { char*res; int code; int t; // * Display *dpy; // * dpy = XOpenDisplay(NULL); // * if

RE: Count and write the number of occurences

2009-10-13 Thread John Beckett
Thanks Christian and Tim. I will update the WordFrequency tip with your improved version, but with great reluctance because frankly the tip will never win an "obfuscated scripting" award looking like that! I will keep the original commands as testimony to human ingenuity (probably the author use

Blinking highlight like cursor

2009-10-13 Thread anna
Hi there, I want to have a blinking highlight similar like cursor. Is that possible? Anybody can help me? Is it also possible to highlight different patterns with different color at the same time? I created several user-defined highlight. But, when I use 'match' to highlight a pattern, then the

syntax file for git fast-import files?

2009-10-13 Thread Andrew Long
Hi I'm in the process of converting my CVS repositories to Git, and I wondered if anyne had written a syntax file for the fast-import files? regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this message from t

ftp.vim.org ???

2009-10-13 Thread meino . cramer
Hi, where is ftp.vim.org gone? The server still exists...but the contents seems to be gone with the wind? Hopefully not... Best regards mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosop

Re: inset of line numbers

2009-10-13 Thread Tim Chase
MK wrote: > Hi. I do work on a remote server via ssh and vim. Vim is also my > editor of choice at home, or anywhere else. However, the vim on the > server presents line numbers with a massive offset; normally mine > appear: > > 8 > 9 > 10 > > These appear: > 1 > 2 > > at

Re: inset of line numbers

2009-10-13 Thread Christian Brabandt
Hi MK! On Di, 13 Okt 2009, MK wrote: > editor of choice at home, or anywhere else. However, the vim on the > server presents line numbers with a massive offset; normally mine > appear: > > 8 > 9 > 10 > > These appear: > 1 > 2 > > at least an entire 8 space tabstop in. I h

inset of line numbers

2009-10-13 Thread MK
Hi. I do work on a remote server via ssh and vim. Vim is also my editor of choice at home, or anywhere else. However, the vim on the server presents line numbers with a massive offset; normally mine appear: 8 9 10 These appear: 1 2 at least an entire 8 space tabstop in.

Re: Count and write the number of occurences

2009-10-13 Thread Christian Brabandt
Hi Tim! On Di, 13 Okt 2009, Tim Chase wrote: > > let b[word]=(exists("b[word]")?b[word]+1:1 > > This can be more clea[rn]ly written as > >let b[word]=get(b, word, 0) + 1 Thanks. I first tried let b[word]+=1, but this didn't work, so this was my 2nd try. Thanks for pointing that out.

Re: Count and write the number of occurences

2009-10-13 Thread Tim Chase
> function! WordFrequency1() range > let a=[] > let b={} > let a=split(join(getline(a:firstline,a:lastline)),'\A\+') > for word in a > let b[word]=(exists("b[word]")?b[word]+1:1 This can be more clea[rn]ly written as let b[word]=get(b, word, 0) + 1 which gets "b[word]" if it exis

Re: Count and write the number of occurences

2009-10-13 Thread Christian Brabandt
Hi John! On Di, 13 Okt 2009, John Beckett wrote: > I am going to blame you for encouraging me to make a user > command to run the code more easily. It is surprisingly sweet, > although I definitely have to do some other stuff now, so I will > leave testing the code as an exercise for the reader.

How To Unlock Locked iPod

2009-10-13 Thread Ipod
How To Unlock Locked iPod http://bit.ly/hddpp http://bit.ly/hddpp How To Unlock Locked iPod    --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~

RE: Count and write the number of occurences

2009-10-13 Thread John Beckett
Chris Suter wrote: > Hahaha. Brilliant -- it's actually an implementation of the > map reduce word count algorithm in vim. I've used something > similar to the 3rd step before to create a list of numbers in > increasing order (i.e. 10i010kqqvawyjvawp^a...@q) and > I *almost* suggested something al

Re: check if inoremap is set

2009-10-13 Thread Christian Brabandt
Hi Keyan! On Di, 13 Okt 2009, Keyan wrote: > i have the following problem. for cpp, perl, and others, i have set > > inoremap { { }O > > when is switch to .tex, where i dont want this setting, i have to use Well, the obvious solution would be to use inoremap { … only for cpp, perl and all y

Re: --remote-tab-silent option, how change position of new tab (to the end)

2009-10-13 Thread Sergey Vakulenko
On 13 окт, 09:32, Christian Brabandt wrote: > Strange, I tried it yesterday and was sure it worked. But now I get the > same result. That is strange. But Andy kindly provided the right answer. thanks guys! this solution worked for me: gvim --remote-tab-silent +tabmove999 Best regards --~--

Re: Syntax-highlighting through putty doesn't work

2009-10-13 Thread Alexander Kutka
> Did you execute :syntax enable ? Yes, didn't help :( > Could you post your .vimrc and the output of :scriptnames ? a) my .vimrc : --- set runtimepath=/usr/share/vim/vim72 if &term =~ "xterm-color" if has("terminfo") set t_Co=8 set t_

Re: check if inoremap is set

2009-10-13 Thread Maxim Kim
On 13 окт, 11:27, Keyan wrote: > hi, > > can i somehow ask if there was one set, or is there a better way to > solve the problem? Add the following line inoremap { { }O into the files(create if needed): .vim/after/ftplugin/perl.vim .vim/after/ftplugin/cpp.vim etc. :h map- --~

Re: Searching for a list of strings

2009-10-13 Thread Christian Brabandt
Hi Mahurshi! On Mo, 12 Okt 2009, Mahurshi Akilla wrote: > Once in a while, we need to open up more than one file and do a set of > operations. For e.g., search for A, do something, then search for B, > do something else, and so on. Is there a way you can put A, B, C, etc > in a list and let vi

check if inoremap is set

2009-10-13 Thread Keyan
hi, i have the following problem. for cpp, perl, and others, i have set inoremap { { }O when is switch to .tex, where i dont want this setting, i have to use iunmap { but i cant put the last line in my tex.vim, because in case i havent worked on a .cpp buffer before switching to a vim buffe