direnv: add add_extra_vimrc hook [skip ci]

* also provide .vimrc-example, it  would be picked up when renamed to
  plain .vimrc
* also add .vimrc to .gitignore as there this .vimrc is supposed to have
  personal editor configurations (it doesn't have to but I am not going
  to impose editor configs on anyone, hence if anyone uses it, it's
  personal)
This commit is contained in:
surtur 2022-05-06 22:38:42 +02:00
parent 2e7d3cf1b1
commit cb391e3851
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
3 changed files with 9 additions and 0 deletions

4
.envrc

@ -1 +1,5 @@
use flake
# ref: https://github.com/direnv/direnv/wiki/Vim
# comment out if not planning to use this
add_extra_vimrc

1
.gitignore vendored

@ -1,3 +1,4 @@
.direnv
result
result-*
.vimrc

4
.vimrc-example Normal file

@ -0,0 +1,4 @@
augroup vimgo_local
au!
au FileType go nmap <leader>gr :term ++hidden ++open nixGL go run -v .<cr>
augroup END