Questions tagged [neovim]

A project that seeks to refactor Vim. Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors).

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Nvim black border issue

I am using nvim and color theme grubox and also I add the settings of my color theme. at my vim editor has some black border at around left, right, top and bottom. Anyone can help me to remove this ...
3
votes
0answers
28 views

How to exit insert mode if pressing escape merely types “^[”?

I have neovim 0.4.2 running in a session of kiTTY 0.17.4 on OSX. I have pasted a long url while in insert mode. After doing this, every time I type BKSPC vim adds ^? to my document. Every time I type ...
0
votes
1answer
42 views

NeoVim Not Using My ~/.config/nvim/init.vim File

Just installed neovim. I just created a file ~/.config/nvim/init.vim. The init.vim file only has one line: set relativenumber But then when I opened a file using the nvim command (in Cygwin), the ...
0
votes
0answers
33 views

Remapping the menu key in Neovim-Qt

I would like to map the menu key (aka application key) on my keyboard to various behaviors in Vim, but in Neovim-Qt on Windows 7, Vim does not recognize presses of the menu button. For example, when I ...
4
votes
4answers
627 views

Show exact number of matches even for large (>99) numbers

When I search for something /search-term and it shows up more than 100 times in my file, vim shows me that I'm on match x/>99 instead of x/121 etc. For smaller numbers it shows me the exact number ...
0
votes
1answer
25 views

How to delete a word and enter insert mode? [duplicate]

I know that by pressing s, I can delete a character and enter insert mode. How do I do the same for words. Is there an equivalent to s for deleting a word and entering insert mode?
0
votes
0answers
12 views

I think I have three different versions of neovim installed, how do I use the npm installed one?

I ran npm install -g neovim I get version neovim@4.9.0 If I run nvim --version I get v0.4.3 How do I use the npm installed neovim instance?
0
votes
0answers
11 views

How to not jump back on mismatch with incremental search

With incremental search (incsearch), we jump to matches and they are highlighted as they are found. But if we hit a character that makes the search not match anything, we’re thrown back to where we ...
1
vote
0answers
41 views

Can't Copy Non-ASCII Characters

I can't copy Non-ASCII charaters from Neovim anymore when I select them with mouse or crtl + v. For example, I have the Turkish word Bankası written in my editor. When I yank and paste it to somewhere ...
0
votes
0answers
37 views

How can I check the terminal ouput info in nvim?

I am at the beginning of switching from vim to nvim. When I build my program by runing a script from a shortcut key, it will output the build info. In vim, the build info is put into terminal, I can ...
0
votes
0answers
18 views

Command (e.g. `g++`) does not point to the same binary when run from the terminal or from (neo)vim

I have NVIM v0.4.3 on macOS Mojave version 10.14.6 I have different version of g++ compilers on my machine and made the following alias in my .zshrc file: alias g++="/usr/local/bin/g++-9" ...
0
votes
1answer
29 views

neovim switch keymapping

I am in the process of getting myself to start using neovim instead of vim/vi which has been favorite editor for over 30 years. For my current use, I need to set keymapping to type characters that ...
1
vote
1answer
42 views

Issue running file from within NeoVim

I had the following remap autocmd filetype cpp nnoremap <F5> :w <bar> silent !g++ -ulimit -Wall -Wno-unused-result -std=c++11 -O2 % -o %:r && %:r<CR> When I run this in ...
7
votes
2answers
718 views

What are the major differences between vim and neovim?

I have been using vim for a few months and I am wondering if I should switch to neovim. Currently I am using no plugins, and only a few basic mappings.I use vim both for quick edits of config files ...
0
votes
1answer
30 views

How to bind these keys to prevent recursive binding in Vim?

I have been trying to do :noremap j k and :noremap k j which works but instead of going up it goes slanted up and down. I want j to move up and k to move down which is opposite in vim. I also tried :...
5
votes
2answers
530 views

Use Control-C instead of escape key

I have recently found out that Ctrl+C can be used instead of Esc in certain instances. Getting out of insert mode for instance. Other things can only exclusively exited using escape. So my question is,...
1
vote
0answers
30 views

changing cursor to block in insert mode on Neovim

I am a new neovim user. I am currently on MacOS, and using iTerm as my terminal emulator. I am using Neovim 0.4.3. I would like to configure my neovim in such a way that the cursor in insert mode is ...
2
votes
1answer
23 views

Nvim +UpdateRemotePlugin +qall gives me error: Abort trap 6

(neovim/vim beginner) After having ran upgrade homebrew I get error when I run nvim +UpdateRemotePlugins +qall. Anyone here knows how to get over this problem? Anyone here knows how to get over ...
0
votes
1answer
52 views

How to run a command in neovim's terminal mode without leaving this mode

Suppose ALT+h to mapped to <C-\><C-N><C-w>j as following Nvim documentation: nvim_terminal_emulator. We have two horizontally split windows with terminal buffers and the right window ...
0
votes
1answer
48 views

Discrete Visual mode

A feature that I love in VSCode is to be able to use my mouse to click at multiple points in the screen and type with multiple cursors. I am aware that in Vim you can do the same in visual mode, but ...
1
vote
0answers
61 views

In Windows 10, WSL 2, Windows Terminal, bash and VIM, how to avoid the conflict of <c-v>?

With the newly released Windows 10 update 2004, we can run native Windows Subsystem for Linux (WSL) 2 and install Ubuntu 20.04 on it. Then we can run native bash inside the latest Windows Terminal. ...
0
votes
2answers
43 views

Close another buffer that had same name on window split

Here some asciinema videos, notice that in the videos, when I open another file (plugins.vim) in split using Ctrl+v it will create buffer tab named plugins.vim in the left, but when I close the ...
0
votes
1answer
26 views

How to pass a parameter to a function called from an on_exit event of an asynchronous task

Imagine the following asynchronous job to convert a given file to odt : let mdfile = 'testfile.md' call jobstart (['bash', '-c', 'pandoc ' . mdfile . ' -s -f markdown -o test.odt'], {'on_exit': '...
1
vote
1answer
24 views

How can I open a temporary “full-size” window inside another window in a tab to execute `:term`?

In order to execute :term in nvim without causing the current window in a tab to close on exit, I execute the following command: :vnew +term This splits the current window into two, one of which ...
1
vote
2answers
85 views

neovim syntax highlight with large files issue

I use neovim 0.4.3. When I open a large xml file (about 130-140k lines) syntax highlighting switches off with a message: 'redrawtime' exceeded, syntax highlighting disabled If add this line to my ...
1
vote
1answer
19 views

t_comment vim only works with vim-command not the gc prefix

I'm sorry, I'm noob in vim but how to comment with tcomment_vim? Here the debug info and some videos. TCOMMENT: &ft = javascript => javascript TCOMMENT: stx = jsString => javascriptString ...
1
vote
1answer
61 views

Portable Neovim. How to change default data folder? How to avoid registry entries?

I'm trying to make a protable Neovim so I can use my plug&play IDE from a USB thumbdrive on any offline Windows computer. I managed to store my plugins and my sysinit.vim onto the USB drive and ...
0
votes
1answer
44 views

Unintended automatic join behavior and move in editting

I have to following lines in my .vimrc file (being .vimrc is irrelevant, other files the same), noremap D "_d "Make Y behave like other capitals (C, D) nnoremap Y y$ When I started to delete "_d ...
1
vote
2answers
77 views

Portable NeoVIM configuration / Folder confusion

I'm attempting to create a portable Neovim configuration for Windows. I'm a bit confused about all the directories. Maybe someone can shed a little light on me :) So I downloaded a pre-built archive ...
2
votes
1answer
41 views

$TERM specific NeoVim configuration

I spend half the time in a TTY (Linux console as in Ctrl+Alt+F2) and the other half in a X session. Unfortunately the color scheme I use for NeoVim in the graphical environment on xterm does not look ...
2
votes
3answers
51 views

wrap a long line with specific format

I have a problem with breaking long line in markdown file. Given the following line * "fo" : You can use the 'formatoptions' option to influence how Vim formats text. 'formatoptions' is a string ...
1
vote
1answer
25 views

Autocomplete on command-line search pattern returns strange symbols of <09> and ^I

Using Neovim v0.4.3 on a just recently upgraded Linux Mint 19.3. Problem Description: After the upgrade, when typing / followed by first characters of any word below the cursor, in the buffer, and ...
1
vote
1answer
57 views

How to add language highlighting tags to fenced code blocks in markdown

I'd like to create a vim function to automatically add the code highlight tags, e.g. ```python and ``` around fenced code blocks to have syntax highlighting in my markdown previewer (I'm using iamcco/...
2
votes
1answer
25 views

How do I put the List returned from a 'heredoc' (:h Let-HereDocs) into a Dictionary in Vim? How do I also make this work in Neovim?

In :help let-heredoc it explains that one can set a variable to a 'heredoc' where each line of the heredoc becomes an entry in a list as follows: let text =<< trim END if ok echo 'done' ...
0
votes
1answer
68 views

Ctrl keybindings not working in wsltty

I have the following mappings: nnoremap <C-,> :tabe ~/.config/nvim/init.vim<cr> nnoremap <C-/> gcc Neither of these mappings is working - they both do nothing. I have a plugin ...
2
votes
4answers
107 views

Clipboard is reset after first paste in Visual Mode

I am on Neovim. This is really annoying and weird. When I make a selection in Visual Mode and copy, then select a text and then paste, this paste only works once. For the next time, I again have to ...
1
vote
1answer
28 views

How can I use the `:term` command without closing the current window on exit?

I often use the :term command in my projects to create new directories or perform other work. However, if I have multiple windows open, then executing :term from one of them will also close that ...
0
votes
0answers
25 views

Replace with another word on the screen

Sometimes I find it convenient to Search for text I want to replace /original Start writing a substitution to replace that :s/ Use C-r C-w to put the current word hovered into the command line :s/...
1
vote
2answers
80 views

Using an if-endif conditional in autocmd

I'm pretty new to writing stuff in my .vimrc, and I'm trying to understand how to use conditionals. I'm using neovim. I'm trying to get (an enhanced version of) nvim's terminal emulator to launch in ...
3
votes
2answers
451 views

How to install stable version of neovim on Ubuntu 18.04

No matter how I do it, I seem to get the nightly or the 0.2.2 version. How do I install the stable version of Neovim. I have too many issues in the nightly. I used sudo apt install neovim and when I ...
5
votes
0answers
58 views

How does NeoVim's native LSP client compare with plug-ins that implement that protocol?

NeoVim v0.5 will include a native LSP (Language Server Protocol) implementation. See Greg Hurrell (wincent)'s Screencast #87: Neovim's built-in LSP client covering it. How does it compare with ...
1
vote
2answers
33 views

Close buffer in the other instance

When a file is being opened neovim warns that swap file already exists, at which point you can't safely open a file without first closing it in the other instance. I frequently have many projects ...
0
votes
1answer
23 views

How to repeat short sequences of characters

I want to replace a sequence of 6 hex digits (hex RGB) with new values, but I want to repeat a 2-tuple 3 times. For example: Start: #ea9081 (with the cursor on 'e') Desired: #f0f0f0 I know I can ...
2
votes
1answer
80 views

Neovim does not restore terminal cursor on exit

The cursor of my gnome-terminal is an underline _. I am using Neovim and I want the cursor in Command Mode to be: block | set guicursor=n:block-Cursor When I exit from Neovim I want the cursor back ...
3
votes
1answer
77 views

nvim cannot save - E506: Can't write to backup file (add ! to override)

When I try to save a file I receive the error E506: Can't write to backup file (add ! to override) It's working if I use :w! I'm using neovim.
1
vote
3answers
85 views

How can I delete forward in “Insert” mode?

I often use the Ctrl-w command in "Insert" mode to delete the word behind the cursor, just like I would do in Bash. In Bash, I also have a Meta-d (Esc-d) command for deleting the word in front of the ...
1
vote
1answer
116 views

CoC Python reports unresolved import in git subfolder

I have a Python project in a subfolder within my git repo: .git api/ requirements.txt .venv/ myproj/ __init__.py foo.py bar.py The virtual environment is installed in the api ...
1
vote
1answer
54 views

Can't copy special characters outside of vim

I'm using NVIM v0.4.3 with set clipboard=unnamed. I can insert special character like üäö in vim just fine, but if I copy content containing special characters in vim and try to paste them outside of ...
1
vote
1answer
53 views

Neovim Lua integration

I'm trying to understand how can I use Lua to extend Neovim, following a baby steps approach. Something like: -- ~/.config/nvim/lua/test.lua local api = vim.api local firstmodule = {} function ...
0
votes
1answer
33 views

Neovim Jobstart(), not receiving STDOUT sometimes (if async I think)

Working Base Test Working on a plugin, and it wasnt working on windows, so I reduced it to this test scenario: function! myautoload#OnStdout(job_id, data, event) for line in a:data echom ...

1
2 3 4 5
10