Re: J oining lines without cursor movement

2009-12-13 Thread Christian Brabandt
Hi meino.cramer! On Mo, 14 Dez 2009, meino.cra...@gmx.de wrote: > Suppose I have two lines like this (indentation only for makeing it > more readable here...) > > This is the first line. > This is the second line. > > The cursor is in the beginning of the first line. > > Now I want to

Re: Compiling vim on Ubuntu 64 bit

2009-12-13 Thread pansz
Tony Mechelynck 写道: > Avoiding > handmade changes to the Makefile also ensures that _patches_ to the > Makefile will apply cleanly. > If you use svn then nothing will broken. at least patches to Makefile never have problem for me. patches to the Makefile will merge with my own handmade change

Re: Vim calendar and T-shirt

2009-12-13 Thread Isaac
On Sun, Dec 13, 2009 at 8:44 PM, Bram Moolenaar wrote: > > Hello Vim users! > > The Vim calendar has been updated for 2010. I replaced the info about > my old A-A-P project with Zimbu, which you probably find a bit more > interesting. You can find the calendar in PDF format, ready to print, > h

Problem with indenting ruby code

2009-12-13 Thread Tuo Pe
Something's wrong with ruby indentation settings. When I use snippets (if snippet in this case), I get if <{condition}> __<{}> __end __<{}> How do I get "end" and the last "<{}>" to indented correctly? Much oblige! Tuo -- You received this message from the "vim_use

Re: Using substitute command or global cmd to analyse a whole file

2009-12-13 Thread Jürgen Krämer
Hi, epanda schrieb: > Hi, > > > I have done a func that I call on that way : > > :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch > (2))/ > > > > I would like to not substitute the pattern, just analyse each line. > Thanks add \zs at the end of the search pattern and le

Re: How to compile with guifont ?

2009-12-13 Thread Matt Wozniski
On Wed, Dec 2, 2009 at 8:27 AM, Timothy Madden wrote: > :set guifont=* > > Works on Win32, GTK, Mac OS and Photon. Looks like I have none of > these. > Thank you for the answers. I think I have to leave this problem as it > is for > now ... It also works fine for my gvim, which is X11-Motif... I'd

Re: Issues with ftdetect

2009-12-13 Thread Matt Wozniski
On Tue, Dec 1, 2009 at 10:51 PM, Tony Mechelynck wrote: > On 10/11/09 06:29, Matt Wozniski wrote: >> >> IIRC, ftdetect files are read at the first "filetype on" (or "syntax >> on", which indirectly calls the former), and aren't re-read after >> 'runtimepath' is changed.  So, I haven't tested this,

RE: Using substitute command or global cmd to analyse a whole file

2009-12-13 Thread John Beckett
Tim Chase wrote: >> Add the n flag: :%s/.../.../n > > That was my first thought too, but it looks like the > replacement portion isn't evaluated if you use the /n flag. Ahh ... now that you point it out, it's a bit obvious that evaluating the replacement should be pointless when using 'n'. John

How to delay execution of map?

2009-12-13 Thread Jeremy
I have a map set whenever I enter 'ib' (without quotes) the text expands. However, sometimes I write ib as part of a word and I don't want the map to be executed unless it is part of a word all by itself. Is it possible to do this? Or perhaps to wait a bit of time to see if I type anything afte

Re: Vim client-server communication

2009-12-13 Thread Chris Jones
On Sun, Dec 13, 2009 at 10:57:06PM EST, Marc Weber wrote: > Excerpts from Chris Jones's message of Mon Dec 14 04:09:42 +0100 2009: > > On Sun, Dec 13, 2009 at 09:42:24PM EST, Marc Weber wrote: > > > Excerpts from Chris Jones's message of Mon Dec 14 03:26:34 +0100 2009: > > > > [..] > > > > > > Ha

Re: J oining lines without cursor movement

2009-12-13 Thread sc
On Sunday 13 December 2009 10:16:20 pm meino.cra...@gmx.de wrote: > Suppose I have two lines like this (indentation only for > makeing it more readable here...) > > This is the first line. > This is the second line. > > The cursor is in the beginning of the first line. > > Now I want t

J oining lines without cursor movement

2009-12-13 Thread meino . cramer
Hi, Suppose I have two lines like this (indentation only for makeing it more readable here...) This is the first line. This is the second line. The cursor is in the beginning of the first line. Now I want to join the lines with "J" but without moving the cursor away from where it is be

