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

Can you use neovim in a gui like mvim or gvim? (Mac OS X)

Maybe a stupid question but is it possible to run neovim on a GUI like gvim or mvim? I need some GUI to do remote work within Filezilla Thanks
1
vote
1answer
18 views

neovim ruby/rails omnicomplete

I'm trying to get omnicomplete working in neovim (0.3.4) on debian 10 with Ruby 2.6.6 (rbenv). I have these plugins: Plug 'vim-ruby/vim-ruby' " ruby ...
0
votes
0answers
25 views

How to disable super key from opening help.txt? [closed]

I would like to disable help.txt from opening when I press the super key, I use window manager and super + h/j/k/l to get around. It's really annoying to have the help open when I'm trying to move ...
2
votes
0answers
22 views

How to disown a process opened by plugin? (vim-rmarkdown)

as I said in the title I'm talking about vim-rmarkdown, I have this in my init.vim (I'm using neovim) to compile the .rmd file to a pdf. autocmd Filetype rmd nnoremap <F5> :w<Space><...
0
votes
1answer
21 views

Deactive the :terminal command

I am very often typing :Te and use tab to auto complete this value to :Texplore. However, when I misstype to :te, it will autocomplete to :terminal, which opens a terminal in the current buffer, so I ...
0
votes
1answer
18 views

Delete to the end of a paragaph, including all of the current line

I'd like to redefine the { and } motions to operate "linewise" when used with the c and d operators. To be concrete, given the following: The quick brown fox j|umps over the lazy dog If I press d}, ...
0
votes
1answer
47 views

How can I configure Black the python code formatter to indent 2 spaces instead of 4?

I'm using the psf/black plugin, I install and load it with vimplug: Plug 'psf/black' and I use it with <leader>f: autocmd FileType python nmap <leader>f :Black<CR> I use and prefer ...
0
votes
0answers
52 views

Is there any similar way in vim to get standard path like neovim stdpath function

In neovim, we can get default standard path via stdpath() function. I wonder if there is any way to do that in vim. below is the help doc about stdpath() in neovim: stdpath({what}) *...
1
vote
1answer
26 views

Vim8/NeoVim Invalid Expression remapping <C-x><C-o> to <Tab> for OmniShap-vim

I was reading a blog post for Settings up a C# Development Environment with Vim on Debian and I got most of this going except I have an issue with the <C-x><C-o> inoremap'ing. I am running ...
1
vote
1answer
26 views

How to get syntax highlighting for the embeded python within vimscript?

As title, how to get syntax highlighting for the embeded python within vimscript? Is there a plugin that does syntax highlighting for embeded script?
1
vote
0answers
50 views

get cterm color value

