Re: Change colour of cursor and matching bracket

2012-10-02 Thread François Ingelrest
On Sun, Sep 30, 2012 at 11:53 PM, Bram Moolenaar wrote: I'm using ATI/AMD. I tried installing their proprietery driver. Resulted in my desktop being 640 x 480 :-( Then running the display manager to change the resulution has the OK button off-screen. AAAr! Managed to hit it by

Re: change display colors. which rule causes which color?

2012-10-02 Thread Dominique Pellé
Gelonida N wrote: On 10/02/2012 01:00 AM, richard emberson wrote: To see the group I use: map F10 :echo hi synIDattr(synIDtrans(synID(line(.),col(.),1)),name) . CR To see the colors associated with a group use: :highlight groupname Thanks a lot for this tip. This helps me to identify

Re: Reading variables of a buffer/window that is not in scope

2012-10-02 Thread Jürgen Krämer
Hi, Brandon Coleman wrote: I would like to read the contents of variables for buffers that are not in scope. How would I go about doing this? Is there an example of a way to loop through all of the buffers? is there a command lookupWinVar(1,testVar)? I don't know if there is a function

Re: change display colors. which rule causes which color?

2012-10-02 Thread geoffrey . wood
On Monday, 1 October 2012 23:33:17 UTC+1, Gelonida N wrote: The problem is, that all dark blue colors are very difficult to recognize. Ideally I'd like to change all dark blue vim colors into a lighter blue or another color. I have the same problem with dark blue. Is there an easy way to

Re: Change colour of cursor and matching bracket

2012-10-02 Thread Dotan Cohen
On Sun, Sep 30, 2012 at 11:20 PM, Ben Fritz fritzophre...@gmail.com wrote: On Sunday, September 30, 2012 4:12:21 AM UTC-5, dotancohen wrote: Where in the fine manual is it mentioned how to change the colour of the cursor and the colour of the matching parenthesis / bracket for all file

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread Boyko Bantchev
On 2 October 2012 03:25, Steve Litt sl...@troubleshooters.com wrote: The fact is, that for X amount of time, the Vim newbie will be helpless with Vim. That's not true of Notepad or GEdit. How is that a fact? If one only does in Vim the kind of editing that they do in Notepad (e.g. when using

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread Marc Weber
vim emacs: Well - the whole discussion is pointless because we're not talking about what should be learned. Even notepad can do things Vim can't: Open registry dump files! So use the right tool for a job. And if you want to learn about Vim - and you're helpless - then ask somebody knowing how

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread David H. Lynch Jr.
Vi is present on nearly every *nix system in existance, from big servers to whatever is in your refridgerator. It is also on OSX. Vi is essentially a subset of vim. If you know vim you know vi. If you constantly need to work on random systems anywhere - you are stuck knowing the

Re: Reading variables of a buffer/window that is not in scope

2012-10-02 Thread Ben Fritz
On Tuesday, October 2, 2012 3:34:58 AM UTC-5, Jürgen Krämer wrote: I don't know if there is a function which gives you all existing buffers, The best I know of is tabpagebuflist() but you can loop through buffer numbers from 1 to bufnr('$') and check if the buffer really exists with

Re: Mapping for visual mode that starts from insert mode?

2012-10-02 Thread Ben Fritz
On Monday, October 1, 2012 9:53:40 PM UTC-5, WU Yue wrote: Hi, I know title is unclear, but my English skill is so limited, forgive me please, I will try my best to make my expression more clear. I have set mouse=a, so I can drag mouse to start a selection in normal/insert mode,

Visual mode maps with expr and folds in vimscript

2012-10-02 Thread Silas Silva
Hi again! I'm trying to remap '}' and '{' to a function with other paragraph definition. The map command is something like: nnoremap silent buffer } :call SIDParagraphNavigate()CR nnoremap silent buffer { :call SIDParagraphNavigate()CR vnoremap expr buffer } SIDParagraphNavigate()

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread Charles Campbell
Marc Weber wrote: snip Eclipse can highlight used and unused #ifdef regions, Vim cannot (AFAIK). snip Try Michael Gedde's ifdef.vim plugin -- http://www.vim.org/scripts/script.php?script_id=7 . Regards, C Campbell -- You received this message from the vim_use maillist. Do not top-post!

Re: Visual mode maps with expr and folds in vimscript

2012-10-02 Thread Christian Brabandt
Hi Silas! On Di, 02 Okt 2012, Silas Silva wrote: Hi again! I'm trying to remap '}' and '{' to a function with other paragraph definition. The map command is something like: nnoremap silent buffer } :call SIDParagraphNavigate()CR nnoremap silent buffer { :call

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread Christian Brabandt
Hi Marc! On Di, 02 Okt 2012, Marc Weber wrote: vim emacs: Well - the whole discussion is pointless because we're not talking about what should be learned. Even notepad can do things Vim can't: Open registry dump files! Why can't Vim? regards, Christian -- Wenn der kluge Mann mit dem

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread Marc Weber
Excerpts from Christian Brabandt's message of Tue Oct 02 21:29:28 +0200 2012: Even notepad can do things Vim can't: Open registry dump files! Why can't Vim? Hmm you're right. You could write a decode and use it (like showing hexdumps ..) - still I use bvi whenever I want to edit binary files.

RE: OT: The so called steep learning curve of vim...

2012-10-02 Thread John Beckett
Marc Weber wrote: Try Win + R - regedit click on any folder - File export - save as .reg file. Then you have a binary format which you can open in Vim but which is unreadable for humans. Notepad decodes it. On Windows (or most systems for that matter), your vimrc should probably start with

Re: OT: The so called steep learning curve of vim...

2012-10-02 Thread richard emberson
Both Vim and GVim have menubars with menus and submenus and, in addition, a popup menu that, at least for a very beginner, covers (maybe) 90% of what they may want to do (once they've got basic modal editing down). Though, it is also true that they will quickly out grow the menus and rapidly want

Problem with a regular expression in Vim

2012-10-02 Thread Xell Liu
Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy)? Apparently /==\zs[^=]\{-}\ze==/ fails. However /==[^=]\{-}==/ does match the aaa and ddd WITH the pair of ==. I got

Re: Problem with a regular expression in Vim

2012-10-02 Thread Adam
/==\zs\%(aaa\|ddd\)\ze==/ works ~Adam~ On Tue, Oct 2, 2012 at 9:37 PM, Xell Liu xell@gmail.com wrote: Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy)?

Re: Problem with a regular expression in Vim

2012-10-02 Thread Ben Fritz
On Tuesday, October 2, 2012 9:38:20 PM UTC-5, Xell Liu wrote: Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy)? Apparently /==\zs[^=]\{-}\ze==/

Re: Problem with a regular expression in Vim

2012-10-02 Thread Xell Liu
Thanks. But aaa and bbb are merely examples for indicating that what I want to match is the contents between a pair of ==. Enumerating of the contents doesn't meet my requirement. On Wed, Oct 3, 2012 at 11:17 AM, Adam les...@gmail.com wrote: /==\zs\%(aaa\|ddd\)\ze==/ works ~Adam~ On Tue,

Re: Problem with a regular expression in Vim

2012-10-02 Thread Xell Liu
Thanks very much for your detailed explanation. In fact, by pseudocode I think I can put my requirement like this: 1. Search for the first pair of == from the beginning location where the search starts. 2. Extract the contents in the pair of == as the first match result. 3.