1. All Categories
  2. Vi and Vim

Vi and Vim : Recent Questions and Answers

Find answers to your questions about Vi and Vim or help others by answering their Vi and Vim questions.

airline-tabline: the action of the first tab is different from others

I'm using the plugins Nerdtree and Airline in my vim. Here is my config:autocmd VimEnter * NERDTreeautocmd BufWinEnter * NERDTreeMirror " make Nerdtree available on each...

Asked on 11/27/2021

1 answer

Tagbar line numberings being overwritten

I'm trying to use the Tagbar line numbers:" Show line numbers (0 = none, 1 = absolute, 2 = relative)" note: this doesn't work well and is often overwritten...

Asked on 11/22/2021

0 answer

How can I indent selected lines in Visual mode by space granularity instead of TABs?

How can I indent lines selected in Visual mode using space granularity instead of than TABs (i.e. < or >)? Sometimes when coding Python, I need to indent lines to...

Asked on 11/22/2021

3 answer

doesn't seem to work in visual mode

The following command copies the selected text into the PRIMARY selection:vnoremap <Leader>c :'<,'>!xsel<CR>uBut this way it doesn't work:vnoremap <Leader>c <Cmd>'<,'>!xsel<CR>uThe documentation says <Cmd> is generally...

Asked on 11/22/2021

1 answer

Define a new ex command active only in specific filetype (C++)

I would like to define a new command for C++ files/buffers (ft=cpp). I shall explain the requirements through the example below. The newly defined command :stripdbg should strip the surrounding...

Asked on 11/20/2021

2 answer

How can I print from vim using the native KDE print dialogue?

I'm using vim from a terminal emulator, and I'd like to be able to print using KDE's native print dialogue. This would let me select options such as printer, collating,...

Asked on 11/17/2021

3 answer

gVim on Windows not distinguishing Numpad Enter

Using gVim on Windows, I'm trying to add a mapping to <kEnter>, but it seems that it's not being treated seperately from <CR>. New to Windows, so I thought this...

Asked on 11/13/2021 by Arii

0 answer

What is the Vim8 package feature and how should I use it?

Vim 8 was released today and the release notes mentions a new "package" feature. What is it and how should I use it? Most importantly, does...

Asked on 11/10/2021

4 answer

How to get the line numbers for all matches?

How can I get the line numbers of all matching strings in a buffer?Like in this buffer, I want to get the list [1,6,50] of all line numbers with...

Asked on 11/07/2021 by xiaodong huan

2 answer

Error when installing Vim

I cloned Vim from the GitHub repo and then run./configure --with-features=huge --enable-multibyte ...

Asked on 11/05/2021

1 answer

Ask a Question

Get help from others!

© 2021 All rights reserved.