Linked Questions

0
votes
0answers
31 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 ...
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 ...
0
votes
1answer
32 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> ...
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 ...
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 ...
2
votes
2answers
47 views

How to turn this piped bash command into a vim map?

I have a bash command that will align text into a tabular form. If I have input such as this: A | B | C Alpha | Beta | Gamma 12 | 34.56 | 78.9 I can run cat test.txt | sed -e 's/|/'$'\001''|/g' | ...
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
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 ...
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
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>...
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 ...

15 30 50 per page
1
2 3 4 5 6