Skip to content

Instantly share code, notes, and snippets.

@mroavi
Last active August 10, 2021 13:47
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 mroavi/9da42a083b702e3bfbd9e3bb0f0bf15b to your computer and use it in GitHub Desktop.
Save mroavi/9da42a083b702e3bfbd9e3bb0f0bf15b to your computer and use it in GitHub Desktop.
Template file useful to share a minimalist example of an issue with vim
" test.vim
" usage: nvim --clean -u test.vim
set nocompatible hidden laststatus=2
if !filereadable('/tmp/plug.vim')
silent !curl --insecure -fLo /tmp/plug.vim
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
source /tmp/plug.vim
call plug#begin('/tmp/plugged')
Plug 'nvim-lua/plenary.nvim'
Plug 'lewis6991/gitsigns.nvim'
call plug#end()
autocmd VimEnter * PlugClean! | PlugUpdate --sync | close
lua require('gitsigns').setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment