Re: Fwd: Mouse reporting and new standards

2012-01-23 Thread Egmont Koblinger
On Mon, Jan 23, 2012 at 01:26, Thomas Dickey dic...@his.com wrote: I'd assume that one would start by doing a (define-key input-decode-map \e[ 'xterm-extended-mouse-translate)) ...along with a suitable new function. It's been a while since I programmed in lisp, but it's usually

Re: elinks.vim

2012-01-23 Thread Giacomo 'giotti' Mariani
Daniel Choi dhc...@gmail.com Jan 19 05:07AM -0800 On Jan 19, 5:41 am, Giacomo 'giotti' Mariani gia.gio...@gmail.com wrote: Opened lik in elinks in the status bar... but it is not true: nothing happens! I'm on kubuntu 11.10. Do you have elinks open in another window? One instance of

Re: Fwd: Mouse reporting and new standards

2012-01-23 Thread Thomas Dickey
On Mon, Jan 23, 2012 at 09:21:50AM +0100, Egmont Koblinger wrote: On Mon, Jan 23, 2012 at 01:26, Thomas Dickey dic...@his.com wrote: I'd assume that one would start by doing a (define-key input-decode-map \e[ 'xterm-extended-mouse-translate)) ...along with a suitable new

problem with user defined function using dictionary

2012-01-23 Thread sinbad
Basically g:CCT is dictionary of dicionary items, and each item is list. now the problem is, if i open a c file normally and invoke the CLadd() function it works. But if i open the file from cscope list and call CLadd()function, i am getting the following error. au BufReadPre *.[ch] \ if

Re: viminfo stored variable lifetime

2012-01-23 Thread Christian Brabandt
On Mon, January 23, 2012 12:28 pm, sinbad wrote: how long does a variable stored in viminfo file live. I want a global variable g:MYVAR which is actually a dictionary item, converted to string and stored in viminfo file, i want this variable to live forever, how can this be done ? I think as

Re: problem with user defined function using dictionary

2012-01-23 Thread sinbad
On Jan 23, 6:07 pm, sinbad sinbad.sin...@gmail.com wrote: Basically g:CCT is dictionary of dicionary items, and each item is list. now the problem is, if i open a c file normally and invoke the CLadd() function it works. But if i open the file from cscope list and call CLadd()function, i am

Re: mixed syntax highlighting

2012-01-23 Thread Ben Fritz
On Jan 21, 3:24 pm, Simon Nicolussi si...@sinic.name wrote: Chris Lott wrote: Is it possible to have a mixed syntax highlighting? Yes. Just set both of them as your filetype, separated by a dot:   set filetype=c.doxygen This will only work for syntax files specifically designed for it.

Re: filetype dynamic color high lightning

2012-01-23 Thread Ben Fritz
On Jan 21, 12:57 pm, Jeri Raye jeri.r...@gmail.com wrote: Hi, Is it possible to do filetype dynamic color high lightning in vim? In other words, can vim detect dynamicly variable's from a certain type? when I have the following vhdl code: [...]   -- signal declarations   signal aaa :

Re: Vp vs Vp

