All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
48 views

Integration between vrapper (Eclipse) and nvim-qt

I use Vrapper, which is a great plugin, providing some vim emulation to Eclipse. One of the features of Vrapper is that from anywhere you can type :vim and it will reopen the file you are currently ...
1
vote
0answers
19 views

YouCompleteMe GoToDefinition for java gives 'RuntimeError: Cannot jump to location' when used on classes from Maven Dependencies

I've been using ycm for Python and Go, trying to configure ycm to work with Java. I've installed java 8, maven, recompiled ycm with --java-completer and done mvn install in a repo that contains a ...
1
vote
1answer
23 views

Execute Vim command in terminal window and return to Terminal-Job mode

For a while, I'd been using :nnoremap <C-H> <C-W>h and :tnoremap <C-H> <C-W>h, et. al. to switch windows. This was working great, so when I started using tabs, I decided to ...
1
vote
1answer
27 views

load quickfixlist into a specific window

I'm not interested in loading an item into a specific window. I'm interested in opening/loading quickfix list into a specific window/pane. Searched online everywhere, but couldn't find it. Does anyone ...
0
votes
1answer
29 views

How do I redraw airline after setting window-local variable

:help airline states that variables related to sections can be window-local. The example from help shows how to do it for a plugin: function! MyPlugin(...) if &filetype == 'MyPluginFileType'...
2
votes
0answers
113 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"...
3
votes
1answer
45 views

How do I use a variable or return value in option, command, or mapping?

I have a variable foo with let foo='value', and a function F like function F() return 'value' endfunction and I want to use them in an option: :set option=foo, :set option=F(); or in a command: :...
1
vote
1answer
40 views

run vim without python3 suppport

I have python2 and python3 compiled into my vim vim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 2 2019 14:25:42) Included patches: 1-2109 Compiled by user@enterprise Huge version ...
1
vote
2answers
45 views

Perform change to all occurrences of multi-line selection

Scenario I would like to perform the following, Visually select some text that spans multiple lines and occurs multiple times in the file: V Yank to buffer: y Perform substitute with text from ...
1
vote
0answers
24 views

Don't trigger an expansion in Ultisnips

