Questions tagged [keyboard-layout]
The keyboard-layout tag has no usage guidance.
55 questions
0
votes
1
answer
58
views
langmap issue with [ and ]
I am using MacVim 1-727 and I have problems with mapping [ and ] with :help 'langmap'.
I have a Swedish keyboard and I set:
set langmap=ö[,ä]
If, for example, I open help pages and I use <c-ä> ...
4
votes
1
answer
312
views
How to completely change the `f` key to a `/` and the `F` key to a `?`
I use neovim latest version 0.10.1, I want to convert the entire function of f button to / button and F button to ?, because I often use / and ? function to search for more than just f and F, I ...
1
vote
0
answers
35
views
How to find the correct "keystring" for an input keystroke in neovim?
I want to map the keystroke Ctrl + § to :Telescope oldfiles in neovim. I naively tried this:
vim.keymap.set('n', '<C-§>', ':Telescope oldfiles<CR>', {noremap = true, silent = true })
but ...
1
vote
1
answer
103
views
Android Vim (DroidVim?) keyboard with swipe functionality
I am wondering what it would take to build an Android keyboard that mimicked Vim, with swipe (swype?) functionality (such as the one Google's Gboard uses to allow users to write on Android).
This ...
0
votes
1
answer
27
views
How to configure repmo such that it works with ]m and pythonsense?
I would like to jump from method to method in Python. With Vim you can use the ]m combination to jump to the next method and the [m to the previous.
Since the ] is quite awkward to type on a Belgium ...
2
votes
2
answers
917
views
How to disable hjkl movements?
Before you crucify me please note I have a an Ultimate Hacking Keyboard and I already can move with arrow keys on the home row :)
I suppose I don't have to since I have a different layer to activate ...
1
vote
1
answer
750
views
What is the most convenient window splitting strategy for Vim users when using Terminal Multiplexer and Tiling Window Managers? [closed]
I use Vim/Neovim mostly inside Wezterm, with I3 as my window manager. Also all of them offer tabbed interface. Shortcuts to cycling through the different layers is difficult, even with ergonomic ...
2
votes
1
answer
207
views
Remap square bracket commands to fit a swiss layout keyboard
I'm new to vim and currently trying to understand the different commands. :help index shows me a list of all commands for each mode. Section 2.3 is about "Square bracket commands" like [* ...
1
vote
0
answers
182
views
Mapping symbols and special characters to home row in insert mode
Typing symbol is difficult, so I wish to to map those symbol on number keys to home row by a prefix key like ,. It is the idea from workman dead mode keyboard layout, by pressing , and the keyboard ...
13
votes
4
answers
5k
views
Expectations in how to get faster with Vim/Nvim?
I have been using VIM for around 7 months now for all writing and all coding. Maybe 1-2 hours per day.
I can use it and work quite fast with it. Most of the time I know what I am doing.
But I still ...
-2
votes
2
answers
408
views
Custom Keybindings [closed]
I need a text editor for universal use and I decided that vim has the such potential. Vim is great software, but I as a new user find it difficult to get into, but I am determined to use it.
The only ...
2
votes
1
answer
146
views
How can I inhibit the effect of hitting Ctrl+Menu
I'm referring to holding Ctrl and hitting Menu (which is this key), which happens by mistake sometimes.
For me it results in going back to normal mode and moving to the first non-blank character of ...
0
votes
1
answer
51
views
Meta-Model: Shrinking In Correct Direction
This questions sounds ridicolous, but is there any (mental?!) aid for my struggle when resizing windows?
Since the earliest days of my vi/m usage, I have struggle shrinking windows in the correct ...
3
votes
1
answer
4k
views
What keys on my keyboard is <M-n>?
Stupid I know, but I can't find for the life of me what keycombination the <M-n> mapping is.
:bn<CR> is mapped to <C-n> wich is ctrl+n
:bp<CR> is mapped to <M-n> wich is ...
1
vote
1
answer
999
views
Vim change keyboard language.. via shortcut
I want to change keyboard language via vimscript shortcut. So that i ...
1
vote
1
answer
180
views
How to type ê without pressing <C-k> e>
My keyboard layout is set to international american. And to obtain the character ê just press <sfhit+6> e. However, within the vim I need to press <C-k> e>. Is it possible to map <...
5
votes
0
answers
92
views
EasyMotion without keyboard layout switches for non english text?
My text often contains two languages: english and russian. The problem appears with EasyMotion plugin. Assume I have such text:
Русский текст и еще текст.
and want to find те.
What I do:
Starting ...
3
votes
1
answer
617
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 ...
1
vote
0
answers
31
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
0
answers
149
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
2
answers
483
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 ...
6
votes
1
answer
2k
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, ...
1
vote
1
answer
490
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 ...
3
votes
1
answer
131
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
1
answer
1k
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 ...
2
votes
1
answer
3k
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, ...
3
votes
1
answer
2k
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 ...
1
vote
1
answer
104
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....
0
votes
1
answer
881
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 ...
2
votes
1
answer
243
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 ...
1
vote
1
answer
258
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 ...
3
votes
1
answer
2k
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 ...
0
votes
2
answers
275
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 ....
25
votes
5
answers
5k
views
How do I keep accidentally creating a no break space before opening curly brace?
From time to time, let's say once a month, when I program, I introduce a No-Break space instead of a regular space, before opening a curly brace.
This happens let's say when I'm writing () {
This ...
7
votes
1
answer
548
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 ...
16
votes
2
answers
12k
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 ...
3
votes
3
answers
572
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 ...
5
votes
2
answers
1k
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 ...
72
votes
3
answers
27k
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;'?
0
votes
1
answer
767
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 ...
7
votes
3
answers
5k
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 ...
4
votes
1
answer
1k
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 ...
1
vote
2
answers
373
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 ...
2
votes
1
answer
387
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. ...
15
votes
1
answer
2k
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 ...
10
votes
1
answer
19k
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 (...
22
votes
4
answers
6k
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 &...
1
vote
0
answers
261
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 ...
6
votes
3
answers
849
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 ...
1
vote
1
answer
470
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+[.
...