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

Can someone help me building nvim from source on/for Windows? I am having some issues doing so

I did the following: I downloaded the source files for 0.5.0 open msys2 mingw32-64 install packages: pacman -S \ mingw-w64-x86_64-{gcc,libtool,cmake,make,perl,python2,pkg-config,unibilium} \ ...
0
votes
1answer
39 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
0answers
13 views

Neovim - Point builtin LSP client for ccls to a compile_commands.json file

I'm using neovim's builtin lsp client for ccls. It requires a JSON compilation database for parsing the codebase (or something, I dunno). I used to use Bear for generating the compilation database, ...
0
votes
0answers
37 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> &...
0
votes
1answer
27 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 ...
-1
votes
0answers
46 views

Trigger a command automaticly when in insert mode, matching a regex in vim

So I have a command in vim that works like this: when I am in insert mode and I press <C-c> fzf opens with the word I typed and the list of files inside the current directory that match the ...
-1
votes
2answers
72 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
24 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
20 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
47 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
41 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
votes
0answers
34 views

nvim: running shell commands in the background does not seem to work

I am trying to run a shell command inside Neovim using :!{CMD} syntax to start the Vlime server: :!sbcl --load <your bundle dir>/repos/github.com/vlime/vlime/lisp/start-vlime.lisp But it does ...
0
votes
2answers
47 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
36 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
42 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-...
0
votes
1answer
28 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
33 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
41 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
40 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
146 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 ...
0
votes
1answer
40 views

Inside a mapping check if a variable is empty in vim

So i'm new to vim, and specially new to vimscript, and messing around i made the following code to get the name for a file and then create said file in a new buffer. I want a way to check if FileName_ ...
-1
votes
1answer
30 views

How to change editor mode from lua (or viml)

I know I can get the current mode, via mode(), but is it possible to set the current mode from viml or preferably lua (though I know a vim command/fn can be gotten to via the lua bridge). I know I can ...
0
votes
1answer
33 views

Disable command but allow to write in command mode

I have fzf.vim installed, and therefore I have a :W command. I prefer working with buffers, so I save a lot with :w. However, accidentally using a capital W invokes :W which annoys me. I tried ...
-1
votes
2answers
36 views

Get GUI name for different settings in neovim

I am deciding between using either goneovim vs neovide, both on windows, but each uses the font height differently, so I a wanted to make something like: if has(goneovim) "goneovim specific ...
-1
votes
1answer
43 views

Chinese characters become unrecognizable overnight in neovim

I typed a lot of Chinese characters in neovim into a LaTeX file (.tex), and when I opened the file the next day all the characters became unrecognizable (everything looked great before I shut down my ...
0
votes
1answer
24 views

How to format import {} from '' as multiline?

How do I un-join(?) or add trailing whitespace with indentation? With this code,,, import { amethod, methodb, methodc } from '../../utils/mockData'; how do you make this import { amethod, methodb,...
0
votes
1answer
47 views

how i set floatterm plugin in neovim , that shortcut F5 compile javascript and how i do for other languages?

i plugged float-term plugin , that open terminal window in neovim. when i compile javascript with node in float term i did like :FloatermNew node % then it compiles fine and show me the output in ...
1
vote
1answer
41 views

how to yank two level up bracket inside vim

I have a paragraph in this structure { // line 4 { //something in here { // line 8 // some inner thing in here } } // line 12 } my cursor is in line 8 and I want to yank ...
0
votes
3answers
40 views

How to copy the selection to clipboard without the indentation that is relevant just in the full file, not in the selection?

With other words: How to copy selection without its root-level indentation? Example: How to copy this: a b c d instead of: a b c d I am using Neovim inside VS Code ...
5
votes
2answers
210 views

Where do I define UtliSnips snippets for Python?

I am using UltiSnips for my snippets. I have only used LaTeX snippets with UltiSnips, which I defined in a tex.snippets file inside of an UltiSnips directory in my runtimepath. Now, I would like to ...
1
vote
1answer
30 views

Neovim keeps reverting shiftwidth size after `after/ftplugin`

I like to code with 4 spaces as a tab. I added this to after/ftplugin/sass.vim: echom "before sass file settings" set shiftwidth=4 " <---- Problem setting, keeps changing back to 2 ...
4
votes
1answer
44 views

Delete and change key sequences are slow

When I use mapped key sequences which cause an immediate change in the file (e.g. cw, dw, D, C), i have a wait time of roughly 1 second. Other mappings which are just movement (e.g. 3w) or movement ...
1
vote
2answers
37 views

Is there a way to quickly navigate to previously visited directories

I quickly want to switch between directories I previously visited without typing :cd and then the full pathname again and again. Is there a plugin or a way that can keep an account of the directories ...
2
votes
1answer
211 views

Jedi module is not found (deoplete)

:checkhealth shows neither errors nor warnings about jedi: health#jedi#check ==================================== ## jedi #### Jedi-vim debug information ##### jedi-vim version - jedi-vim git ...
1
vote
1answer
106 views

How to make Vifm use Neovim to open files?

I have both GVim and Neovim installed. When I open a file in Vifm, it is opened in GVim and not in Neovim. How to make Neovim the default editor for Vifm?
0
votes
0answers
18 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
47 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 ...
1
vote
0answers
29 views

Neovim steals line of screen

I try to switch to neovim because vim had turned slow. But neovim has the irritating habit of showing two status lines at the bottom of the screen. Is it possible to merge them into one? neovim: ...
0
votes
1answer
34 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
20 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
37 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
35 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
42 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
31 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
27 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
129 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 ...
1
vote
1answer
36 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
86 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
61 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 ...

1
2 3 4 5
11