Re: Using a variable as a command's 'count' argument

2009-07-29 Thread Daniel Tripp
Thank you all very much for the suggestions. They all work great. --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Using a variable as a command's 'count' argument

2009-07-29 Thread Matt Wozniski
On Wed, Jul 29, 2009 at 3:20 AM, Maxim Kim wrote: > > > On 29 июл, 09:02, Daniel Tripp wrote: >> Hello all.  I have a situation that I can't figure out. >> >> Say that I have set a variable like this: >> >> :let desiredcolumn=42 >> ... >> But instead of a constant like 42, I want to take the value

Re: Using a variable as a command's 'count' argument

2009-07-29 Thread Efraim Yawitz
On Wed, Jul 29, 2009 at 10:19 AM, Efraim Yawitz wrote: > > >> > how about > > :map :exec 'norm ' . desiredcolumn . '' > > Correction: This should be :map :exec 'norm ' . desiredcolumn . '\|' --~--~-~--~~~---~--~~ You received this message from the "vim_use" mai

Re: Using a variable as a command's 'count' argument

2009-07-29 Thread Maxim Kim
On 29 июл, 09:02, Daniel Tripp wrote: > Hello all.  I have a situation that I can't figure out. > > Say that I have set a variable like this: > > :let desiredcolumn=42 > ... > But instead of a constant like 42, I want to take the value from my > 'desiredcolumn' variable.  Something like this: >

Re: Using a variable as a command's 'count' argument

2009-07-29 Thread Efraim Yawitz
On Wed, Jul 29, 2009 at 9:47 AM, S. Cowles wrote: > > On Wed, 29 Jul 2009, Daniel Tripp wrote: > > > From: Daniel Tripp > > > > Say that I have set a variable like this: > > :let desiredcolumn=42 > > And now I want to define a mapping that will go to that column on the > current > > line, using

Re: Using a variable as a command's 'count' argument

2009-07-28 Thread S. Cowles
On Wed, 29 Jul 2009, Daniel Tripp wrote: > From: Daniel Tripp > > Say that I have set a variable like this: > :let desiredcolumn=42 > And now I want to define a mapping that will go to that column on the current > line, using the command. My problem is that I can't figure out how to > substitu

Using a variable as a command's 'count' argument

2009-07-28 Thread Daniel Tripp
Hello all. I have a situation that I can't figure out. Say that I have set a variable like this: :let desiredcolumn=42 And now I want to define a mapping that will go to that column on the current line, using the command. My problem is that I can't figure out how to substitute the variable