Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
latexsuite and alt key shortcuts in vim
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kejaha
n00b
n00b


Joined: 21 Dec 2004
Posts: 3
Location: Heber City, Utah

PostPosted: Sun Mar 12, 2006 6:22 pm    Post subject: latexsuite and alt key shortcuts in vim Reply with quote

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
View user's profile Send private message
KozmoNaut
Apprentice
Apprentice


Joined: 09 Dec 2002
Posts: 168
Location: Denmark

PostPosted: Tue Mar 14, 2006 11:32 am    Post subject: Reply with quote

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
View user's profile Send private message
kejaha
n00b
n00b


Joined: 21 Dec 2004
Posts: 3
Location: Heber City, Utah

PostPosted: Wed Mar 15, 2006 7:06 am    Post subject: I'll give it a try. Reply with quote

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
View user's profile Send private message
KozmoNaut
Apprentice
Apprentice


Joined: 09 Dec 2002
Posts: 168
Location: Denmark

PostPosted: Wed Mar 15, 2006 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum