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

C# neomake linter

I would like to use nvim more for C# however I am having a maker error I can't fix. My Omnisharp didn't work either but I still have 'YCM' as a backup for now. The MSBuild in my path is from the VS ...
2
votes
1answer
29 views

Base16 theme disable bold

I've recently installed Base16 theme and having issues disabling Bold text, I found the customization snippets and have the following in my .init.vim (NeoVim) : function! s:base16_customize() abort ...
0
votes
1answer
30 views

Weird powerline symbol background in iterm2

I am experiencing a weird background color of powerline symbol in iterm2, it doesn't match with that of status bar. however, in alacritty, the background color are matched. In iterm2: In alacritty: ...
2
votes
1answer
17 views

Vim autocorrection problem

I am having a problem with vim autocorrection. I got this line from a website, which is: inoremap <C-l> <Esc>[s1z=`]a The problem is that whenever I press Ctrl+l to correct something, it ...
2
votes
0answers
24 views

Key Registration Problem

I have a problem that sometimes happens when I do type in Neovim. It does not register keys or mouse clicks correctly, which causes me to restart the iTerm session and rescue the working file with ....
1
vote
0answers
9 views

netrw not open correctly, just open blank with noperm message

I am Neovim user and have serious problem with netrw I find netrw has a bug when trying to open the file, at first it only shows an empty buffer(1st picture), and right bottom corner, you can see [...
2
votes
1answer
18 views

Setting vim spelllang for Italian

I need to enable the spelllang of vim for Italian as well, but I can't understand how to tell vim to check for Italian words as well. This is what I have in my init.vim, if it can help you: I tried ...
0
votes
1answer
24 views

anyone can guide me on how to actually using neovim command

I am trying to use the same way in vim for set signcolumn=number however seems neovim says it is replaced by sign define and followed by numhl everyone talking to use it instead but seems nobody gives ...
0
votes
0answers
21 views

Displaying sloc (source lines of code)

Is there a plugin that can display sloc? I have searched every where and all I get is how to display total lines or how to show line numbers...
0
votes
1answer
47 views

Neovim automatically run command when opening a filetype from ftplugin file

I have Neovim setup with configurations for file types separated into ftplugin files. I would like to have Neovim start the Goyo plugin when I open a markdown file. However, I would like to keep this ...
0
votes
1answer
19 views

Autosave and Nerdtree conflicts

I was trying to setup NeoVim to autosave each time a change is made. I used this command, which I wrote in ~/.config/nvim/init.vim: autocmd TextChanged, TextChangedI * silent write It works perfectly ...
3
votes
1answer
55 views

First new line in multi-line vim commands has broken highlighting

In my init.vim I have the following command: nnoremap <Leader>s :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") \ . "> fg<&...
0
votes
1answer
56 views

What is the rationale of configuration files of neovim?

I switched to neovim some time ago, so I still have files from Vim. I mean, ~/.config/nvim and ~/.vim coexist. However I don't understand, for example: If I install a plugin with vim-plug it goes to ...
0
votes
0answers
19 views

How to keep directories expanded after toggle netrw?

I have an "almost" perfect netrw workflow. With my internet search, I: Solved <C-l> problem; Splits Right/Bottom (without resize netrw); Toggle netrw (but has an issue); In my ...
3
votes
0answers
43 views

How does expression folding actually work?

The following is a stripped down version of my folding function for LaTeX documents: setlocal foldmethod=expr setlocal foldexpr=LaTeXFoldsExpr(v:lnum) " Sections to be folded let g:...
1
vote
1answer
85 views

Most efficient way to call a Vim script function with lua (Neovim)

What is the most efficient way to call a Neovim function using Lua. I am able to call the sign_define Vim script function using the nvim_command procedure. I struggle with calling it with the ...
1
vote
2answers
55 views

Is it possible to have a toolbar in nvim or an nvim GUI? Other workarounds for remembering obscure keybindings?

In gvim it is possible to get plugin-specific toolbars (see screenshot attached). Is something like this possible in nvim? Is there a GUI for nvim in which it is possible? From Googling, the only ...
1
vote
1answer
86 views

Custom g:clipboard results in `p` always pasting into the same line

Background I use wayland and neovim and when pasting external text it would add ^M to the end of each line. This is a known "bug" (https://github.com/neovim/neovim/issues/10223) and there ...
1
vote
0answers
24 views

TeX syntax file not recognising bold-italic blocks

Basically title. Text inside \textit and \textbf is correctly formatted in italics and bold, but if I nest one inside the other, the text takes the formatting of the outer command, as shown here the ...
0
votes
0answers
147 views

A problem regarding the fragility of multiple windows viewing the same buffer

Problem Statement (concise, but inexact, version) Windows viewing the same buffer are fragile in the following sense. Consider a complex arrangement of tens or hundreds of windows, distributed amongst ...
0
votes
1answer
33 views

How to remap command abort (Ctrl-c)

When you run a command such as :! sleep 5, then you can normally cancel it using Ctrl-c. How do I remap that combination to something else, for example Ctrl-x? The context is that I use urxvt with ...
1
vote
1answer
27 views

Get correct length for unicode characters

Basically title, the length of unicode characters as calculated by the len() function is off by one, for example :echo len("à") 2 or :echo len("°") 2 is there a way to fix this, ...
1
vote
1answer
25 views

incorrect auto-indent behavior

In some very specific scenarios, the auto indenter has almost unexplainable behavior that is very annoying. Example with haskell MultiWayIf syntax (cursor is at the "!"): test | test ...
2
votes
0answers
60 views

“^[[201~” character being pasted at the end of file

I'm trying to copy-paste by hand this file, but whenever I paste the contents in vim the last line shows this weird character at the end of the line ^[[201~. My guess is that it's one of those wrong ...
2
votes
1answer
26 views

bad comment behavior in cmake files

When I'm editing a cmake file in (neo)vim I'm getting bad behavior block inserting comment characters. Given this section of text install_license_file( PACKAGE tomcrypt TARGET ...
1
vote
1answer
21 views

navigate lines with alphabets

I am using Programmer Dvorak layout. So typing numbers for navigation is not easy. Can I instead navigate with alphabetical characters showing up in place of relative numbers? Any other ideas?
0
votes
1answer
55 views

Navigation in insert mode with soft wrap and showbreak

I’m having trouble with hjkl movement in insert mode. The issue is that I have changed hjkl movement to move by display line. I have 'wrap' on. The cursor should normally move line by line, not move ...
0
votes
0answers
51 views

How to hide a buffer thru vimscript, with buffer number or buffer name

I'm trying to make a plugin that hide and show a terminal window on the bottom of the window, but i can't find a reliable way to hide a specific buffer, i tried using hide but you only can hide by ...
0
votes
0answers
21 views

How to overwrite the conceal background color with line color?

I've started using coc for NeoVim and I've setup a highlight for a line with error using the following: hi CocErrorLine guibg=#ce2c28 However, when the error line has a concealed character, it has a ...
0
votes
2answers
46 views

How to get emoji completion in markdown with `:<emoji>`, using neovim and coc

I'm sure that I've seen it so that one is able to use :<emoji and there's a pop up menu to select from, I can't seem to get this working though. I tried installing: https://github.com/junegunn/vim-...
1
vote
0answers
51 views

View pylint errors using coc and neovim

For the following code there is an error in the gutter, but I don't know how to view the actual message for it. Similarly here: In the bottom right of the editor are warnings and errors: But I don'...
1
vote
1answer
45 views

How do I get the Commands line in the absolute bottom of the screen

I'm setting up neovim and I can't seem to use the screen fully. This is how the terminal looks when I open neovim in either Terminal App, iTerm 2 or Alacrity. There is a whole empty like below where ...
1
vote
0answers
74 views

How to format files on save using black with neovim and coc

I'm trying to have python files format on save using black and neovim, with coc. Coc config I have the following coc config: { "coc.preferences.useQuickfixForLocations": true, "coc....
1
vote
0answers
31 views

How to scroll down the output of coc help without using the mouse?

When coc prompts with information about what a class / function does there's help to the right, but if I want to scroll down within this help I have to use the mouse. I'm wondering if there's a nicer ...
1
vote
1answer
25 views

Shortcut to open a particular website

I'm using neovim on mac os, in case that information is of use. In the shell I have some aliases such as alias g='open HTTP://google.com For sites that I access regularly, I would like to be able to ...
1
vote
1answer
54 views

Bottom Padding In Vim?

My (n)vim window looks like this: Line 91 is the end of the document, and it's flush with the document name at the bottom (essentially the bottom of the screen). How do I "move" that line ...
0
votes
1answer
333 views

How to reload neovims init.vim without restarting neovim [duplicate]

When I search for this I get a lot of information about reloading the vimrc, but not so much about reloading neovims init.vim. My question is - having edited the init.vim file, how I can reload this ...
0
votes
1answer
18 views

Is there an equivalent to Xcode's quick jump bar (to navigate Swift MARK annotations within a file)?

Does a rough equivalent to this Xcode quick jump bar feature exist as a Vim plugin? I haven't been able to find any good leads on one in my research. It's a way to navigate sections in a file - in the ...
1
vote
1answer
18 views

<Cmd> doesn't seem to work in visual mode

The following command copies the selected text into the PRIMARY selection: vnoremap <Leader>c :'<,'>!xsel<CR>u But this way it doesn't work: vnoremap <Leader>c <Cmd>'<...
0
votes
0answers
15 views

saving a .v file triggers it to be opened in another window and gets E:325 in neovim

After trying to save a .v file, it triggers a new window to be opened with e:325 error with swap file already exists. This only happens to .v files. This only happens when neovim is opened from that ...
0
votes
0answers
27 views

Why gd highlights instead of going to definition?

I've noticed the keymap nmap <silent> gd <Plug>(coc-definition) will highlight similar to nnoremap <leader>* :CocSearch <C-R>=expand("<cword>")<CR><CR&...
0
votes
0answers
36 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 ...
4
votes
0answers
49 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
86 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
41 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
675 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
33 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
12 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 ...
2
votes
1answer
50 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 ...

1
2 3 4 5
11