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
17 views

How to display NERDtree buffer in a floating window

Thanks to a comment on reddit I was able to move my FZF search to a floating window and whilst it looks cool my main gain was that it's faster or at least it feels faster because it's no longer ...
1
vote
1answer
23 views

how to stop vim from shortening window title to terminal width?

after some tinkering with xprop and window resizing, I'm almost certain it's (neo)vim, not the terminal emulator or the window manager that's shortening the x11 window title name (one of these x11 ...
3
votes
2answers
45 views

Ctrl-6 doesn't switch to the last buffer (Neovim)

Just noticed that this doesn't work for me. I have to hit Ctrl-Shift-6 (Ctrl-^) to activate the shortcut. Launching up my Vim it worked just fine so it's not something weird going on with my machine. ...
0
votes
1answer
19 views

Rename neovim terminal buffer without breaking :mksession

Is there a "good" way to rename the terminal buffer in neovim? I know that renaming is possible with the :file command, and that works fine for current session. The problem with this approach is ...
0
votes
0answers
13 views

Showing full typescript definition with deoplete

When using nvim with deoplete in typescript code, I see autocompletions. I'm not using nvim-typescript, but will see typescript definitions, but the autocomplete box can only show so much. I've ...
1
vote
0answers
16 views

neovim: Keep :terminal active when I switch to other buffers

I use :terminal in neovim to run a dev server. But whenever I switch to other opened buffer(s), the terminal kills the process. Is there a way to keep the terminal running in neovim?
3
votes
1answer
36 views

Can I configure nvim-qt to look like a terminal?

In gVim there's guioptions which lets you disable the gui-specific features. I'm curious if I can configure this in Neovim somehow. If it can't be done across the board, what I want most is it be ...
1
vote
1answer
31 views

Persistent undo erases my file

I have been trying to get persistent undo to work for over a day now. I keep having a quite unusual bug. I tried the following: " Let's save undo info! if !isdirectory($HOME."/.vim") call mkdir($...
3
votes
2answers
118 views

Disable Lightline on Nerdtree