Re: Vim client-server communication

2009-12-13 Thread Marc Weber
Excerpts from Chris Jones's message of Mon Dec 14 04:09:42 +0100 2009: > On Sun, Dec 13, 2009 at 09:42:24PM EST, Marc Weber wrote: > > Excerpts from Chris Jones's message of Mon Dec 14 03:26:34 +0100 2009: > > [..] > > > > Has anyone implemented this feature and could possibly comment on > > > th

RE: Transfer between clipboard and vim in putty console

2009-12-13 Thread Suresh Govindachar
Hello, Figured out this issue on linux: It does not matter if vim is built with + or - for clipboard and xterm_clipboard; in both situations it is possible to easily transfer data from the console to a vim buffer and vice versa by highlighting text (highlighted stuff gets selected) an

Re: Vim client-server communication

2009-12-13 Thread Chris Jones
On Sun, Dec 13, 2009 at 09:42:24PM EST, Marc Weber wrote: > Excerpts from Chris Jones's message of Mon Dec 14 03:26:34 +0100 2009: [..] > > Has anyone implemented this feature and could possibly comment on > > the above? > I use the feature to make a background sh process call back into vim > te

Re: Vim client-server communication

2009-12-13 Thread Marc Weber
Excerpts from Chris Jones's message of Mon Dec 14 03:26:34 +0100 2009: > I am looking into Vim's client-server feature and I was wondering what > benefits can be derived from it. > [..] > Has anyone implemented this feature and could possibly comment on the > above? I use the feature to make a bac

Vim client-server communication

2009-12-13 Thread Chris Jones
I am looking into Vim's client-server feature and I was wondering what benefits can be derived from it. One thing that I have noticed over the weekend is that on a number of occasions, the server instance of Vim opened a tab/buffer that was either empty, contained binary zeros - 0x00 - or even the

Re: client-server for a gdb fronted

2009-12-13 Thread Chris Jones
On Sun, Dec 13, 2009 at 05:18:50PM EST, Suresh Govindachar wrote: > > Around Sunday, December 13, 2009 8:24 AM, Bora Sahin asked: > > I would like to interface gdb to Vim. I know there are a few > > alternatives but as far as I see none of them fulfills my > > expectations completely. I prefer

Re: Using substitute command or global cmd to analyse a whole file

2009-12-13 Thread Tim Chase
John Beckett wrote: > epanda wrote: >> I have done a func that I call on that way : >> >> :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch >> (2))/ >> >> I would like to not substitute the pattern, just analyse each line. > > Add the n flag: :%s/.../.../n That was my first tho

RE: Using substitute command or global cmd to analyse a whole file

2009-12-13 Thread John Beckett
epanda wrote: > I have done a func that I call on that way : > > :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch > (2))/ > > I would like to not substitute the pattern, just analyse each line. Add the n flag: :%s/.../.../n John -- You received this message from the "vim_use

RE: client-server for a gdb fronted

2009-12-13 Thread Suresh Govindachar
Around Sunday, December 13, 2009 8:24 AM, Bora Sahin asked: > I would like to interface gdb to Vim. I know there are a few > alternatives but as far as I see none of them fulfills my > expectations completely. I prefer a layout similar to gdb text > user interface. There should be a g

Re: Compiling vim on Ubuntu 64 bit

2009-12-13 Thread Tony Mechelynck
On 23/11/09 16:23, Raúl Núñez de Arenas Coronado wrote: > Saluton Mr.SpOOn :) > Mr.SpOOn skribis: [...] >> Well, there are archives to download them easier, so that would not be >> a problem. The problem would be to patch them all. I shall write a >> script for that. I was just wondering if I had

Re: Using substitute command or global cmd to analyse a whole file

