Questions tagged [keyboard-layout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
87
votes
14answers
80k views

Other ways to exit Insert mode besides Escape

The primary reason I like vim over emacs is that my hand movement distance away from the home row is very low (even as a programmer). However, the one main time that I do this is leaving insert mode, ...
57
votes
3answers
15k views

Why does vim use hjkl for cursor keys?

Why use the keys hjkl on the same line instead of keys in a triangle like wasd for moving on video games? Why not something equivalent with right hand, like ijkl or pl;'?
21
votes
4answers
3k views

How do I keep accidentally creating a no break space before opening curly brace?

I am conscious this is a strange question, and this might not even be the right forum to post it. But this has been a problem for several years. From time to time, let's say once a month, when I ...
21
votes
4answers
3k views

What is the most convenient way to work with different keyboards in vim?

I sometimes need to write Greek words, but when I am using the Greek keyboard, hitting, say, <C-p> will be understood as <C-π> and not as the command I intend. This can be fixed with :map &...
13
votes
1answer
1k views

Can't map German 'umlaut' keys in .vimrc

I'm trying to find a way to map German umlaut keys (Ä,ä,Ö,ö,Ü,ü). A simple shortcut like this won't work: inoremap <c-ö> <Esc> Nothing happens when I hit ctrl+ö. Does anyone know a ...
11
votes
2answers
3k views

How can I modify Vim to work with a different keyboard layout?

I type with a non-QWERTY keyboard layout. Many of the keys Vim uses are now on the home row, but some key bindings just don't work, the most obvious one being the hjkl keys. How and where can I ...
9
votes
2answers
990 views

Using marks with dead keys

I am using a keyboard layout in which the backtick (`) is a dead key. This means that when I type a backtick followed by a vowel (for example `a) what Vim sees is an accented character (à). So if I ...
9
votes
2answers
510 views

How can I create a pseudo insert mode with a different keymap?

I am in the slightly unusual position of using two different keyboard layouts on a regular basis (Programmers-Dvorak and Turkish-F). These layouts are quite different from each-other and I am only ...
7
votes
3answers
3k views

Can I write Japanese (SKK) text in Vim?

I need to be break it to you guys, I use emacs. But just for one little thing. Recently I've been working with a good deal of Japanese people (the company is Japanese) and I got some idea of the ...
7
votes
1answer
11k views

How to enter tilde (~), back tick (`) and special chars with a non-US keyboard?

I usually use Vim with an Italian keyboard (I'm from Italy), (mainly in an Ubuntu Linux Virtualbox guest from a Windows host). I have problems when I have to enter some frequently used characters (...
7
votes
1answer
229 views

How do you set no timeout for a specific remap?

The question arise from a problem using a huge remapped configuration so bépo layout is virtually the same as the qwerty in normal mode, at least for single key press commands. Selecting text using ...
6
votes
1answer
3k views

Why doesn't my numpad work right in my terminal?

In several terminal programs, such as PuTTY, SecureCRT, iTerm, and Mac OS Terminal, if I have NumLock on and I press the number pad (numpad) keys 0123456789 in insert mode, my vim looks like this: y ...
5
votes
2answers
762 views

How do international users use Ctrl-] efficiently? Remapping?

Ctrl-] is how one is supposed to move around interactively in Vim on "linkable" text, for instance in the help files. On US layouts, this is simply a two finger combo. Unfortunately the "]" character ...
4
votes
1answer
762 views

Use the same key for `, ~, esc

I am trying to use KBC Poker 3 keyboard which combines `,~ and <Esc> as one key with Vim and wondering if it is possible to use the quick press of the escape key as char '`', and long press of ...
3
votes
2answers
286 views

How do I swap key bindings without breaking plugins?

I'm thinking about exchanging some keys while in non insert-mode so that the bindings that I use most are easier to reach (i.e. on the home row). How can I swap two keys without breaking the ...
3
votes
1answer
115 views

german umlaute mapping

Hi is there a way to map German umlaute like "ö", "ä", "ü" to some keyboard shortcut, i.e. when I press the keyboard shortcut, it inserts the umlaut. I am German and use an English keyboard layout, ...
3
votes
1answer
43 views

Auto replace special programming characters

Programming in Javascript and similar syntax languages we use a lot of {} and (), more so than [] and the 90. Therefore we end up using SHIFT a lot. Is there a way to make it so that when I type [ ...
3
votes
1answer
240 views

Vim and Spanish

Is there a vim adaptation (plugin) for the Spanish keyboard? There is one for the Russian language, for instance. Of course, Russian is much more troublesome, because you have to remap virtually ...
3
votes
0answers
44 views

Recording and playing macros with langmap activated

Thank you for your interest in this rather specialized question. This is a follow-up to this question : Mapping for expression register with langmap active I’m looking for the best way to associate ...
2
votes
1answer
885 views

How to open a vertical split to the main view not just next to the current one in case of horizontal splitted viewport? [duplicate]

I have 2 buffers on eachother covering top and bottom of the screen. I want ot open a third buffer on right split but the problem is is I make a right split it will only split the top right or bottom ...
2
votes
1answer
321 views

NERDTreeMenu Remapping

I'm a Colemak keyboard layout user and I recently started to learn and use Vim. I was able to map the arrow keys in the normal mode by putting custom mappings such as noremap u k in .vimrc (because ...
2
votes
1answer
150 views

Numpad characters don't work in keybindings mappings (but work in general)

For my terminal Vim 8.0, I have downloaded this plugin that makes changing font size on the fly easy: https://github.com/drmikehenry/vim-fontsize Following the instructions, here is how I decided to ...
2
votes
1answer
387 views

Gvim <C-]> not working with azerty keyboard

I have a windows 7 machine with an azerty keyboard running gVim 7.4 My problem is that <C-]> simply does nothing: When I'm in an help page I can't follow the tags links. As I have an azerty ...
2
votes
1answer
196 views

Making gVim behave with the English International keyboard layout

I run gVim7.4 on Windows 7 with the English International keyboard layout. The keyboard layout works in a way so that pressing ` + i gives you ì. In Vim insert mode that's the desired behavior. ...
1
vote
1answer
67 views

is it possible to map numpad differently?

Currently, the numpad does the usual things(input numbers and so on). numlock does nothing. I wonder if you can differentiate numbers/char entered on the numpad from those typed on the main section ...
1
vote
1answer
551 views

What does c^n in vim do?

I went to open a browser window today with CTRL+n and I wasn't in the browser I was in vim, when a menu popped up with what looked to be about every word in my entire document. What does CTRL+n do, ...
1
vote
2answers
207 views

How to deal with several keyboard layouts when accessing a remote server?

I am using two different keyboard layouts (depending on the computer I use) on the same server (one being AZERTY, the other QWERTY). I would like to have "conditional" mapping options in my .vimrc ...
1
vote
1answer
591 views

Vim printing strange characters when hit “home”, “end” stc

Why vim keep printing strange characters when I hit non-characters key? Insert prints [2~ Delete prints [3~ Page Up prints [5~ Page Down prints [6~ Home prints OH End prints OF Arrow Up prints OA ...
1
vote
1answer
416 views

Special control keys in windows 7 don't work with the 'extended english keyboard (UK)' layout

Using gvim on Microsoft Windows, I find myself unable to use some control keys. For example I cannot navigate the :help topics using Control+]. Likewise, I cannot escape insert mode using Control+[. ...
1
vote
1answer
61 views

EurKEY input moves characters in INSERT mode

I am using VIM on Ubuntu 18.04 with the EurKEY keyboard layout. I find the layout useful since it allows me to type German letters like "öüä" easily while still using a more or less standard US layout....
1
vote
1answer
78 views

How can I make gvim keyboard language-agnostic in command mode?

Sometimes I'm using GVim not only for coding, but also for typing texts in Russian language. I'm very annoyed that I have to switch my keyboard layout back to English each time when I return to ...
1
vote
0answers
14 views

How to do a keyboard mapping for CR and Shift-CR [duplicate]

To do a mapping for return I can do: "When in normal mode, treat an enter like insert+enter :nnoremap <CR> i<CR> However, I would also like to map a shift-enter as: :nnoremap <Shift-...
1
vote
0answers
27 views

vim shows code point of zero-width non-joiner character

vim (version 8.0) shows <200C> when I insert zero-width non-joiner character via Persian keyboard.
1
vote
2answers
66 views

Can I make left Alt act the same as shift key using key map?

I would like to swap my left shift key with my left alt key, and I would like to know if it’s possible to achieve this with vim key mapping. Maybe not swapping but copy the whole shift key map to ...
1
vote
0answers
186 views

Use ISO Level3/5 as modifier in vim keymap?

I've been using the pseudo keymap solution from my previous question to great effect for 6 months now. The short version is that it allows me to keep the computer keyboard map in my usual Programmer's ...
0
votes
2answers
227 views

Ctags not working properly on Latin american keyboard

Right now I'm trying to configure ctags in my vim environment but I'm not sure what I'm missing. First, I installed ctags (using yaourt) and the I added this on ~/.ctags. After that, I run ctags -R ....
0
votes
1answer
615 views

How to enter and display German Umlauts on a Windows 10 machine with Russian locale?

I want to be able to write German texts using my Vim 7.4 installed on a Windows 10 machine with Russian locale and German keyboard layout. My .vimrc file looks like this: set encoding=utf-8 set ...
0
votes
1answer
258 views

Making Numpad numerical keys work in Vim using Ubuntu 18's terminal

In my current machine, I use Vim 8.1 in a Ubuntu 18's default terminal (Vim is running with TERM=xterm256-color, which is a requirement for me). Everything works perfectly, with the exception of the ...