patch for 7.0d docs
I was very pleased to see Taro Muraoka's functionality included for selecting quoted strings! Here's a small patch to correct the fact that these are visual mode commands as opposed to normal mode commands. -- Adam Monsen version7.txt.patch Description: Binary data
default cursorline/cursorcolumn with dark background
Hi! Vim choses the default colors of the syntax highlighting for gVim depending of the value of background. If I add the lines set background=dark hi Normal guifg=#e0e0e0 guibg=#202020 I get the defaults for dark backgrounds. Unfortunately, the background colors of cursorline and cursorcolumns are the same as in the light default color scheme, that is Grey90. The problem with this is, that the text gets unreadable. This affects all dark color schemes which don't have the CursorLine and CursorColumn highlights defined. I think, a better color of guibg would be Grey40 or something like that. Older color schemes would work again, if the default were better. Best wishes and happy Easter! Georg ___ Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com
Re: enhancing namespaces | introduce n:m relation buffers/functionality
Marc Weber wrote: I'm restructuring my vim scripts and I'm not sure in which namespace to put some functions/ commands/ maps. By now there are these namespaces (copied from vim help) as far as I know |buffer-variable|b: Local to the current buffer. |window-variable|w: Local to the current window. |global-variable|g: Global. |local-variable| l: Local to a function. |script-variable|s: Local to a |:source|'ed Vim script. |function-argument| a: Function argument (only inside a function). |vim-variable| v: Global, predefined by Vim. Eg. I want to use the closeb script, my own HTML mappings to type uuml; faster , matchit plugin and so on. This functionality should be associated with not just HTML but also with HTML like types like jsp,asp,... I think a very clean way would be doing something like this: function namespace xml:Close() ... imap -namespace=xml C-_ C-r=Close()CR to associate maps/functions to namespaces which might be associated all at once to buffer this way: ftplugin/xml.vim: setlocal namespaces+=xml ftplugin/html.vim: setlocal namespaces+=xml ftplugin/jsp.vim setlocal b:namespaces+=xml ftplugin/aspx.vim setlocal b:namespaces+=xml ftplugin/vim.vim setlocal b:namespaces+=NERD_commentify setlocal b:namespaces+=TlistMappings setlocal b:namespaces+=regexpr ftplugin/sh.vim setlocal b:namespaces+=NERD_commentify setlocal b:namespaces+=bash_mappings setlocal b:namespaces+=make_executable setlocal b:namespaces+=sh_menu Some scripts like Trigger.vim wouldn't be necessary any more because removing/adding a functionality would be done in a clean way: setlocal b:namespaces+/-=xml local settings should override namespace settings which should ovverride global settings. (the way setlocal is preferred over set settings).. I would also introducde another folder like ftplugin which should contain loading mappings/ functions for namespaces eg .vim/namespaces/xml.vim What do you think? Much to complicated. In nearly all situations you can simply prepend an ID to the global name, such as xml_something(). Then it's much easier to find (grep) for where the name is used. -- From know your smileys: :-| :-| Deja' vu! /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://www.ICCF.nl ///
Re: default cursorline/cursorcolumn with dark background
Hi, In the meantime I found another one: Could you please set MatchParen differently, because with a dark background a light foreground and Cyan don't fit. I suggest setting guifg to bg or Black. That's bugging me too. Something else: When I have a completion menu that's long, but still completely fits the current window (say, 30 entries) and I hit hit C-N or C-P the whole list is redrawn (ie, it flickers). Is there a technical reason why not only two lines (the one that was selected before C-N and the one selected after C-N) are redrawn? If not, could someone give me a pointer what I can do to change this? Thanks, Nico
Re: completion menu
Georg Dahn wrote: Ok, let's assume there are several completions, such that you get a menu with C-N. Then if you move the selection with the cursor keys and press Enter, the selected item is being chosen. If you do the same with C-N (instead of using cursor keys), Enter inserts a new line. I think, this is confusing. Is this behavior intentional or is it a bug? This is intentional, it was discussed recently. This is a compromise between different expectations from different users. People who used CTRL-N/CTRL-P in Vim 6.4 expect the Enter to be inserted, since that is what happened in older versions. People who are using cursor keys to select an item in the popup menu mostly expect Enter to accept the selected match. That's why the behavior of Enter depends on what you did earlier. -- From know your smileys: |-(Contact lenses, but has lost them /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://www.ICCF.nl ///
Re: Strange behavior with highlights defined in gvimrc
Hi! What does :verbose hi Constant guifg=Maroon show? Nothing. But the Constants are Maroon afterwards. In addition to the above sort of debugging, you can add a line like let g:foo = 2006 April 16 background= . background to your color scheme file. The date stamp is to avoid confusion the *next* time you add debugging comments. :eval g:foo shows, that the value of 'background' is 'dark'. Shouldn't it be light (docu: When starting the GUI, the default value for 'background' will be light)? Best wishes, Georg ___ 24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com
Re: default cursorline/cursorcolumn with dark background
Hi! In the meantime I found another one: Could you please set MatchParen differently, because with a dark background a light foreground and Cyan don't fit. I suggest setting guifg to bg or Black. How about using guibg=DarkCyan? Looks OK to me, it is much better! Best wishes, Georg Send instant messages to your online friends http://uk.messenger.yahoo.com