summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-08-16 15:45:34 +0200
committerTobias Klauser <tklauser@distanz.ch>2010-08-16 15:45:34 +0200
commit463e52d1c0c5c3f7c748a95e9e9609145b5b315d (patch)
tree4b6bfd654edf5d8df5dbdd44d984c2515a35d828
parentc7858ba21dc6f9fbb50aecf65ec7a45165fdc1ec (diff)
Add mapping to insert copyright line
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 59cb5ff..d56d0f4 100644
--- a/.vimrc
+++ b/.vimrc
@@ -91,6 +91,9 @@ highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE gui
map <C-x>s ^iSigned-off-by: Tobias Klauser <<C-r>=$GIT_AUTHOR_EMAIL<CR>><ESC>^
map! <C-x>s Signed-off-by: Tobias Klauser <<C-r>=$GIT_AUTHOR_EMAIL<CR>><CR>
+map <C-x>y ^iCopyright (C) <C-R>=strftime("%Y")<CR> Tobias Klauser <tklauser@distanz.ch><CR><ESC>^
+map! <C-x>y Copyright (C) <C-R>=strftime("%Y")<CR> Tobias Klauser <tklauser@distanz.ch><CR>
+
map <C-x>c i<C-R>=strftime("%F %R")<CR> Tobias Klauser <tklauser@distanz.ch><CR><TAB>* <ESC>
map! <C-x>c <C-R>=strftime("%F %R")<CR> Tobias Klauser <tklauser@distanz.ch><CR><TAB>*