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
13
votes
2answers
1k views

Detect neovim terminal from bash in bashrc

Does neovim set any environment variables that would let me detect from bash that the terminal is neovim? I want to change the behavior of my .bashrc if neovim is the terminal.
3
votes
1answer
495 views

Neovim Python script hangs

I'm thinking of migrating from Vim to NeoVim. I decided to begin with a bit of Python code in my .vimrc that sets the backup directory. Using the documentation, I wrote the following script: "-------...
3
votes
1answer
117 views

neovim doesn't show expansion "list" of completions

In this example, when class is typed, a list of potential expansions is shown. The snippet itself works in my nvim, but the list is not shown. Commenting out my whole init.vim (the vimrc of neovim), ...
10
votes
2answers
2k views

How to start maximized gui with qt-neovim?

I am using neovim with qt-neovim (linux arch). On gvim I could launch a maximized window with: if has("gui_running") set lines 999 columns 999 endif That is not working now though. I ...
5
votes
2answers
2k views

Edit Neovim terminal commandline within the same Neovim instance

In bash one can edit the current commandline in $EDITOR by pressing <c-x><c-e>. I am running bash inside a terminal buffer within Neovim. I would like to be able to press <c-x><c-...
9
votes
1answer
362 views

What does the '+' symbol mean when opening a buffer?

I want to open a terminal buffer in a vertical split. If i try :vertical split terminal I get a buffer named 'terminal', not a terminal buffer. I recently learned I could do :vertical split +...
7
votes
1answer
2k views

Trouble to call a bash command from vimrc with autocommands | "Error: no previous command" (neovim)

basically i want to test within my vimrc, if /home/$USER/.dotfiles/nvim/bundle/vim-snippets/snippets was symlinked to /home/$USER/.dotfiles/nvim/snippets If not, it should create the symlink. the ...
1
vote
1answer
154 views

IndentationLine Plugin doesn't get loaded without autocmd; appearance changes from default to desired when opening another window

i use neovim and pathogen for managing plugins When i just put these settings in my init.vim, the plugin won't load. let g:indentLine_loaded = 1 let g:indentLine_fileType = ['vim','c', 'cpp'] let g:...
6
votes
2answers
501 views

Fold/Unfold on moving vertically

Currently my init.vim (neovim's equivalent to the .vimrc) sets the foldmethod to marker: set foldmethod=marker When I open a file all sections are folded and if the curser is placed in the ...
3
votes
0answers
704 views

Wrong color-theme displayed

I recently saw this video about tmux and vim and instantly fell in love with the color theme used in the video. Luckily the presenter (Nick Nisi) provides a link in the video-description to his .vimrc ...
3
votes
1answer
2k views

neovim: use new .vimrc and .vim

I wanted to take a look into neovim coming from vim and my question is about the .vimrc/.viminfo as well as the .vim folder. Preferably I would like to use fresh instances of these. Do I have to ...
5
votes
1answer
1k views

Search and highlight two different strings in different colors

I have a situation with typesetting a book in which the quotation marks are all screwed up. The author used a variety of marks¹ and apparently didn't believe in discriminating between them. I've ...
4
votes
2answers
2k views

non-default colorschemes can't be loaded; setting them manually after startup works

Currently, I use vim-plug for managing plugins and vim-colorschemes for my colorschemes - which doesn't work. Approach 1: in my init.vim: Plug 'flazz/vim-colorschemes' [...] syntax on colorscheme ...
1
vote
1answer
189 views

ci[ ; bracket recognition fails

i have the following Text in my vim ('|' is my cursor.: "|--------------[ LatexBox ]------------- When i press ci[, nothing happens. I would expect that it doesn't matter where exactly in the line ...
1
vote
0answers
161 views

How to undojoin changes made from neovim remote plugin on TextChanged

I'm writing a remote neovim plugin that automatically inserts parens into the buffer based on http://shaunlebron.github.io/parinfer/ What I'm struggling to figure out is how can I get :undojoin like ...
19
votes
4answers
10k views

How can I use --servername and --remote in neovim?

in vim I can do vim --servername foo and vim --servername foo --remote-silent bar.txt to open files in one instance of vim from several terminal windows (via tmux or whatever). How is the same thing ...
99
votes
8answers
72k views

Exit from Terminal mode in Neovim/Vim 8

I can't figure out how to go back to Normal mode after entering Terminal in Insert mode... Escape just doesn't seem to work. Any idea?
10
votes
5answers
5k views

Use case for neovim terminal emulator?

One big difference of neovim and Vim is that neovim includes a terminal emulator that works asynchronously. However, I fail to see how can I profit from this feature. For what can I use it? Can you ...
3
votes
1answer
597 views

Disable command bar completion list

when I use to autocomplete in neovim, I get two completion lists. The following screenshot was taken with an empty .nvimrc. To reproduce: Open nvim, enter :e, tab <Tab> to get the (in this ...
8
votes
2answers
289 views

How can I make vim stop splitting my words into chunks?

English language users probably don't have this trouble, but vim is pretty dumb when it comes to regular expressions. In my case most letters in the Turkish alphabet outside the EN alphabet don't seem ...
20
votes
4answers
8k views

How to enter insert mode when entering neovim terminal pane?

I have the following mappings to make it easy to move out of a terminal pane in neovim: tnoremap <C-h> <C-\><C-n><C-w>h " Workaround since <C-h> isn't working in neovim ...
5
votes
1answer
2k views

Is it possible to write .nvimrc for NeoVim in Lua?

Is it possible to write .nvimrc for NeoVim in Lua? Is it planned for the future?
17
votes
8answers
27k views

Trouble Using Color Scheme in NeoVim

I don't have a full understanding of how my color scheme is interacting with the term setting in vim and this is impeding my ability to get it to display correctly in neovim. In my .vimrc file, ...
19
votes
4answers
5k views

Send text from one split window to another

Recently there was an add-on to NeoVim which allows opening terminal in a vim buffer. This has appealing possibilities to send text from one vim window to another replicating, for example, a REPL like ...
7
votes
1answer
1k views

Warning when opening commit message with Neovim

I've been using Neovim for a few days with no problem, so I decided to switch my git config to use Neovim instead of vim. Here's what I put in my global .gitconfig: [core] editor = nvim And here'...
4
votes
1answer
1k views

remap not working; <NL> in appears in other binding

I'm trying to remap Control + [hjkl] to navigate among splits, by setting this in my rc file: " splits navigation nnoremap <C-h> <C-w>h nnoremap <C-j> <C-w>j nnoremap <C-k&...
178
votes
5answers
76k views

What is Neovim? How is it different from Vim? And why should I care?

I've been hearing about Neovim; how does it differ from Vim? All the points on the homepage are just architectural changes 'under the hood'. As a user, what's the difference for me?

1
14 15 16 17
18