From cb391e3851ade79e4ad66651ead292dcd5c7369e Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 6 May 2022 22:38:42 +0200 Subject: [PATCH] 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) --- .envrc | 4 ++++ .gitignore | 1 + .vimrc-example | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 .vimrc-example diff --git a/.envrc b/.envrc index 3550a30..680b5dd 100644 --- a/.envrc +++ b/.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 diff --git a/.gitignore b/.gitignore index bfa09af..faf2871 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .direnv result result-* +.vimrc diff --git a/.vimrc-example b/.vimrc-example new file mode 100644 index 0000000..2eb91dc --- /dev/null +++ b/.vimrc-example @@ -0,0 +1,4 @@ +augroup vimgo_local + au! + au FileType go nmap gr :term ++hidden ++open nixGL go run -v . +augroup END