Linked Questions
78 questions linked to/from How to debug a mapping?
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 ...
1
vote
0answers
50 views
Pressing CTRL-U combination gives invalid arguments for function timer_stop?
I am not precisely able to reproduce the exact conditions under which this occurs, but sometimes, when I press CTRL+u, I get the errors below. I cannot even exit vim with CTRL+c or suspend. I haven't ...
3
votes
1answer
35 views
Backward search in current line with search() and z option
I am trying to write a couple of simple functions to find the next and previous links in Vimwiki and move to them. Links in Vimwiki are indicated with the syntax [[link to something]]. Since I only ...
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 (...
1
vote
0answers
36 views
F10 is not yet available to Vim via gnome-terminal
I'm using gnome-terminal for first time (after using xterm for many years).
And the one keystroke that no longer works within gnome-terminal from my Vim application is Function Key F10.
I've turned ...
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
34 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
1answer
33 views
noremap in .vimrc for YouCompleteMe does not work
noremap <leader>gdf :YcmCompleter\ GoToDefinition<cr>
noremap <leader>gdc :YcmCompleter\ GoToDeClaration<cr>
noremap <leader>gi :YcmCompleter\ GoToInclude<cr>
...
0
votes
0answers
33 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
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 ...
1
vote
0answers
28 views
vimtex-compiler-ss does not open quickfix
Due to my muscle memory(aquired from vim-latex and other code compilation, so <F10> is universal compiler for me), I prefer singleshot calculation. I do have given a shot to \ll and then just ...
0
votes
1answer
21 views
Vim shortcut for :tabprevious change opened file on start
I try to configure my .vimrc file adding new shortcuts for my daily routing.
One of my basic operations in every single IDE is switching between "tabs". I suppose to put the same key binding ...
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
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
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&...