Re: How to set USERNAME in RHS of set command

2012-07-02 Thread Bee
On Jun 26, 10:38 pm, John Little john.b.lit...@gmail.com wrote: I have an expression in my status line option %1*%{ff=~'u'?'':ff}%* I have wondered about coloring the statusline. Thank you John. These work the way I would like. Is it possible to make it a one liner? That is conditionally

finding the originating map command

2012-07-02 Thread Tim Johnson
I have mapped ,cs to a function called CheckSyntax if I execute : map ,cs I get ,cs * :call CheckSyntax()CR if I execute :verbose map ,cs I get ,cs * :call CheckSyntax()CR Last set from /Users/http/run/baker/journal/000_main__journal.vim which

synIDattr used with matchadd

2012-07-02 Thread richard emberson
If I use the matchadd function to highlight a region given a pattern which is based upon a region, can I use the id returned by matchadd with the function synIDattr get get the fg and bg colors associated with the highlight group used? Or, can synIDattr only be used with ids associated with

Re: finding the originating map command

2012-07-02 Thread Gary Johnson
On 2012-07-02, Tim Johnson wrote: I have mapped ,cs to a function called CheckSyntax if I execute : map ,cs I get ,cs * :call CheckSyntax()CR if I execute :verbose map ,cs I get ,cs * :call CheckSyntax()CR Last set from

Re: finding the originating map command

2012-07-02 Thread Tim Johnson
* Gary Johnson garyj...@spocom.com [120702 15:29]: On 2012-07-02, Tim Johnson wrote: I don't think Vim remembers any place but the last where a mapping was defined. However, you can start Vim like this, $ vim -V15verbose.out ... and capture all the ex commands to the file