2012-01-23 Thread Christian Brabandt
Hi Albin! On So, 22 Jan 2012, Albin Olsson wrote: On Sun, Jan 22, 2012 at 7:47 AM, John Beckett johnb.beck...@gmail.com wrote: David Fishburn wrote: I am trying to figure out why I see different behaviour when performing what I consider identical actions. Strange, I see that too (also

Re: mixed syntax highlighting

2012-01-23 Thread Christian Brabandt
Hi Ben! On Mo, 23 Jan 2012, Ben Fritz wrote: On Jan 21, 3:24 pm, Simon Nicolussi si...@sinic.name wrote: Chris Lott wrote: Is it possible to have a mixed syntax highlighting? Yes. Just set both of them as your filetype, separated by a dot:   set filetype=c.doxygen This

Re: What did I do?

2012-01-23 Thread Eric Weir
On Jan 21, 2012, at 2:52 PM, Tim Gray wrote: Instead of switching Capslock and ESC, you could remap something to ESC in Vim. For example, I use: inoremap jj ESC This lets me type 'jj' in insert mode to return to normal mode. If you have to type a word with the letter 'j' in it,

Re: What did I do?

2012-01-23 Thread Christian Brabandt
Hi Eric! On Mo, 23 Jan 2012, Eric Weir wrote: do the job. [Curious: Does ESC continue to function as ESC? Yes. regards, Christian -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

Re: Prefix lines with a counter

2012-01-23 Thread Christian Brabandt
Hi John! On Sa, 21 Jan 2012, John Little wrote: (Sorry list readers, I find myself repeating this here yet again.) Then look into the faq. It is contained there: http://vimhelp.appspot.com/vim_faq.txt.html#faq-12.33 regards, Christian -- You received this message from the vim_use maillist.

Re: Prefix lines with a counter

2012-01-23 Thread Charles Campbell
Tim Chase wrote: On 01/21/12 10:49, Chris Lott wrote: Start with a list of items delineated by line breaks: foo bar baz And turn it into a markdown numbered list: 1. foo 2. bar 3. baz I know that I *could* use 1. for every item, since that's easy enough to do and Markdown knows what to do

Re: Retrieve the argument of a prior Ex mode command

2012-01-23 Thread Chris Jones
On Sat, Jan 21, 2012 at 09:37:14PM EST, John Little wrote: On Jan 18, 3:04 pm, Chris Jones cjns1...@gmail.com wrote: At the bash prompt, I often use the [Alt+.] keyboard action to retrieve the argument of a prior command from the bash history list... That key combination works in bash's

Re: Retrieve the argument of a prior Ex mode command

2012-01-23 Thread Chris Jones
On Sat, Jan 21, 2012 at 09:37:14PM EST, John Little wrote: On Jan 18, 3:04 pm, Chris Jones cjns1...@gmail.com wrote: At the bash prompt, I often use the [Alt+.] keyboard action to retrieve the argument of a prior command from the bash history list... That key combination works in bash's

Re: Retrieve the argument of a prior Ex mode command

2012-01-23 Thread Chris Jones
On Thu, Jan 19, 2012 at 10:37:46PM EST, Tim Chase wrote: On 01/19/12 21:24, Chris Jones wrote: I eventually used a mix of Paul and Tim's suggestions and came up with this: | | Emulate bash/readline's yank-last-arg on the

Re: Retrieve the argument of a prior Ex mode command (back on-list)

2012-01-23 Thread Chris Jones
On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: [..] = function! PreviousTail() let item = histget(getcmdtype(), -1) let patterns = [ \ '^\%([GvV]\|g\%[lobal]\|s\%[ubstitute]\)\(\W\)\%(\1\@!.\|\\\1\)\1\(.*\)',

Re: Vp vs Vp

2012-01-23 Thread Bram Moolenaar
Christian Brabandt wrote: On So, 22 Jan 2012, Albin Olsson wrote: On Sun, Jan 22, 2012 at 7:47 AM, John Beckett johnb.beck...@gmail.com wrote: David Fishburn wrote: I am trying to figure out why I see different behaviour when performing what I consider identical actions.

Re: Retrieve the argument of a prior Ex mode command (back on-list)

2012-01-23 Thread Tim Chase
On 01/23/12 14:57, Chris Jones wrote: On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: = let item = histget(getcmdtype(), -1) = Unless I missed something, I don't think this is going

Re: Retrieve the argument of a prior Ex mode command (back on-list)

2012-01-23 Thread Chris Jones
On Mon, Jan 23, 2012 at 04:24:52PM EST, Tim Chase wrote: On 01/23/12 14:57, Chris Jones wrote: On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: = let item = histget(getcmdtype(), -1)

Re: Retrieve the argument of a prior Ex mode command (back on-list)

2012-01-23 Thread Tim Chase
On 01/23/12 15:46, Chris Jones wrote: On Mon, Jan 23, 2012 at 04:24:52PM EST, Tim Chase wrote: On 01/23/12 14:57, Chris Jones wrote: On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: = let item = histget(getcmdtype(), -1)

Label Buffer State (Plug-in)?

2012-01-23 Thread Paul
I wonder if there is a plug-in that provides the ability to mark a buffer's state at different times, so that one may 'undo' until the file goes back to a marked state. Eg., if you could open a file and mark the current state as 'before new thing', then make some changes, then mark the new

Re: Label Buffer State (Plug-in)?

2012-01-23 Thread Andy Wokula
Am 24.01.2012 00:43, schrieb Paul: I wonder if there is a plug-in that provides the ability to mark a buffer's state at different times, so that one may 'undo' until the file goes back to a marked state. Eg., if you could open a file and mark the current state as 'before new thing', then make

Re: Label Buffer State (Plug-in)?

2012-01-23 Thread Paul
On Tuesday, 24 January, 2012 at 00:02:15 GMT, Andy Wokula wrote: yes, there is undo_tags http://vim.sf.net/scripts/script.php?script_id=1997 Thanks! -- . -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more

Open file and position cursor at column number?

2012-01-23 Thread Trevor Bača
Hi, How can I open a file and have the cursor automatically positioned at column number n? Something like ... vim +024l foo.txt ... but where 024l would be interpreted as a normal command instead of an ex command. Trevor. -- You received this message from the vim_use maillist. Do not

Re: Open file and position cursor at column number?

2012-01-23 Thread Tim Chase
On 01/23/12 06:45, Trevor Bača wrote: How can I open a file and have the cursor automatically positioned at column number n? Something like ... vim +024l foo.txt ... but where 024l would be interpreted as a normal command instead of an ex command. You can use the -c command combined

Re: colorcolumn rows

2012-01-23 Thread sinbad
On Jan 23, 12:51 pm, Christian Brabandt cbli...@256bit.org wrote: On Sun, January 22, 2012 4:10 pm, sinbad wrote: im using vim 7.3, i learnt about the colorcolumn option. is it possible to color a column only for certain number of rows ? No. You can use the matchadd() functions for this,

Re: colorcolumn rows

2012-01-23 Thread Gary Johnson
On 2012-01-23, sinbad wrote: On Jan 23, 12:51 pm, Christian Brabandt wrote: On Sun, January 22, 2012 4:10 pm, sinbad wrote: im using vim 7.3, i learnt about the colorcolumn option. is it possible to color a column only for certain number of rows ? No. You can use the matchadd()

Re: Open file and position cursor at column number?

2012-01-23 Thread Trevor Bača
Thanks, Tim. This was, in fact, *exactly* what I was looking for. Much appreciated, Trevor. On Mon, Jan 23, 2012 at 8:56 PM, Tim Chase v...@tim.thechases.com wrote: On 01/23/12 06:45, Trevor Bača wrote: How can I open a file and have the cursor automatically positioned at column number

Re: Prefix lines with a counter

2012-01-23 Thread Chris Lott
On Mon, Jan 23, 2012 at 10:27 AM, Christian Brabandt cbli...@256bit.org wrote: Hi John! On Sa, 21 Jan 2012, John Little wrote: (Sorry list readers, I find myself repeating this here yet again.) Then look into the faq. It is contained there:

Re: Label Buffer State (Plug-in)?

2012-01-23 Thread Christian Brabandt
On Tue, January 24, 2012 1:02 am, Andy Wokula wrote: Am 24.01.2012 00:43, schrieb Paul: I wonder if there is a plug-in that provides the ability to mark a buffer's state at different times, so that one may 'undo' until the file goes back to a marked state. Eg., if you could open a file and

Re: colorcolumn rows

2012-01-23 Thread sinbad
On Jan 24, 8:27 am, Gary Johnson garyj...@spocom.com wrote: On 2012-01-23, sinbad wrote: On Jan 23, 12:51 pm, Christian Brabandt wrote: On Sun, January 22, 2012 4:10 pm, sinbad wrote: im using vim 7.3, i learnt about the colorcolumn option. is it possible to color a column only for

Re: colorcolumn rows

2012-01-23 Thread Christian Brabandt
On Tue, January 24, 2012 7:22 am, sinbad wrote: On Jan 24, 8:27 am, Gary Johnson garyj...@spocom.com wrote: On 2012-01-23, sinbad wrote: On Jan 23, 12:51 pm, Christian Brabandt wrote: On Sun, January 22, 2012 4:10 pm, sinbad wrote: im using vim 7.3, i learnt about the colorcolumn