Sometimes I want Ultisnip not to expand a snippet because I need this word as it was typed, even though is mapped to a snippet(of course in a perfect world of perfect snippets this wouldn't have ...
0
votes
0answers
27 views

How to remove blank line at the very bottom of the UI

To make things easier to explain, please see below a screenshot of VIM running on my computer. How can I get rid of that blank line at the very bottom, i.e. below the "n lines, p characters written" ...
0
votes
1answer
43 views

Neovim: run cmd on write [closed]

I've got a file open in Neovim like so: neovim test.rb And a split open like so: :split ruby test.rb How can I rerun the split command each time I write a save in the original window? Update I'...
3
votes
1answer
52 views

How to open multiple files with cursor for all files being at the last line?

My experiments generate several log files, which I sometimes monitor manually. Some of the log files have an error message in the last line. I want to open all log files with the cursor located at ...
1
vote
1answer
31 views

I can run :terminal in Neovim, but it thinks terminal is missing

I have NVIM v0.4.2 and can run :terminal. Despite that, echo has('terminal') gives 0. In addition, if I try to run a command of vimteractive, an error occurs with Your version of vim is not compiled ...
0
votes
1answer
41 views

Put many Perl-Filters into ~/.vim

I am pretty advanced in Vim. But one thing I am missing: how to put many Perl-Filters into Vim and run one of them over a selection. I was in former Times user of BBEdit, where I have set up many Perl-...
2
votes
1answer
44 views

Stop Snippet from Triggering Inside Other Snippet

I am using ultisnips with Gilles Castel's subscript snippet along with a snippet I found on SE to create matrices in latex rather quickly. Unfortunately, I can't use the matrices snippet because it ...
0
votes
0answers
9 views

Characters from YCM completion menu not cleared in Vim

I'm dealing with a cryptic issue in my environment which is annoying and I have no idea where to start debugging. Random characters on that aren't actually in the document appear on screen after YCM ...
2
votes
0answers
67 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 ...
1
vote
1answer
24 views

Restore working directory in terminal windows when loading session

While using :mksession feature, I found that it works well with files and netrw, but not so much with neovim terminal windows. The problem is that, for terminal, it never preserves working directory ...
1
vote
1answer
39 views

Why is the commit message inside parentheses wrapped so strangely?

I sometimes need to do some remarks in parentheses in my commit message's detailed part. But when the parenthesized text comes to the rightmost column and is line-broken, the next line for some reason ...
3
votes
2answers
84 views

Multiple vimrc files for different file types in vim?

I'm a vim beginner. I want to handle multiple programming languages. I find great resources for how to perfect vim for one programming language by putting ton of stuff in one vimrc file. This is ...
2
votes
1answer
28 views

Gvim and Unicode indic characters

On my Linux system, if I try to type indic characters (specifically Kannada) in gvim (via ibus), the display is so garbled, I can barely see what has been typed. Is it the expected behaviour? Can Gvim ...
3
votes
1answer
116 views

Is there a way to start vim in terminal mode?

I often find myself Opening a terminal Running vim Starting a :terminal Is there a way to say vim --start-terminal and have Vim automatically run :terminal ++curwin as soon as it starts?
3
votes
1answer
26 views

search for pattern and insert text that precedes the pattern from pattern1 to pattern2 exclusive

basically I have a bunch of lines of code that all match the format .\module.variable (), .\module.variable2 (), I want to take everything between the backslash and the space, before the parentheses ...
0
votes
0answers
20 views

Auto-insert C++ comment only on <shift+enter>

The comment auto-insert feature is often very helpful and otherwise very annoying, depending on the kind of comment I am writing. Is it possible to bind the auto-insertion of // exclusively to <...
1
vote
1answer
50 views

How does g:terminal_ansi_colors affect the :terminal colors?

:term usually looks ugly in most colorschemes I've tried. At least on Windows, with light themes, these colors do not work and end up in an unreadable shade of yellow against my light background. I ...
2
votes
2answers
52 views

vim incremental command history search

In bash you can easily search the current history entries by hitting <C-r> or <C-s>. This search feature is incremental, and once you hit return, you get a bash prompt auto-filled with the ...
1
vote
1answer
16 views

calling function from normal mode without *noremap

I realise this might be impossible, but thought it might be worth asking anyway. In vim, the typical way I map keys to functions is using *noremap commands. However the downside of this is the fact ...
1
vote
2answers
53 views

How to use FZF to search directories and open new file in directory

Here's what I'd like to do, and I'm open to using any tool (not just fzf): I want to be able to open a new file quickly (with a horizontal split :sp) in a specific directory that I find using fzf. ...
3
votes
4answers
54 views

Vim search and replace “/” only from string between round bracket [duplicate]

I have string lets say count number of elecment when tra(XYixe0/en_in/old)='mid/2' rise='corse/2' I want to replace / from (XYixe0/en_in/old) to . My output string should look like count number of ...
1
vote
1answer
57 views

Using vim as a terminal multiplexer: neovim or vim 8?

I've traditionally used vim as a text editor and tmux as a terminal multiplexer, but I'm trying to see if I can drop tmux entirely and just use vim for everything (except session attach/detach, which ...
1
vote
1answer
14 views

Latex-Suite in Vim exits out of tex document if there's a warning in the aux file on compilation

I recently installed Latex-Suite using Vundle, and I use Latex to take notes. My notes are separate files for each lecture, but I have a master.tex file set up to compile each document together, and I ...
0
votes
0answers
49 views

VIM suddenly highlighted the spaces in my file how do I turn this off?

I just recently used Vim as my code editor. It was working fine then suddenly when I opened a file to edit my code this happens. When I open the file nothing is highlighted. But when I start scrolling ...
2
votes
0answers
28 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
37 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? ...
0
votes
0answers
26 views

How can I complete both words and WORDS? [duplicate]

I found this question, but mine is a bit different. When I write code dealing with arrays or classes like $myArray['myElement'] or document.getElementById("myElement"), I get annoyed because I have ...
2
votes
1answer
33 views

How to disable arrows in insert mode VIM

I want to disable my VIM-arrows in VIM, to get used to move the cursor using hjkl. I have tried a lot of different approaches found on this forum, however, i can't seem to disable the up and down ...
1
vote
1answer
29 views

Cross-platform way to execute command with clean environment?

A plugin I use executes: silent execute '%!cmd' which fails because of a particular environment variable I have set that deliberately modifies the behaviour of cmd. I can fix it with: silent ...
0
votes
1answer
32 views

Matchit plugin is not working when I put it in my .vimrc. However it works when I run the same command manually inside Vim

I have the following lines in my .vimrc. colorscheme elflord set incsearch set guifont=Monospace\ 13 " <Ctrl-l> redraws the screen and removes any search highlighting. nnoremap <silent&...
0
votes
1answer
23 views

Is it possible to have something that displays the filenames of all my unfocused windows?

Both the statusline and the tabline only show the file I'm currently working (on on my current tab). Is there any built-in setting that can show the names of the files that occupy the windows I'm not ...
0
votes
2answers
53 views

What's the fastest way to open up .vimrc?

I'm just getting into Vim, and, as one might expect, I'm constantly adding things to my .vimrc. At the moment i'm using :tabe ~/.vimrc and I was just curious if there was a quicker command for getting ...
0
votes
1answer
51 views

Missing doc comment errors

Just started to look into VIM for my coding. I managed to set up some functionality with pathogen and want to make a slow start to learn VIM. the problem is that when I open a PHP document, I get ...
2
votes
2answers
37 views

Two consecutive identical calls to echo have different output

Question reposted on StackOverflow, where it's receiving more attention. Given the following function in the .vimrc file, fu! MyFun(count) echo a:count echo a:count if a:count > 0 ...
1
vote
1answer
30 views

Vim feedkeys in operator pending mode

I'm trying to build a very simple plugin that allows for pressing a keymapping <Leader>, to call a function that prompts for a single keypress: function! ControlKey() echo "Key → <C-Key&...
1
vote
1answer
53 views

Replace Only First Occurence after Pattern

Suppose I have a file which contains: TEMP=100 TEMP=100 and I want to change all of the string beyond 'TEMP=' to 200, so it would read: TEMP=200 TEMP=200 I could use the command :%s/TEMP=\zs.*/200/...
1
vote
2answers
20 views

How to ask vim where function or command was defined?

I'd like to know if there is an analogue to verbose map <key> (which shows the location that the map was assigned) for functions. For example I have a few Git plugins and I'd like to know what ...
3
votes
2answers
106 views

Replace after a specific pattern

Suppose I have a string as follows: RESULT=100 How would I replace everything following 'RESULT=' so that the string reads: RESULT=200 The closest I've gotten so far is to use: :%s/\(RESULT=.*\)\@...
1
vote
1answer
32 views

vim8 - why does my 0read not read? [closed]

I have the following function in an autoload file: function! closet#FindSkeletonForFile() if exists('b:closet_skeleton') return 0 endif let b:closet_skeleton = s:closet....
1
vote
3answers
36 views

Control key bitmask

I find myself wanting to use vim one-handed now and again. Practicality aside, I want to define a function along the lines of: function! GetControlKey() echo "Control? " let key = nr2char(...
3
votes
1answer
36 views

running external command on contents of register

I know I can use ranges/marks with the ! command like so: %! column -t etc. Is there any way to pass a register to the external command instead of the current buffer? I imagine it would look ...

15 30 50 per page