Currently all my colors are defined through Xresources and being set in vim through ctermfg=2 for example. Lately there have been many improvements that rely on termguicolors being enabled (pumblend ...
1
vote
1answer
15 views

Function Keys In NeoVim are maped to letter keys automatically

I'm trying to move my work from vim8 to NeoVim. I got an issue in NeoVim. The first 5 function keys F1, F2, ... F5 are automatically maped to letter 'A' 'B' 'C' 'D' 'E' and cannot be re-mapped. This ...
2
votes
1answer
23 views

copy-paste selection locally when editing files on remote headless server

When connected to a remote headless Linux server via SSH, I want to be able to do 3 things: select text using the mouse and copy the selection into my local X clipboard paste from local X clipboard ...
2
votes
1answer
42 views

NeoVim: Move the cursor after running a command in :terminal

I have function to perform a git diff, after calling git diff I wish to emulate the following keypresses in the terminal window: G move to the end of the file a append q<cr> type q to quit the "...
1
vote
1answer
23 views

vimscript : How do I apply a function on the current buffer?

I have written a function which capitalises the first letter of each word like this: function! CamelCase() range let old = getline(a:firstline, a:lastline) for line in old let x = ...
1
vote
1answer
32 views

Error E575 when starting VIM

When I start vim on my Mac using iterm or MacVim I receive the following error message: E575: viminfo: Illegal starting char in line: ^A<ce>^Y^C<f1>H<85><a9>generator<c4>...
0
votes
1answer
87 views

How do you open a file from commandline on gvim (neovim)?

I'm trying to open a file in gvim from the command line. This works: vim test.txt This does not: gvim test.txt For some reason gvim is not loading the file from command line. This is happening ...
0
votes
1answer
26 views

Vim-Matlab plugin

I am trying to get the plugin vim-matlab for neovim working, but with no success. When I try to call any command from nvim ( like :MatlabCliHelp ), I get the following output. Do you have any ideas ...
2
votes
0answers
35 views

How to delete non-empty directories in netrw (vim 8 or nvim)?

I will try to delete some non-empty folder in netrw by pressing SHIFT + d and, after press y, i got this error: (netrw) unable to delete directory {path} I already put this variable in my .config/...
3
votes
1answer
56 views

How can neovim on Windows be configured to use gitbash as the shell without breaking temp files?

At work I use neovim on Windows, and set the shell to bash using the bash executable that comes with Git for Windows (gitbash), which is in my PATH. The settings in the minimal init.vim pasted below ...
0
votes
0answers
25 views

Prevent buffer loads within Nerdtree

If I have many buffers opened and, if the cursor (focus) is within NERDTree, when I change the buffer with :bn or :bp, the content of buffer loads within NERDTree. There's a way to, before buffer ...
2
votes
0answers
33 views

Vim - Auto complete without doing ctrl x + ctrl o

I'm able to get the auto complete menu to come up with ctrl+x/ctrl+o combos, but would like to have the window pop-up automatically. Is there a mapping that would enable this?
2
votes
0answers
23 views

Using Nvim-Qt colors with regular Vim

I have been using nvim-qt and I like it. However I want to switch to regular nvim, but like other users I have had trouble with it. So then I thought maybe I will just use plain vim. The issue is ...
0
votes
0answers
15 views

neovim: How to exit “raw” “raw” [readonly] 5L, 190C

I've recently downloaded nvim and have been using it for a few weeks with no problems. Now I'm getting this every time I start nvim: "raw" "raw" [readonly] 5L, 190C I can't figure out how this ...
2
votes
2answers
219 views

Visual indicator for a file that doesn't end in newline

Inside of my editor (almost fresh install of neovim) there is no visual way to distinguish between a file that ends in a newline and a file that doesn't. In my command line (zsh default?) there is a ...
2
votes
1answer
39 views

Can I debug marks being deleted?

As I'm using Neovim, I'm noticing my marks are just disappearing mid session. I keep having to define them over and over again. I swear it's got to be a bug, either in Neovim or a plugin I'm using, ...
0
votes
0answers
36 views

Positioning the terminal emulator cursor in Neovim

When in Normal mode in a Terminal buffer (as in :terminal) there's the Neovim's cursor and the shell's cursor. Going into Terminal-mode forgets your Neovim cursor and you're then using the shell's ...
3
votes
1answer
57 views

How to override ftplugin set commands in Neovim

One thing I hate about a lot of the default Vim plugins is that they add o to formatoptions. In Vim I would get around this by using au FileType * set formatoptions-=o in my vimrc, but for some reason ...
0
votes
1answer
99 views

FileType autocommand not working in Neovim

My init.vim is just au FileType * echom "test" However, if I open a file, neovim-qt will not echo test. If I load a new file while the window is open, it will also not work. I have managed to find ...
1
vote
0answers
39 views

How to visually scroll one line at the time with long lines? [duplicate]

Not even sure I can describe this well, but I work in markdown with one line per paragraph, due to some issues that are outside of my control, and i would like the screen to scroll down following the ...
0
votes
0answers
63 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
32 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
75 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
31 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
34 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
21 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
86 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 ...
2
votes
1answer
56 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
248 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
26 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
69 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
66 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
33 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
135 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
84 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
34 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
29 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
37 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
176 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
2 3 4 5
9