Linked Questions

1
vote
0answers
265 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
1answer
143 views

Change <up>/<down> to gk/gj in insert mode

I want to replace the default behavior of the arrows in insert mode, so that they behave like gk and gj, I have used: inoremap <up> <Esc>gka inoremap <down> <Esc>gja But this ...
0
votes
0answers
231 views

How to map the slash key “/”

I am trying to map the NERDCommenterToggle command from the nerdcommenter plugin. I want to use "Ctrl+/" for this: vmap <C-/> <plug>NERDCommenterToggle nmap <C-/> <plug&...
0
votes
1answer
56 views

Vim command 0 goes to second column instead of first one

When I press 0 in Normal mode, the cursor goes to the second column and not the first one. This is not the normal behavior stated in vim's :help 0. I have tried disabling the remaps to move between ...
0
votes
1answer
144 views

Problem with conditional mapping <expr>

I am trying to reproduce this vimscript code function! NormalRemap() :nnoremap <silent> <nowait> I I :nnoremap <silent> <nowait> a a :nnoremap <silent> <...
0
votes
1answer
108 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 <...
0
votes
1answer
87 views

How to remap ö in .vimrc? [closed]

Writing :set noremap ö : in vim works fine, but with my .vimrc file containing: set noremap ö : I get the following error: Error detected while processing /home/anna/.vimrc: line 1: E518: ...
0
votes
1answer
100 views

mapping does not work even if I have set it up in config file

I am using Neovim on Windows using Cmder console emulator. I find that using [NUM]<Ctrl-6> to change to buffer [NUM] does not work on Windows. Following discussions here. I have set up a mapping:...
1
vote
0answers
123 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 ...
4
votes
1answer
35 views

Self-define command to search a certain symbol

I want to define a command that jumps to next closest Chinese-period or Chinese-comma and perhaps other punctuations, and another command that do the same but for previous closest puncutation. To ...
0
votes
1answer
67 views

How to map command+shift+right to widen vim split?

When I use 5<C-w>> in vim it makes my currently selected split increase by '5'. When I try to create this mapping on my Mac: noremap <silent> <D-S-Left> 5<C-w><<CR>...
1
vote
2answers
47 views

Why won't my mapping work <C-W><Right> z;

I'm going nuts trying to get this mapping to work. It's so simple yet doesn't work. with the mapping removed moves me off of nerd tree to the main window to it's right. Great. When I added the ...
0
votes
1answer
56 views

Map C-S-[ and C-S-] to :tabprev and :tabnext

I'm trying to map C-S-[ and C-S-] respectively to :tabprev and tabnext, but when I try that then I get "no lines in buffer". A mapping like C-S-tab works. I looked through :nmap and didn't ...
1
vote
1answer
42 views

What exactly Ctrl + Shift + Right arrow does? How can I remap it or find help on this key combination?

I've noticed that pressing Ctrl+ Shift+ Right deletes text until some criteria are met but I can't figure out exactly what that is. I'm also unsure how to find help when a character doesn't have a ...
1
vote
1answer
30 views

Unintended tabulation bind

I'm kinda new to vim, and I wanted to play with macros. I wrote a bunch to fit with my previous muscle memory, including this one: imap <C-i> <ESC>m`$a<CR><ESC>==k``i The ...

15 30 50 per page