Linked Questions

1
vote
0answers
49 views

How can I detect which command triggers a shortcut in a third-party package? [duplicate]

I remap Shift + k to noh, but once I installed ale, it is no longer working since one of the command on the package uses the shortcut. At least as far as I know, I feel that it is related to ...
1
vote
0answers
28 views

Mapping influenced my return key to toggle the syntastic check mode [duplicate]

I've mapped control-m to start the Syntastic check mode (Active/Passive) nnoremap <c-m> :SyntasticToggleMode<Cr> But in normal mode, when I tap the return key, it also toggles the mode. ...
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 ...
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 ...
0
votes
0answers
32 views

NeoVim latest version autocompletion opens and closes immediately

I am new to Vim and NeoVim, I setup the latest NeoVim on MAC using brew install nvim --head. I setup the latest verison for the lsp suppport. I installed the CoC plugin and the CoC-go plugin for auto-...
0
votes
0answers
25 views

When I'm in VI command mode my H and L keys do not work

I am new to using VI. I'm using a virtual machine. When I'm in command mode and pressing l it used to take me to the right and h used to take me to the left. Now when I am in command mode pressing h ...
0
votes
0answers
25 views

Creating shortcut for vim command

I created following shortcut for vim command in .vimrc: :nnoremap <Leader>1 :set foldexpr=getline(v:lnum)=~'^\\s*$'" But the shortcut doesn't work. The shortcut doesn't work if I change 1 ...
0
votes
0answers
31 views

Can't use <Tab> in insert mode

I installed neovim on my mac and use the config I have from my Ubuntu laptop but I can't use Tab in insert mode (not indent). I press the tab and nothing happened. Everything is fine on my Ubuntu ...
0
votes
0answers
13 views

How to remap copy and pasting to keyboard [duplicate]

I'm trying to remap the current keybindings to make it simpler for yanking and pasting but it doesn't work. Some of my ~/.vimrc noremap <Leader>Y "*y noremap <Leader>P "*p ...
0
votes
0answers
232 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
0answers
22 views

How to re-source a file based on filetype [duplicate]

I am trying to add the following mapping into my vimrc: nnoremap <leader>sv :source $MYVIMRC | filetype detect<cr> This works in command mode, however, in the mapping I get: E475: ...
0
votes
0answers
35 views

Disable arrow keys in insert mode

I am trying to disable the arrow keys in the vimrc (previously I was doing it by doing a no-op on the keyboard itself): "Disable arrow keys inoremap <Left> <Nop> However, it seems to be ...
0
votes
0answers
33 views

UltiSnips unexpected behaviour

I have the following two snippets snippet mm "Math" wA \(${1}\)`!p if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']: snip.rv = ' ' else: snip.rv = '' `$2 endsnippet Which puts me in math ...
0
votes
0answers
24 views

navigating dictionary completion

In my vimrc I have the following mappings: set completeopt=longest,menuone,preview inoremap <C-h> <C-n> inoremap <C-k> <C-p> inoremap <Leader>k <C-x><C-k&...
0
votes
0answers
41 views

Mapping Buffer Movement [duplicate]

How can I configure Vim and MacVim to respond to control-arrow and meta-{h,l} key-presses? The configuration below is ignored by both. I'm using iTerm2 (version 3.2.7), Tmux (version 2.8), and Vim (...

15 30 50 per page
1
2 3 4 5 6