Linked Questions

3
votes
1answer
334 views

Mapping vim key to change to next tab in Konsole

Description: In my Konsole the key mappings for changing tabs to left and right are Shift-left and Shift-right (where left/right are the arrow keys). What I'm trying to do is to map F2 in vim to ...
0
votes
1answer
734 views

How to make <S-A-Left> and <S-A-Right> work in vim within Mac Terminal

I'm using these keyboard shortcuts to navigate/manipulate tabs in MacVim " tab navigation nnoremap <silent> <S-Left> :tabprevious<CR> nnoremap <silent> <S-Right> :...
1
vote
2answers
269 views

Problem remapping § to esc in vim on a macbook with touch-bar

I am using a macbook with touchbar. As many others I would like to map a different key to the esc key, since the touchbar esc is a bit inconvenient. My problem is that I have some weird behaviour of ...
2
votes
2answers
260 views

Repeat complicated motions

I know that similar things were asked here several times. I know that to repeat a motion ; works. Unless it doesn't(in case there is count for example), but then repmo.vim usually works. And I know ...
0
votes
1answer
172 views

Vertical split keymap suddenly broken

In my vimrc I have a shortcut for opening a vertical split: let mapleader = ',' map <leader>v :vsplit<CR> " ,v for vsplit map <leader>s :split<CR> " ,s for split This has ...
0
votes
1answer
444 views

Mapping backspace to delete previous word

I would think this would work to make backspace delete the entire previous word in insert mode: imap <BS> <C-W> but it doesn't. Tried in vim 8.0 and neovim 0.2.2 iterm2 if that matters. ...
0
votes
1answer
242 views

<S-BS> and <C-BS> mappings not working

Neither of the following mappings do anything in neovim in iterm2 on mac inoremap <C-BS> <Esc><Right>s inoremap <S-BS> <Esc><Right>s Is mapping backspace like ...
1
vote
2answers
378 views

Cannot set (let) mapleader and use <leader> in global vimrc

I'm using basic version vimrc from https://github.com/amix/vimrc. No problem if I put my vimrc at /home/{user}/.vimrc, but if I put it in /etc/vimrc (arch) or /etc/vim/vimrc (debian), it becomes a ...
0
votes
2answers
287 views

Mapping using tpope/vim-surround only works with command

I have this mapping to surround a Word with jQuery id selector $("#...") and it works fine using a command: command! JqId normal viwo^[i#^[ysiW"ysiW)i$^[E nnoremap <Leader>jqid :JqId<CR> ...
-3
votes
1answer
154 views

Make gvim show Q letter (character) [closed]

My vim doesn't represent the uppercase letter q Q? How to fix this? Here is my vimrc : set nocompatible " be iMproved, required filetype off " required syntax on set ...
0
votes
1answer
172 views

Map movement keys to jump words like in non-modal editors [closed]

Coming from non-modal editors, I still get confused with e, w, b in Vim. One feature I like about non-modal editors is jumping words by simply combining Ctrl with ←→ arrow. So I thought I ...
0
votes
1answer
144 views

Ctrl keybindings not working in wsltty

I have the following mappings: nnoremap <C-,> :tabe ~/.config/nvim/init.vim<cr> nnoremap <C-/> gcc Neither of these mappings is working - they both do nothing. I have a plugin ...
1
vote
1answer
232 views

How to use filename expansion in a mapping

I have this shorcut in my vimrc that I use all the time (admittedly, I just copied it over from the web): " bind K to grep word under cursor nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:...
2
votes
1answer
180 views

i_CTRL-K does not insert digraphs when in Mutt inside tmux

I configured mutt to use vim as an editor to write emails (with set editor=vim in .muttrc), and I have noticed that when I am in tmux (with an empty .tmux.conf), the vim keybinding CTRL-K in insert ...
1
vote
0answers
292 views

Why is <C-S> not remappable? [duplicate]

The vim version on my Mac is 8.1.1000, installed by homebrew: VIM - Vi IMproved 8.1 (2018 May 18, compiled Mar 11 2019 08:36:53) macOS version Included patches: 1-1000 Compiled by Homebrew Huge ...

15 30 50 per page