Skip to content

Instantly share code, notes, and snippets.

@ianchanning
Created February 23, 2023 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianchanning/8fa093a85647eb739ba57d1cf93907a7 to your computer and use it in GitHub Desktop.
Save ianchanning/8fa093a85647eb739ba57d1cf93907a7 to your computer and use it in GitHub Desktop.
neovim init file that splits VS Code and neovim .vimrc files
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
if exists('g:vscode')
" VSCode extension
source ~/.vimrc.vscode
else
" ordinary Neovim
source ~/.vimrc
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment