All Questions

1,016 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
681 views

Why does `set t_ve=' hide cursor in terminal

Vim's documentation lists t_vi as "cursor invisible" and t_ve as "cursor visible", but provides no hints on usage. Naively, I would have guessed that Vim would send the t_vi sequence when you somehow ...
3
votes
0answers
297 views

Is there a way in vim to determine if something is highlighted after search?

What I want to do is make CursorMoved autocmd that would check if there is a search highlight is on and if it is it would start a timer that would deactivate it. PS I know about all available ...
3
votes
0answers
193 views

system function output with Chinese chars

I want to run shell command with system function and the command output has some Chinese chars. echo system('svn status') But I got incorrect encoding output like this: svn: ?\232?\173?\166?\229?\...
3
votes
0answers
130 views

How can I display multiple lines in the same compiler error when using :cn?

I am using Vim for Rust development. I have a custom error format that works very well, except that newline characters in error messages are suppressed when scrolling through errors with :cn. This ...
3
votes
0answers
495 views

How to change the color used to highlight function calls?

I would like to know if it was possible to change the color used to display function name. Let's take the following example (using Python): def function1(arg): function2(arg) # ... ...
3
votes
0answers
214 views

Is there a content length limit on the selection and drop register "+?

When selecting about two dozens of lines in vim and copying it to the system register ("+ y), and then paste it into another vim, it crashes. It does not paste the content of the register and the ...
3
votes
0answers
61 views

The way to imrove vimdiff similarity-searching mechanism

I'm trying to understand how vimdiff work. Here I tried to diff two simple files. The 1st: abcdefghijklmnopqrstuvwxyz foo abcdefghijklmnopqrstuvwxyz iii bar The 2nd: abcdefghijklmnopqrstuvwxyz ...
3
votes
0answers
82 views

Why did MacVim try to connect to Vimium server?

So, I have installed Vimium today, and when I first relaunched MacVim, my Little Snitch showed that it tried to connect to vimium.github.io, which it never did before. Why did it do that and how has ...
3
votes
0answers
54 views

Can I apply one file's filetype to another, without actually opening the first file?

For context, see How can I automate filetype detection when using sudoedit? Say filea has filetype foo, which is detected based on varying factors, including the name, the full path or the contents ...
3
votes
0answers
82 views

How do I edit my Airline config such that modified files will have a differently colored bar?

I recently switched to base16_default dark as my color theme. I love it, but it's the first theme I've used where a modified buffer's airline bar doesn't change color. I do, however get the [+] ...
3
votes
0answers
154 views

Directory symlink browsing moves me to new location when autochdir is set

I have a symlinked directory as such: ~/nested Which points to this directory: ~/whatever/yetanother/andanother/nested When I launch gvim or command line vim (7.4, with the standard, built-in ...
3
votes
0answers
153 views

Why does Vim smartindent on one computer and not another?

I have the following in my .vimrc on both machines: filetype plugin indent on syntax on And yet, for some reason I only see the expected behavior on my Mac, and not on the other computer (which is a ...
3
votes
0answers
815 views

How to resolve gVim startup error “No D-BUS daemon running”

Stating gnome-vim from the terminal on Linux Mint 17.3 I am getting the following error: An error occurred while loading or saving configuration information for gvim. Some of your configuration ...
3
votes
0answers
826 views

Scrivener for Vim?

I really enjoy the workflow in Scrivener, but I don't like the non-vim nature of it. Is there a good alternative plugin for vim that let's you manage documents in a similar way? I'm most interested in ...
3
votes
0answers
91 views

Strange characters appear after leaving insert mode on Windows

I use Vim v7.4 on a Windows laptop. Recently, I copied my .vimrc from a Mac, only to find that every time I leave insert mode, a sequence of strange characters will appear: These characters (right ...
3
votes
0answers
56 views

Why do Powerline colors dim and stay dimmed when switching buffers?

When I first open vim, the Powerline plugin works as expected: If I then switch to another buffer, the coloring of powerline's status bar is gone and it remains that way even if switching back to the ...
3
votes
0answers
159 views

Is it possible to remap the character following CTRL+R in INSERT mode?

While in INSERT mode, I'd like to make <c-r>* behave as <c-r>+. Is that possible? I tried both of the following, but no luck: inoremap <c-r>* <c-r>+ onoremap * + Is it ...
3
votes
0answers
458 views

Can't get autocmd with two events to work

I have the VIM Clang Format Plugin and I would like to format my code every time I save it. This is in my current .vimrc: " map to <Leader>cf in C++ code autocmd FileType c,cpp,objc nnoremap ...
3
votes
0answers
574 views

Wrong color-theme displayed

I recently saw this video about tmux and vim and instantly fell in love with the color theme used in the video. Luckily the presenter (Nick Nisi) provides a link in the video-description to his .vimrc ...
3
votes
0answers
654 views

Syntax highlight single - quote parameter

Makefiles can have commands such as: BAR = $(subst ', '\'', $(FOO)) Here the first argument to subst is a single single quote resulting in for example: FOO = some ' single ' quotes BAR = $(subst ', ...
3
votes
0answers
112 views

Formatting blocks of “commented out” text

I would like to be able to edit and format blocks of comments (in different markup and programming languages) as if the commenting characters (generally in the beginning of the lines) are ignored. ...
3
votes
0answers
900 views

How can I undo last command in command line?

In general, is there a way to UNDO the last "meta" command (I mean a command entered in command line to manage a window ), or some equivalent keystroke sequence ? Btw, I know the u (= undo) and CTRL-...
3
votes
1answer
1k views

How to have forward search using Zathura PDF viewer and LaTeX-Box plugin?

I just started using Zathura to view pdfs while editing tex files. I am trying to have forward searching capability in Zathura. Using the LaTeX-Box plugin in Vim, I have added the following in my ...
3
votes
0answers
2k views

How to Make gVim Transparent

I am using Vim on Arch Linux. One thing I like to do is using my transparent terminal I can be editing a latex file and have it automatically compiling and showing behind what I am writing. Is there a ...
3
votes
0answers
472 views

Highlight python raw strings as regular expression

I heard someone had set up their editor to highlight python raw strings as regular expressions, e.g. for Django: urls(r'^site1/(\d)*/new$'', ...) Unfortunately my googleing doesn't get me anything. ...
3
votes
0answers
201 views

Why does the vim-jedi popup have weird line wrapping?

When I'm nearing the right-hand side of my vim window, the vim-jedi's pop has some weird line-wrapping behavior: Is this normal behavior? How can I get the popup window to be shifted leftwards and ...
3
votes
0answers
211 views

Is there a way to add handlebars to html.vim?

I'm working with handlebars right now and I'd like to get tags like: {{#component 'whatever'}} {{/component}} and {{#if}} {{else}} {{/if}} to increase the indent count. Unfortunately, it doesn'...
3
votes
0answers
71 views

Filetype changes when using :split and :Explore

Why does using :split and :Explore cause the filetype to change? For example, edit a file named text.man, and the filetype is set to man. Change the filetype to txt, then :split and :Explore in the ...
3
votes
1answer
351 views

Stray characters when scrolling in gvim

When scrolling with the mouse wheel, characters will often duplicate themselves on subsequent lines. For instance, if I'm scrolling down, I can sometimes see an open brace on its line and on the ...
2
votes
0answers
17 views

Using Mathematica in Vim produces errors when printing in TeXForm (double backslash, “ b'-/n' ”)

I've been trying to integrate Mathematica with my Vimtex set-up, inspired by this article: https://castel.dev/post/lecture-notes-1/ The basic idea is to use UltiSnips to run an operation in Wolfram ...
2
votes
1answer
34 views

Ignore a filetype when opening but not when using insert-mode popup-menu

Using :h wildignore, I can ignore certain types of files or certain folders when searching through them to open one of them. But that also means those files and directories will be ignored when I try ...
2
votes
1answer
42 views

Unable to use conceal with vim-javascript plugin

editor: NVIM v0.4.3 I have the following syntax file at ~/.config/nvim/after/syntax/javascript.vim syntax clear javaScriptFunction syntax match javaScriptFunction /\<module.exports\>/ ...
2
votes
0answers
21 views

See inferred type of a variable in typescript?

Vim is my main editor but for typescript it's hard to see what the inferred type of a variable is. Whether it is a complex type or just a simple one, it'd be great to see the typescript inferred type ...
2
votes
0answers
35 views

What is the green <92> that's in my file?

I have a file exported from some system, and in vi when I open the file, there's a green <92> in it when I open it up where an ' ought to be. It messed up my bash script and left a line that ...
2
votes
0answers
37 views

Can't use special characters in listchars even if setting scriptencoding to utf-8

Here is my .vimrc file: set encoding=utf-8 scriptencoding utf-8 set list set listchars=tab:→· When I open vim, it will show an error message E474: Invalid argument: listchars=tab:→· My vim is Vi ...
2
votes
0answers
25 views

Configuring Multiple Compiler Plugins in a Single Project

Vim has compiler plugin feature which enables the user to write a compiler configuration, and then running :make will trigger the command, and errorformat will parse the output and will print any ...
2
votes
0answers
36 views

How to profile save time

Sometimes it takes a really long time to save a file out. Saving the same file after various changes takes various amounts of time. It does not seem to be related to file size. I've disabled any ...
2
votes
2answers
51 views

Is there a way to list recent buffer history?

I just started using buffers in Vim and I couldn't figure out how to list recent closed buffers. Is there a simple way (like :ls) to list those? Are they actually stored by Vim? Maybe I'm misusing ...
2
votes
0answers
38 views

Adjust terminal size using a system call from within Vim

All, I have a little function I'm trying to fix. I'd like to change my terminal Vim window size using the ASCII escape sequence \e[8;40;130t so that my writing window size stays the same when I use a ...
2
votes
0answers
18 views

neovim and youcompleteme

Anyone know how to get rid of the file path segment of the completion list. I'm using youcompleteme with rust.
2
votes
0answers
40 views

How to fix this `Omni completion (^O^N^P) Pattern not found` error?

I am trying to set up syntax keyword based omnicompletion in vim. I have defined a few syntax keyword Constants in ~/.config/nvim/syntax/spl.vim They are correctly detected and highlighted. They are ...
2
votes
0answers
32 views

switching `<Down>` and `<C-n>` in popup menu

I'd like to switch the behaviour of the <Down> and <C-n> keys when the popup menu (like from omnicompletion) is visible (and <Up>/<C-p> respectively). The following two ...
2
votes
0answers
36 views

How to press ESC only once to close suggestions list and exit insert mode

When using CoC.nvim's suggestion list, I often find myself pressing Esc twice to return to normal mode - once for cancelling CoC's list session and once to actually exit insert mode. I find that ...
2
votes
0answers
94 views

What happens when error occurs during cdo?

:h :cdo says: When an error is detected execution stops. The last buffer (or where an error occurred) becomes the current buffer. Let's see what really happens: ...
2
votes
0answers
23 views

Cannot :Explore public ftp service (I see empty listing with ../ and ./)

The address is ftp://ftp.yandex.ru/ I tried from bash: vim ftp://ftp.yandex.ru/ After that I was asked for username and password (but this is public anonymous server), ok I entered anonymous for ...
2
votes
0answers
44 views

Is it more efficient to use one function instead of multiple autocommands?

I have a lot of lines with with filetype-specific autocommands defining mappings and abbreviations, which looks like this: augroup vimrc au! ... au FileType blah nnoremap <buffer> aa bb au ...
2
votes
0answers
152 views

(coc.nvim) RLS warning: …use crate_blacklist instead

I've got a warning on start: [coc.nvim] RLS configuration option use_crate_blacklist is deprecated: use crate_blacklist instead Probably I have to put into my coc-settings.json "rust.crate_blacklist"...
2
votes
0answers
111 views

Make Ctrl + arrows work inside neovim

I'm using PuTTY as SSH client and zsh as a shell. When I just connect to a host and don't run nvim, I can see that control-left/right keys work correctly and send a different key from simply pressing ...
2
votes
0answers
77 views

Use external commands within venv virtual environment

Same question as Use Vim with virtualenv, except for these differences: I'm using bash, not zsh using venv, not virtualenv or virtualenvwrapper I have a keybinding to run the current buffer as a ...
2
votes
0answers
38 views

Best way to move cursor to start of variable declaration?

There are a lot of times were I have something like int x = someFunction(a, b, c); If my cursor is somewhere after the equals sign, is there a good way to put the cursor on the “s” in someFunction? ...

15 30 50 per page