Beginner's question

2010-04-12 Thread Benoit Thomas
Hello everyone, I've done my own color scheme file, which work great. However, when I tried to use variable instead of color name or color number (#00) it doesn't work and I don't know what I'm doing wrong. For example, I want to do something like this: " Text color is black. let s:text

Re: Beginner's question

2010-04-12 Thread Benoit Thomas
Thanks, works great. However, is there a more "elegant" way of doing this ? Otherwise I'll end up doing : exe 'hi Normal gui=' . s:text_style . ' guifg=' . s:text_fg . ' guibg=' . s:text_bg which may become hard to read. Ben. On 2010-04-12 11

Re: Beginner's question

2010-04-12 Thread Benoit Thomas
Thanks a lot for the reply, this should get me started :) Ben. On 2010-04-12 12:05, Jürgen Krämer wrote: Hi, [Quoting reordered] Benoit Thomas wrote: On 2010-04-12 11:07, Jürgen Krämer wrote: Benoit Thomas wrote: I've done my own color scheme file, which work

How to view all key mapping ?

2010-05-10 Thread Benoit Thomas
Hello, Is there a way or ressource which shows all key binding in vim in all mode ? I found a picture of the keyboard layout on the net but it doesn't have everything. For example, I know hjkl are used for direction arrows in normal mode, but I do not know what will happen if I hit those key

Re: How to view all key mapping ?

2010-05-10 Thread Benoit Thomas
On 2010-05-10 15:47, Gary Johnson wrote: On 2010-05-10, Benoit Thomas wrote: Hello, Is there a way or ressource which shows all key binding in vim in all mode ? I found a picture of the keyboard layout on the net but it doesn't have everything. For example, I know hjkl are use

Question about colors

2010-05-19 Thread Benoit Thomas
Hello, I've changed my background color for Comment, which works great, but is there an option to allow the background color to cover the whole line instead of just being under the written character ? Also, I didn't set any background color for SpecialKey (did a clear first) in order for it

Question about command-line mode mapping

2012-01-19 Thread Benoit Thomas
Hi, I'm trying to add some shortcuts in the command-line mode, mainly I want to jump backward by word The closer I was able to do was :cnoremap which jump backwards by WORD or use which delete backward by word Is there anyway to do something like :cnoremap Thank you, Ben. -- You rec

Passing Ctrl-Y and Ctrl-E as function argument.

2013-01-20 Thread Benoit Thomas
Hi, In my .vimrc, I have function to have smooth scrolling to replace Ctrl-U and Ctrl-D (otherwise I loose context). The implementation I took from the net was using an integer for the direction, something like if a:up let action="\" el let action="\" en which was working great. But

Re: Passing Ctrl-Y and Ctrl-E as function argument.

2013-01-21 Thread Benoit Thomas
Thanks all for the explanation, I now better understand what happens under the hood. Using \C-E> did work. Ben. On 20/01/2013 11:36 PM, Ben Fritz wrote: On Sunday, January 20, 2013 9:33:18 PM UTC-6, John Little wrote: On Monday, January 21, 2013 5:57:19 AM UTC+13, Benoit Thomas wrote: