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

2009-10-13 Thread Christian Brabandt
Hi Sergey! On Mo, 12 Okt 2009, Sergey Vakulenko wrote: I tried gvim --remote-send C-\C-N:tabedit filenameCR, but no luck, behavior like in previous post (see above), Strange, I tried it yesterday and was sure it worked. But now I get the same result. That is strange. But Andy kindly

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 { { }ESCO 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

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 vim

Re: check if inoremap is set

2009-10-13 Thread Maxim Kim
On 13 окт, 11:27, Keyan key@googlemail.com 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 buffer { { }ESCO into the files(create if needed): .vim/after/ftplugin/perl.vim

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_Sf=

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 cbli...@256bit.org 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

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 { { }ESCO when is switch to .tex, where i dont want this setting, i have to use Well, the obvious solution would be to use inoremap buffer { … only for cpp, perl and

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. 10i0CRESC10kqqvawyjvawp^a...@q) and I *almost* suggested something

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. which

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: 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 have my own

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

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

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

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 used

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); // *