2009-12-13 Thread Gary Johnson
On 2009-12-13, epanda wrote: > Hi, > > > I have done a func that I call on that way : > > :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch > (2))/ > > > > I would like to not substitute the pattern, just analyse each line. > Thanks How about this? :%call MY_FUNC(getl

Transfer between clipboard and vim in putty console

2009-12-13 Thread Suresh Govindachar
Hello, I tried reading help on clipboard, but couldn't follow it. Here's the issue: I am using putty from Windows XP to log into unix machines. On some unix machines, I can transfer contents of the clipboard into vim buffer via: :set paste i // to go into insert mode

Re: Compiling vim on Ubuntu 64 bit

2009-12-13 Thread Tony Mechelynck
On 24/11/09 01:43, pansz wrote: > > bill lam 写道: >> $sudo apt-get build-dep vim # for console mode vim only >> $sudo apt-get build-dep vim-gnome # for gnome gvim as well > > That makes no difference in ubuntu. > > i.e. "sudo apt-get build-dep vim" is enough for make a gvim. (a gtk version) > >

Re: Compiling vim on Ubuntu 64 bit

2009-12-13 Thread Tony Mechelynck
On 23/11/09 14:55, bill lam wrote: > > On Mon, 23 Nov 2009, Mr.SpOOn wrote: >> >> Hi, >> I'd like to compile Vim on a fresh installed Ubuntu 9.10 64 bit. >> >> Last time I compiled Vim I followed this guide: >> http://users.skynet.be/antoine.mechelynck/vim/compunix.htm >> I think someone here in th

Using substitute command or global cmd to analyse a whole file

2009-12-13 Thread epanda
Hi, I have done a func that I call on that way : :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch (2))/ I would like to not substitute the pattern, just analyse each line. Thanks NB : I don't want to use while to read the file. -- You received this message from the "v

client-server for a gdb fronted

2009-12-13 Thread borasah
Hi all, I would like to interface gdb to Vim. I know there are a few alternatives but as far as I see none of them fulfills my expectations completely. I prefer a layout similar to gdb text user interface. There should be a gdb console at the bottom in a screen session, or in a second terminal

Re: Vim, NERDtree and remote files editing

2009-12-13 Thread Scott Bicknell
caruso_g wrote: > Is there a way to use directly Vim to edit remote files (like in > modern IDE)? And, more, is there a way to also use NERDtree to do > that? > http://www.vim.org/scripts/script.php?script_id=1075 provides support for that. -- Have you tried Linux? -- You received this mess

Dynamic Separation on toolbar

2009-12-13 Thread epanda
Hi, I have added some icons on my toolbar. amenu icon=$HOME/vimfiles/icons/baguettemagique.bmp ToolBar.Magie2 :so $HOME/vimfiles/plugin/utils.vim:call GenerateFuncHeader() I would like to make a vertical separation. I know how to do from help into a menu but not in the toolbar menu. Thanks for h

Vim calendar and T-shirt

2009-12-13 Thread Bram Moolenaar
Hello Vim users! The Vim calendar has been updated for 2010. I replaced the info about my old A-A-P project with Zimbu, which you probably find a bit more interesting. You can find the calendar in PDF format, ready to print, here: http://www.moolenaar.net/#Calendar You can now order a T-shirt

Re: Adjusting line lengths

2009-12-13 Thread Hattori Hanzo
Hello, and thanks to all of you! The joining issue is solved by :2,$j! and the splitting issue by :s/.\{49}/&\r/g As I'm working with genes, files are not that big and contain about 1 characters. However, when it comes to genomes, sequence lengths will get bigger. Therefore also thanks f

Re: errorformat for MS cl compiler

2009-12-13 Thread Efraim Yawitz
On Fri, Dec 11, 2009 at 11:27 AM, Tinou wrote: > On Thu, Dec 10, 2009 at 18:41, Efraim Yawitz wrote: > >> Hi, >> >> Hello :-) > > >> Is anyone good with errorformat strings? I'm trying to use output from >> the Microsoft cl compiler, and the errors look like this: >> >> 1>c:\kerneldrivers\w64\so

Re: how to match a "," that IS NOT in comment

2009-12-13 Thread aj3423
Oh I found this pattern in vim document \(\/\/.*\)\@http://old.nabble.com/how-to-match-a-%22%2C%22-that-IS-NOT-in-comment-tp26756853p26764606.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the "vim_use" maillist. For more information, visit

WikiStickies

2009-12-13 Thread John Beckett
FYI: More nonsense from Wikia. Some of you have accounts at vim.wikia.com and if you go to your "My Home" page you will notice a new feature. Here is the announcement (it does not say much): http://www.wikia.com/wiki/User_blog:Toughpigs/WikiStickies_-_new_feature_launching_on_My_Home It's irrita

Vim, NERDtree and remote files editing

2009-12-13 Thread caruso_g
Hi, I am using Vim to edit files downloading them with a FTP application (Transmit) that just makes me choose "edit with" in is contextual menu. I also use the excellent NERDtree plugin to browse folders and files. Is there a way to use directly Vim to edit remote files (like in modern IDE)? And,