View previous topic :: View next topic |
Author |
Message |
kejaha n00b
Joined: 21 Dec 2004 Posts: 3 Location: Heber City, Utah
|
Posted: Sun Mar 12, 2006 6:22 pm Post subject: latexsuite and alt key shortcuts in vim |
|
|
I've recently begun using latexsuite in vim to edit my Latex Documents. It works great on my desktop, but on my Dell Inspiron 8500 laptom, I cannot get the alt key to correctly insert commands. For example, if I am creating an itemized list and I hit <alt-i> in insert mode, latexsuite is supposed to insert the appropriate \item tag, but instead it insert and "é". I have tried everything I can think of namely:
- changing keymaps in /etc/conf.d/keymaps.
- changing the keyboard section in xorg.conf to read
Code: | Option "XkbModel" "inspiron"
Option "XkbLayout" "en_US"
Option "XkbVariant" "nodeadkeys |
This shouldn't be the problem though because the same shortcuts don't work in a console with vim either.
Out of curiosity, I installed Centos to dual-boot on this machine and it works with that. I can't figure out what the difference between the two systems is though.
If anyone out there has any insight into this, I would greatly appreciate it. |
|
Back to top |
|
|
KozmoNaut Apprentice
Joined: 09 Dec 2002 Posts: 168 Location: Denmark
|
Posted: Tue Mar 14, 2006 11:32 am Post subject: |
|
|
I have a similar problem, but on my machine it only affects Vim in console mode. In GVim, the <alt>-shortcuts work fine, but in console Vim <alt+i> just backs up one character instead of inserting an \item tag.
This fixes the shortcuts so they insert tags in GVim instead of opening menus:
~/.gvimrc wrote: |
set winaltkeys=no |
_________________ War. War never changes. |
|
Back to top |
|
|
kejaha n00b
Joined: 21 Dec 2004 Posts: 3 Location: Heber City, Utah
|
Posted: Wed Mar 15, 2006 7:06 am Post subject: I'll give it a try. |
|
|
KozmoNaut wrote: | I have a similar problem, but on my machine it only affects Vim in console mode. In GVim, the <alt>-shortcuts work fine, but in console Vim <alt+i> just backs up one character instead of inserting an \item tag.
This fixes the shortcuts so they insert tags in GVim instead of opening menus:
~/.gvimrc wrote: |
set winaltkeys=no |
|
I appreciate the response. I'll let you know if this works.
I'm starting to wonder if it has anything to do with the keymaps I'm using. I've tried a variety of things, but to no avail. Seeing as it works under CentOs on the same machine, do you know how to verify that the keymaps used are the same? |
|
Back to top |
|
|
KozmoNaut Apprentice
Joined: 09 Dec 2002 Posts: 168 Location: Denmark
|
Posted: Wed Mar 15, 2006 11:33 am Post subject: |
|
|
I would guess that if the keyboard section in xorg.conf is the same for both Gentoo and CentOS, you should be using the same keymap... Provided of course you haven't used xmodmap (or xkeycaps) to move around anything. _________________ War. War never changes. |
|
Back to top |
|
|
|