summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-14 00:29:48 -0500
committerJune McEnroe <june@causal.agency>2018-11-14 00:29:48 -0500
commit8e9e41b0613a8ea11b470ee44811612cc66d8094 (patch)
tree909ce3d9fc790e2a60e03630624be328350411c9
parentAdd Chromatics — Running Up That Hill (diff)
downloadsrc-8e9e41b0613a8ea11b470ee44811612cc66d8094.tar.gz
src-8e9e41b0613a8ea11b470ee44811612cc66d8094.zip
Add \l binding to insert AGPL comment
-rw-r--r--etc/agpl.c15
-rw-r--r--home/.config/nvim/init.vim1
2 files changed, 16 insertions, 0 deletions
diff --git a/etc/agpl.c b/etc/agpl.c
new file mode 100644
index 00000000..e2ac6005
--- /dev/null
+++ b/etc/agpl.c
@@ -0,0 +1,15 @@
+/* Copyright (C) 2018  June McEnroe <june@causal.agency>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 35f133ab..8dee0fb3 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -28,3 +28,4 @@ let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}
 nmap <leader>s vip:sort<CR>
 nmap <leader>h :$?^#include <<CR>:nohlsearch<CR>vip:sort<CR>
 nmap <leader>a :$?^#include <<CR>:nohlsearch<CR>o#include <
+nmap <leader>l :0read ~/src/etc/agpl.c<CR>''