I would like to disable or hide Lightline (i.e. vim's statusline) when my cursor is in Nerdtree, while keeping it activated for other buffers. Here is what I mean: How can I achieve this? ...
4
votes
0answers
25 views

Neovim makes spurious directories and doesn't clean them up on exit

Neovim makes directories in my home folder (presumably to store swapfiles, etc.) of the form nvimzOvQcg, nvim098eqo, nvimUyUGZ8, etc. Upon exit, the contents of these directories are cleaned up but ...
2
votes
2answers
59 views

Solidity (*.sol) filetype not recognised in neovim

NeoVim is not recognising Solidity filetypes (which end with the extension .sol). When editing a .sol file typing: :set filetype? generates a filetype= (e.g. blank). This is in contrast to html, ...
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
1answer
29 views

API, Modes, and their Short-Names

I'm using nvim_get_mode to get the current mode of Neovim for a Rust-based plugin that I'm working on. However, a cursory look through Neovim's docs doesn't show a comprehensive list of the editor's ...
3
votes
1answer
101 views

NeoVim - Go into insert mode when clicking in a terminal in a pane?

I'm trying to use NeoVim as a tmux replacement, and have found that no matter what I do, I can't get it to go into insert mode when I click in a pane that has a terminal in it. Here's the config I'm ...
5
votes
1answer
70 views

How do I change the return/enter key functionality without breaking enter to select?

I like to replace the default enter/return key functionality with actually inserting a new line, and the same with space (but inserting a line above), e.g. here is my map: nnoremap <CR> O<...
0
votes
0answers
24 views

How to configure support for cmd key in terminal (neovim)

This question has been raised several times in several places. You can't map cmd out of the box when neovim is used in terminal. Most of the answers were you can't or try karabiner. There is this ...
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 ...
0
votes
0answers
19 views

Run a process whenever I save any of the open buffers [duplicate]

would it be possible to run an arbitrary command in a terminal (like node tests.js or cucumber -p @wip) whenever any of the open buffers in vim are saved? I guess I'm thinking of a save hook or ...
2
votes
0answers
35 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 ...
1
vote
2answers
89 views

Change Neovim cursor in insert mode under st (simple terminal) and tmux

My Neovim cursor normally switches to a pipe symbol (|) when I'm in st, but it doesn't when tmux is open in st. Is there something special to do? Version: Neovim: v0.5.0-dev Tmux: 2.9a My ...
1
vote
2answers
31 views

Auto Command fails with file plugin command

I have following line in my .nvimrc au! BufWritePost *.elm ElmMake Each time I save an elm file vim tells me that this command does not exist. However I am able to run this command in command more ...
1
vote
1answer
18 views

Showing external command output only if not empty

Is it possible to silently run an external command, but show the output on the prompt only if there was any?
0
votes
1answer
38 views

After undoing changes, Neovim still requires saving file or ! before exit [closed]

If I open a file, add a line (o), and then delete that line (dd) making the file exactly the same as when it was opened, upon exiting (:q), Neovim states: E37: No write since last change (add ! to ...
2
votes
3answers
51 views

Why is my locale replaced when I run an external command?

Why is my locale setting replaced when I run an external command with :!cmd ? And which configurations should I check to find the cause of this problem? I've checked configs for my shell (zsh): ....
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
1answer
68 views

Moved from vim to neovim and now <BS> deletes 4 spaces at a time, instead of 1 as I'm used to. How to fix?

I've used vim for ages and am really used to inserting four spaces by hitting tab, but then being deleting them one by one. Now that I've switched to neovim this has changed to it inserting four ...
0
votes
1answer
43 views

Can't set neovim colors to follow terminal colors in st terminal

I can't set neovim colors to follow terminal colors in st terminal. Here is a screenshot from the terminal: I have tried different configurations of set t_Co=256 and set termguicolors but all of them ...
1
vote
1answer
122 views

Show terminal buffer in airline's tabline

I use airline's tabline to show a list of my current buffers: Plug 'vim-airline/vim-airline' let g:airline#extensions#tabline#enabled = 1 " Use the airline tabline (replacement for buftabline) let g:...
3
votes
1answer
52 views

Sourcing vimrc duplicates statusline in nvim

I'm new to vim so I'm not sure if this is intended behavior or not, but it seems like a bug. Desired Behavior After sourcing vimrc from within nvim, don't duplicate the contents of my statusline. Or ...
1
vote
1answer
300 views

open coc-definition in new split in coc

I am using coc.vim in neovim. coc.vim suggests the following mapping for jumping to the definition of a class/method. nmap <silent> gd <Plug>(coc-definition) If there is only a single ...
0
votes
1answer
76 views

(coc.nvim) error: Warning: The 'x' rule requires type information

I'm using coc.nvim for react (typescript) development. I have installed following coc plugins. coc-tslint-plugin coc-tsserver coc-prettier tslint integration is enabled for prettier in coc-settings....
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 ...
0
votes
1answer
126 views

Python Language Server Protocol with virtual environment

Can anyone help me get things like "Go to definition" working with Neovim and Python virtual environments? My setup currently uses a specific virtual environment for Neovim (as recommended by :...
0
votes
0answers
32 views

Is it possible to install YouCompleteMe on vim without using neovim?

I tried to download neovim (using Homebrew and pip) and I still did not manage to make YouCompleteMe work, it gave me several error messages regarding the neovim module and python. Is there any ...
0
votes
0answers
133 views

Autocompletion doesn't work when using ALE + deoplete

From my init.vim (I've checked that it doesn't work even with a minimal configuration): call plug#begin() Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'dense-analysis/ale' Plug '...
1
vote
0answers
53 views

neovim hlsearch not working

I'm testing neovim and for many thing it is working way faster than vim (I use many plugins ~80, and I can really tell the difference with neovim). All the same config files worked out of the box, but ...
0
votes
0answers
40 views

Is there a SafeState equivalent in neovim?

I have the following function that I'm porting to neovim: " --------------- " Auto record visual mode " --------------- " Allows executing operators with a different syntax. " First we go to visual ...
2
votes
1answer
75 views

Behaviour of BufEnter

In neovim, open two different buffers as follows (using :vnew, for example): *--------------*--------------* | | | | 1 | 2 | | | ...
2
votes
1answer
65 views

ALE Error and warning highlighting gets disabled when termguicolors is enabled

I have the ALE extension installed, and would like it to highlight errors and warnings, however when :set termguicolors is enabled, the Here's a screenshot of the problem: set termguicolors ...
2
votes
2answers
174 views

Send keys to a terminal buffer

I want to map a keyboard shortcut to execute the last command in a terminal buffer that I have open. I've made some progress: I am storing the buffer's channel id correctly but when I try to send ...
1
vote
0answers
43 views

How to use actual window size to control vim settings?

Background: neovim with tagbar plugin installed Goal: when starting nvim, if current window size is larger than 100, open tagbar and set auto-open for new buffers. Currently I use the settings below ...
3
votes
2answers
176 views

Running a command Async in Neovim

As far as I know, neovim enables running a command async, without blocking the user. This is also enabled in vim8 I was told. But I couldn't find examples of how to run a command asyncly. Suppose ...
1
vote
1answer
29 views

Vim - swaping the curly braces and brackets, breaks the plugin shortcut

I want to swap curly braces and brackets. The problem I encountered is that some plugin shortcuts dont trigger. Here's example. If I put this in my config file: nnoremap { [ nnoremap [ { then ...
1
vote
1answer
66 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 ...
0
votes
1answer
58 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'...
1
vote
1answer
45 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 ...
2
votes
0answers
109 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
27 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
192 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 ...
0
votes
3answers
184 views

How to clear neovim terminal buffer

I have a terminal buffer with 10000 lines of previously executed output. In order to search for the particular sequence of words I have to go through all 10000 lines before getting to my last executed ...