Key mapping on , and . with CTRL
Hi, Vimmers, Is there any way to map the comma and period with CTRL such as: map C-, :foo map C-. :foo It seems the , and . cannot be used here directly. How can I do in this case? Another question is how I can check all of the current key mappings in VIM? I remembered I saw something about it before, but failed to find it out. Thanks, -- Best, Zhaojun
Re: Key mapping on , and . with CTRL
Another question is how I can check all of the current key mappings in VIM? I remembered I saw something about it before, but failed to find it out. try :map hth, ymc
Re: Key mapping on , and . with CTRL
Hello, I think it depends on what your terminal can understand. One way you can find it out is to type ':map ' (using command mode), then press CTRL-V and then the key sequence you want to map. For example, to map CTRL-L you could use ':map CTRL-VCTRL-L'. regards, Peter --- Zhaojun WU [EMAIL PROTECTED] wrote: Hi, Vimmers, Is there any way to map the comma and period with CTRL such as: map C-, :foo map C-. :foo It seems the , and . cannot be used here directly. How can I do in this case? Another question is how I can check all of the current key mappings in VIM? I remembered I saw something about it before, but failed to find it out. Thanks, -- Best, Zhaojun Send instant messages to your online friends http://au.messenger.yahoo.com
Re: Key mapping on , and . with CTRL
You might also want to see the conversation earlier this week about which Control-keys are considered cross-platform. I think it was C-@ and C-A through C-Z, and the rest are not guaranteed to work on all systems. -Dmitriy On 10/27/06, Peter Hodge [EMAIL PROTECTED] wrote: Hello, I think it depends on what your terminal can understand. One way you can find it out is to type ':map ' (using command mode), then press CTRL-V and then the key sequence you want to map. For example, to map CTRL-L you could use ':map CTRL-VCTRL-L'. regards, Peter --- Zhaojun WU [EMAIL PROTECTED] wrote: Hi, Vimmers, Is there any way to map the comma and period with CTRL such as: map C-, :foo map C-. :foo It seems the , and . cannot be used here directly. How can I do in this case? Another question is how I can check all of the current key mappings in VIM? I remembered I saw something about it before, but failed to find it out. Thanks, -- Best, Zhaojun Send instant messages to your online friends http://au.messenger.yahoo.com
Re: Key mapping on , and . with CTRL
Hi, Dmitriy, Peter, and YMC, Thanks a ton. :) Zhaojun On 10/27/06, Dmitriy Yamkovoy [EMAIL PROTECTED] wrote: You might also want to see the conversation earlier this week about which Control-keys are considered cross-platform. I think it was C-@ and C-A through C-Z, and the rest are not guaranteed to work on all systems. -Dmitriy On 10/27/06, Peter Hodge [EMAIL PROTECTED] wrote: Hello, I think it depends on what your terminal can understand. One way you can find it out is to type ':map ' (using command mode), then press CTRL-V and then the key sequence you want to map. For example, to map CTRL-L you could use ':map CTRL-VCTRL-L'. regards, Peter --- Zhaojun WU [EMAIL PROTECTED] wrote: Hi, Vimmers, Is there any way to map the comma and period with CTRL such as: map C-, :foo map C-. :foo It seems the , and . cannot be used here directly. How can I do in this case? Another question is how I can check all of the current key mappings in VIM? I remembered I saw something about it before, but failed to find it out. Thanks, -- Best, Zhaojun Send instant messages to your online friends http://au.messenger.yahoo.com