Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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-ä> ...
Barzi2001's user avatar
  • 808
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 ...
tungsondkh's user avatar
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 ...
glades's user avatar
  • 23
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 ...
Rick Penabella's user avatar
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 [* ...
Arber's user avatar
  • 123
-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 ...
Pragmatic's user avatar
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 ...
Tomes's user avatar
  • 86
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 ...
Lieven Keersmaekers's user avatar
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 <...
Lucas Martins Soares's user avatar
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 ...
Lionel Hamayon's user avatar
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-...
David542's user avatar
  • 2,485
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 ...
Andrew.Wolphoe's user avatar
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, ...
clog14's user avatar
  • 163
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 ...
eyal karni's user avatar
  • 1,226
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 [ ...
user1894919's user avatar
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 ...
David's user avatar
  • 143
0 votes
1 answer
882 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 ...
Jorget Millani's user avatar
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 ...
Jorget Millani's user avatar
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 ...
nikoss's user avatar
  • 379
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 ...
psychoslave's user avatar
3 votes
3 answers
573 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 ...
Julien__'s user avatar
  • 139
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 ...
oligofren's user avatar
  • 1,093
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 ...
Rotareti's user avatar
  • 625
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 (...
Giorgio Robino's user avatar
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 &...
Toothrot's user avatar
  • 3,149
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 ...
Caleb's user avatar
  • 2,265
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 ...
statox's user avatar
  • 50.5k
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+[. ...
M'vy's user avatar
  • 113
1 vote
1 answer
955 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 ...
Mas Bagol's user avatar
  • 537
9 votes
2 answers
726 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 ...
Caleb's user avatar
  • 2,265
148 votes
17 answers
196k 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, ...
durron597's user avatar
  • 2,181
15 votes
2 answers
10k 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 ...
Earthliŋ's user avatar
  • 313