question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

init.vim not being loaded

See original GitHub issue

I don’t know why, but it seems that my init.vim is being completely ignored…

VSCode settings.json:

{
  "vscode-neovim.neovimExecutablePaths.linux": "/usr/bin/nvim",
  "vscode-neovim.neovimInitVimPaths.linux": "/home/igor/.config/nvim/init.vim", 
}

/home/igor/.config/nvim/init.vim

set number    
set relativenumber    
     
nnoremap <C-d> <C-d>zz    
nnoremap <C-u> <C-u>zz    

Expected behavior:

  • relative line numbers
  • ctrl D and ctrl U centered

https://user-images.githubusercontent.com/85039990/205973336-c55df905-a35a-415a-909f-3454dffe5bdb.mp4

Actual behavior:

  • default line numbers
  • crazy ctrl D and ctrl U

https://user-images.githubusercontent.com/85039990/205973386-37abb5d4-d439-4e7b-8913-e8655d97e92b.mp4

nvim version: 0.8.1 (snap) VSCode version: 1.73.1

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
ThePrimeagencommented, Dec 7, 2022

i have been summoned and i am happy to see such wonder remaps in play! May the coconut oil flow as if its 85 degrees in your room.

2reactions
MNThomsoncommented, Dec 6, 2022

Whoops, didn’t mean to actually ping Prime. He mentioned the <C-u>zz remap in a recent video @theol0403 : Vim As Your Editor - Vertical Movements

Read more comments on GitHub >

github_iconTop Results From Across the Web

NeoVim not loading init.vim file - Stack Overflow
Try to run Neovim with -V option, which will dump the startup log to the given file: nvim -V /tmp/nvim.log. Then open the...
Read more >
NeoVim not loading init.vim - Reddit
Try using the :version command. One of the things it will tell you is what files it loaded during setup. If your new...
Read more >
Issues - GitHub
I have a weird problem with neovim-dot-app. When I launch it, I get a completely "naked" (no colors, no plugins, no settings) instance....
Read more >
How can I get neovim to load my init.vim file when in sudo ...
If I run neovim as sudo nvim instead, then I can write to the file but my init.vim file is not being loaded...
Read more >
Starting - Neovim docs
7. Load user config (execute Ex commands from files, environment, …). $VIMINIT environment variable is read as one Ex command line (separate multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found