Linked Questions
85 questions linked to/from How to debug a mapping?
2
votes
1
answer
397
views
Assign shortcut to a Split window resize Ctrl+w+|
I can expand a vertical split screen to occupy most of the area using Ctrl+w+|
Now I would like to map that shortcut to Ctrl+m. I tried the following but it failed.
nnoremap <C-m> <C-W&...
4
votes
1
answer
2k
views
Leader shortcuts ignored
In my vimrc I have
nnoremap <Leader>h :bp<CR>
nnoremap <Leader>l :bn<CR>
But I have to source my vimrc to enable them with (:so $MYVIMRC). If I do a :map after starting vim I ...
2
votes
1
answer
3k
views
mapping to quit using "<Ctrl> + q" not coming into effect [duplicate]
I am trying to map Ctrl + q to quit editing the file. I added the below line to my .vimrc
nnoremap <C-q> :execute "q"<CR>
On pressing the above key combination, nothing happens, vim ...
1
vote
0
answers
128
views
"scroll-smooth" remapping works only in second buffer
I tried to use the "scroll-smooth" tip given in :h tips (see :h scroll-smooth).
The idea is to change <C-U> by a series of <C-Y>'s (and the same for <C-D> with <C-E>'s) :
map ...
-3
votes
1
answer
175
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 ...
1
vote
0
answers
309
views
Troubleshooting mapping
I have the following in my vimrc:
nnoremap <C-J> o<Esc>k$
nnoremap <C-K> O<Esc>j$
The bottom mapping works as expected, but c-j now produces the same effect as i (which is ...
2
votes
2
answers
1k
views
inoremap only works after source
So I want to disable the arrow keys in insert mode. So I added the following lines at the end of ~/.vimrc:
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <...
0
votes
1
answer
182
views
Window Swtiching Mappings Not Working
To make things a bit quicker, I've remapped the window switching commands like this:
nnoremap <silent> <C-j> <C-w>j
nnoremap <silent> <C-k> <C-w>k
nnoremap <...
4
votes
1
answer
354
views
Vimrc tries to execute command defined on leader
I'm trying to have something like this in my .vimrc:
nnoremap <leader>has :w | ! reset; runhaskell % <cr>
How ever, now it prompts an error when loading .vimrc and tells me:
:! reset; ...
9
votes
1
answer
2k
views
Why does remapping <Esc> make the cursor jump?
In .vimrc:
inoremap ii <esc> " ii to go back into command mode
The problem is, after ii, cursor jumps 35 columns right. The only other line which affects Esc:
...