keymapping

Why is psql inserting a tilde when I press any of the keys in the Home key cluster?

I'm using psql 8.2.3 on FreeBSD. Every time I press Insert, Home, Delete, End, Page Up or Page Down, a tilde (~) character is inserted instead of performing the expected function of the key. Why does this happen and how can I fix it? ...

TextMate equivalent to gVim Ctrl+P

To auto complete a previously written string. Is it possible? EDIT I'm editing javascript/java if that matters. ...

Vim oddities in keymapping.

I like to insert blank lines without entering insert mode and I used this keymapping: nomap go o <esc> This does create the blank line but introduces some weird behaviour. I have smart indent and autoindent set. The new line follows the indents but doesn't remove them even though doing so manually automatically removes the redundant w...

Is there a Visual Studio 2008 keymap profile for Netbeans?

I know there are keymap profiles for Eclipse and Idea that reflect the VS 2k8 key mapping / shortcuts experience quite well, but do you know where I can find one for my IDE of choice, Netbeans? Could importing from another IDE be possible as well? Many thanks, sk ...

Use default KeyMap of native OS

In Java, by using non-default system look and feel we will have different keymap. For example I'm using Mac OS X and use Substance look and feel (non-default system look and feel). The effect is I'm loosing my "meta" key for select all on text component In mac os x should be "meta + a", but using Substance we have to use "ctrl + a" (and...

IntelliJ Macro menu

Hi guys.. I've just started playing with macros in IntelliJ. I recorded several then played back until I decided to add keymap shortcuts to my macros. I went to Settings and pressed Alt+C to add a new child map because I couldn't edit the parent. Since then the macros are no longer accessible from the Tools menu, not to mention that the...

Assign a keymap to a derived mode in emacs

How can I assign a keymap to a derived mode in emacs (I am using the define-derived-mode function). There is a derived-mode-set-keymap function but without examples or good documentation. ...

Unidentifiable Vim Keymap

Hi I'm trying to get rid of a pesky keymapping in vim, namely \c The mapping is only loaded for latex files, so it should be related to the latex-suite. It's annoying, because it can't type \cite without this keymap ruining everything. I can unmap it "manually" by typing: :unmap! \c But this doesn't work when I put that into my ...

Mode specific key bindings

Hey, I have a minor mode that also comes with a global mode. The mode have some key bindings and I want the user to have the posibility to specify what bindings should work for each mode. (my-minor-mode-bindings-for-mode 'some-mode '(key1 key2 ...)) (my-minor-mode-bindings-for-mode 'some-other-mode '(key3 key4 ...)) So I need some ki...

Mapping <C-Tab> in my vimrc fails in Ubuntu

I want to map ctrl-tab to :tabn, and ctrl-shift-tab to :tabp. I had it working for gVim in Windows XP, but moved it to my .vimrc in Ubuntu 9.10 and it doesn't work (vim 7.2). Here's the relevant section of my .vimrc: nmap <C-Tab> :tabn<CR> nmap <C-S-Tab> :tabp<CR> nmap <C-t> :tabnew<CR> <C-t> works fine, so mapping the ctrl key does...

How to change the cursor keys in VIM

I'm trying to change the cursor keys in VIM from the normal h,j,k,l to the home position for typing j,k,l,;. Any suggestions on how to do that? Thanks in advance. ...

mapping function keys in vim

I want to map my f2 for nerdtree with the following entry. map :NERDTreeToggle But even before that , and after saving the vimrc , whenever i press f2 , it jus switches the case of the letters on which the cursor is present. Later found out that any function key does it.f5 switches case of 5 characters and so on.Is this because of some ...

mapping already exists for ^I in vim

I have added the following lines to the vimrc file so that i could use s-tab for indenting map <esc>[Z <s-tab> ounmap <esc>[Z After i have added this , i get the following error. I use SnippetsEmu plugin Error detected while processing function <SNR>15_SnipMapKeys: line 10: E227: mapping already exists for ^I How do i solve this ...

Which keymap for programmers? Dvorak?

Hi, I am fed up with qwerty keyboard for programming. I am looking for a more convinent keymap. I tried learning dvorak. I see there are lot of versions of dvorak, which one should I use? Also, I heard about Bepo, is it an other keymap or just a version of dvorak? ...

VIM special chars without shift key

I write a lot of code and tired of pressing shift each time I need a special character. And since I use special chars much often, then numbers, I want to reverse shift behavior on them. So, if I type <4> I'll get '$' and if I type <shift>+<4> I'll get '4' and so on for each number. This mapping should work only in insert mode. I've...

Maping a key based on the device the key is on? (Linux)

I own a Razer Naga Mouse, essentaly it has a small numpad on the side of it. I want to remap these keys to different unused keys or to bash commands. I can do this easily by using xev to grab the keycode (for instance the "1" on the mouse is keycode 87) and then I can use xmodmap to bind the keycode to a different key. However the numpa...