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
1answer
20 views

possible to search two form of hex string in one time?

Some text file contains lots of hex strings, a same string presents multiple times in two formats like: 00000000 aa bb cc 25 41 f3 d9 ed 58 5c ed a0 3c 61 60 ce ...%A...X..<a`. and ...
-1
votes
1answer
368 views

Adding Additional Syntax Highlight to nvim; cannot get .config/nvim/after/syntax to load .vim file

I'm trying to add additional syntax highlighting to a plugin I'm using for syntax highlighting. I've tried adding the additional syntax file fstrings.vim to the ~/.config/nvim/after/syntax folder but ...
-1
votes
1answer
48 views

What is 3kA in this mapping?

I'm trying to understand how to make mappings in vim (particularly neovim). Searching, I’ve managed to do some of the things that I want, but I can't learn what everything means. Example: a latex ...
0
votes
1answer
60 views

Automatically load & save folds of files - except for help files

My current solution to automatically load & save views of a file is the following: " automatically saves & loads folds when closing or opening a file set viewoptions-=options augroup ...
-1
votes
1answer
52 views

make appending strange folder to my makeprg on Windows

I recently came to use NeoVim and I was trying to configure my vim to run a single file using :make command (My g++ is from MinGW), I tried to use :let &makeprg = 'g++ -Wall -Wextra -std=c++17 -o %...
0
votes
0answers
47 views

Delete buffer only when a specific buffer is deleted

I've configured Vim to look like this: +------------------------------------+ | N | Code | | E | | | R | | | D |...
1
vote
1answer
97 views

clicking on a line with concealed characters

Let's say I have a latex file with a line $\nabla_Y Z = \nabla_X Y$ If I set conceallevel=2 this becomes ∇_Y Z = ∇_X Y which is nice. If I have my cursor on another line and want to change the Z I ...
2
votes
2answers
73 views

Why does system(cmd) append ^@ to its output?

I want to set node's executable path for neovim. So I have added this line in init.vim. let g:coc_node_path = system('which node') But when I open nvim I get this error. [coc.nvim] "/home/akash/....
0
votes
1answer
1k views

VIM vs NEOVIM vs SpaceVIM [closed]

I am giving Vim a go using WSL. But should I go for Vim or NeoVim or SpaceVim? What are the differences in these, are there any other such variants, and which one should I choose as a starting point?
0
votes
1answer
277 views

nvim-completion-manager: neovim shows a Python syntax error in cm.py when opening a new file i despite no actual syntax error in file

In ~/.config/nvim/plugged/nvim-completion-manager/pythonx/cm.py, line 151 is self.nvim.call('cm#complete', name, ctx, startcol, matches, refresh, async=True) I'm using Python 3.8 and copying ...
1
vote
1answer
595 views

Dracula theme not recognized in init.vim

Here is the tutorial I am trying to follow Here is the init.vim file I have written. I just don't understand why I am getting the error Cannot find colorscheme 'dracula' This error is occurring in ...
0
votes
1answer
190 views

Set the color scheme for current window only?

How can I set the color scheme manually for the current window only ? colorscheme affects all windows when I use it. My use case is that I am using neovim and I have a terminal session in one window ...
-1
votes
1answer
56 views

Neovim window rolls up when dividing screen horizontally with tmux

When I'm coding, I like to have neovim window up and command line window down to run my code on the screen. When I save a neovim file and divide the screen into two horizontally using tmux, the neovim ...
1
vote
0answers
679 views

How to use colored icons for autocomplete menu nvim.coc?

I am using neovim-qt for typescript react development. From last week I am configuring my neovim. I have configured coc.nvim which is giving pretty good autocompletion. I wanted to add icons for ...
-1
votes
1answer
31 views

Delete word or whole line part after cursor in colon-command mode with keybinding

I would like my NeoVim to have Emacs-style keybindings in all "direct input" modes, in particular - Alt+d and Ctrl+k for forward word and line part deleting. I've done it for insert mode as ...
1
vote
1answer
85 views

What is right way for string concatenation in vimscript?

I wrote some vim plugin, that correctly works with vim8, but when I try run it with neovim I get error about invalid expression in string: let var = str_first .. str_second When I change .. to . all ...
-1
votes
1answer
34 views

Is there a way to prevent nvim from editing another file?

When I'm using nvim with firenvim, I use it to only edit the 1 text box in the browser. I typically have to need to open another file. Even with strict security policies, I'd like to disable nvim's ...
0
votes
0answers
32 views

How to exclude git commit hash (7-char long hex string) from spelling?

I use neovim as editor for git. Especially when rebasing it is hard to focus on the important things because the spell check highlights the commit hashes. Therefore I'm trying to exclude the 7-char ...
1
vote
2answers
335 views

Replace regex group in nvim

I'm using the most recent version of nvim on arch. I have sentences in my text like this The brown fox I wish to use this format :%s///g to replace all lines starting \nlowercase letter + rest of ...
3
votes
1answer
278 views

Visual block selection using mouse in Neovim

Is it possible? I set mouse=a, go to VISUAL BLOCK mode but when I click and move pointer, neovim falls into VISUAL and mouse selects character-wise.
0
votes
1answer
1k views

Error processing init.vim in neovim (not an editor command)

I have just tried to set up neovim from this article. I am running on Windows 10. I have installed neovim through chocolatey, and I am trying to get Vim Plug to work. After pasting call plug#begin(&...
1
vote
1answer
437 views

Issues with concealing latex

I am playing around with conceal options in latex, and I would appreciate some help. I am using neovim os OS X if that makes a difference. I have the following settings in my config file Plug 'lervag/...
-1
votes
2answers
59 views

<BS> and <C-w> delete entire line in (terminal mode from a command) instead of a single character

I'm creating a mapping which is supposed to navigate to a specific window (call TEST_WIN), focus in on the terminal and then delete a single character. The goal of this command is to navigate to the ...
-1
votes
1answer
95 views

NeoVim does not pick up ruby defined by rbenv/asdf

On my clean install macOS Big Sur (with migrated user account), I am having the mentioned problem in (homebrew) NeoVim 0.4 with Neovim gem (0.8.1) using zsh. :ruby puts RUBY_VERSION 2.7.2 :echo ...
-1
votes
2answers
71 views

How can i make this autocmd BufEnter command work?

i am setting the default vim-statusline, and i made this line on my colorscheme: hi MyStatusLineDevIcon ctermfg=7 ctermbg=0 cterm=NONE So i can color the devicons on my statusline.vim config I call ...
0
votes
1answer
35 views

How to track down the code during debugging?

The problem I'm trying to troubleshoot now is specific to recent neovim 0.5.0 (exact version I'm using is NVIM v0.5.0-ef3230f35 but this issue reproduces in the same way on all my machines each ...
0
votes
1answer
116 views

ever since i moved from vim to neovim, my AG has started acting strange

I recently switched to neovim, but ever since my AG usage have acted weird lately. Here is my current .vimrc file. Here is my neovim init file ~/.config/nvim/init.vim: set runtimepath^=~/.vim ...
0
votes
1answer
100 views

Get visually selected text - weird behavior when last selected char is multi-byte

I have made a simple function to echo the visually selected text. The function is simplistic as I am only interested in max one-line selection. The problem is, if the last character of the visual ...
1
vote
0answers
36 views

How to change colour of reference counts next to definitions

I'm using CoC with the elm-language-server, and I've found that for each top level definition, at the end of the line I have an extra annotation printed that gives a reference count and whether it's ...
-1
votes
2answers
65 views

How to grow/shrink a selection per tab?

How to have a selection grow/shrink as we tabulate, regardless of cursor position ? The selection can span more than one line. Kind of like this: For the tabbing I've got this part so far: xnoremap &...
-1
votes
1answer
133 views

Enter insert mode after search?

So you're in Normal mode, then you press f followed by a character, then vim takes you to the next occurrence of that character. When you land on that character you are in Normal mode. My question is ...
0
votes
1answer
75 views

Confused why A-f keybinding does not work in neovim

I'm trying to add some readline keybindings into insert mode, like below, inoremap <C-B> <Left> inoremap <C-F> <Right> inoremap <A-B> <C-Left> inoremap <A-F> &...
-1
votes
1answer
64 views

How to move a selection horizontally whilst retaining the selection?

I want to select some characters on a line, then be able to move them by one character forward/backward (i.e to the right/left) as many times as desired whilst retaining the selection as it moves. ...
0
votes
0answers
55 views

How do you represent "/" character in .vim?

Trying to map the NERDCommenter's toggle comment action (mapped to <leader>c<space>) to alt+/, something a bit more familiar. I tried: nnoremap <A-/> <leader>c<space> ......
1
vote
1answer
132 views

How to create key bindings that apply on in a quickfix buffer?

The autoload command can be used to execute code depending on a range of events and filetypes. When I list the active buffers, the buffer hosting the quickfix window has what seems to be a unique ...
0
votes
2answers
8k views

Where is "~/.config/nvim/init.vim"? [duplicate]

I just download Neovim & I'm trying to configure it following a tutorial, but I can't find the path $XDG_CONFIG_HOME/nvim/init.vim or ~/AppData/Local/nvim/init.vim. I don't know if a have to ...
-1
votes
2answers
160 views

annoying red blocks in neovim

im using Neovim from my WSL terminal. I've been exploring the multiple plugins of this amazing open source project and this made me change my init.vim, a lot. Now i've messed it up and i don know how ...
0
votes
0answers
43 views

Is there any snippet generator available for vim?

In vscode/atom/sublime there is a snippet generator. https://snippet-generator.app/ Likewise any snippet generator or plugin to generate present in vim? Can I store snippet in my project github and ...
1
vote
1answer
95 views

Display file contents in a popup window upon pressing a key?

I am having a text file where I have a cheat sheet of commands I learned. When pressing some key ,it should be displayed in popup window. In Kakoune editor they display a help using Alt+i , like that ...
-1
votes
1answer
50 views

How I can convert into the right characters?

I'm getting something weird characters in :messages. How can I get the right results? reproduce steps define functions. let s:rails_console_id = 0 function common#utilities#open_rails_console() ...
1
vote
2answers
113 views

How to show a terminal under all tabs?

I have opened few files in tab vim -p file1 file2 file3 When i have opened a tab contains file1, I open a terminal :botright terminal But this terminal is only available for file1 . when I open ...
1
vote
1answer
52 views

How to gF (go to file Particular line) to popup window?

In vim8 there is a popup window feature which seems like vscode peek definition. Often I use gF to go to file with particular line number. Is there a way to open a file in popup window?
-1
votes
2answers
2k views

How to hide terminal when not needed?

In VScode ,we are using ctrl+j to hide the terminal. Then if we press ctrl+j again, it will open the same terminal. Is it possible in VIM/NEOVIM? I tried :Terminal ,but there is no straightforward way ...
0
votes
0answers
20 views

Automaticall close LaTeX begin environment with end [duplicate]

I want to automate some routine operations when working with LaTeX documents writing, e.g. I often write these lines: \begin{<environment-name>} some text and commands here \end{<environment-...
1
vote
1answer
1k views

How to get the filetype in lua in nvim

How to get the current file type in lua with neovim? I tried following but all of them returns nil. print(vim.g.filetype) print(vim.b.filetype) print(vim.w.filetype) print(vim.t.filetype) print(vim.v....
-1
votes
1answer
37 views

How Vim saves files when typing :w

How vim saves files when typing :w in normal mode ? I have the feeling there is something different happening in comparison with other IDEs / Editors. I ask this because I had issues when developing a ...
-1
votes
1answer
442 views

Regex for any character that is not alphanumeric, whitespace, or a doublequote

I expect this to select all non-alphanumeric characters: [^\w] Instead it selects all non-w's. This is the regex I would use in JavaScript, Python etc.: [^\w\s"] How can I write this so that it'...
1
vote
1answer
107 views

How to copy and paste non English characters?

I'm using: Neovim v0.4.4 Mac v10.13.6 iTerm2 When I copy non English text, for example 中文(简体) and paste it to neovim, it become ???? The same thing happens to when I copy it from neovim and paste ...
5
votes
1answer
359 views

How do delete the the next word or remainder of a line in insert mode?

New to vim/gvim, but I know that if I use C-w in insert mode, I can delete the word behind the cursor and from the beginning of the line to the cursor with C-u. Is there an easy way to do the rest ...

1
3 4
5
6 7
16