summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-11-20 10:54:48 +0100
committerTobias Klauser <tklauser@distanz.ch>2012-11-20 10:54:48 +0100
commita3ab3d60a4be0126b4c035d11ba006029d592408 (patch)
treeaff84445ee797d7c42d8007fc7e98a34ce2537a4
parent1f2a698c1ad1b4313c4a6d0ba3a2ec9d1f58ee63 (diff)
Use git env vars for Signed-off-by, Acked-by & Copyright macros
-rw-r--r--.vimrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/.vimrc b/.vimrc
index 3328db2..51bcafa 100644
--- a/.vimrc
+++ b/.vimrc
@@ -90,14 +90,14 @@ let mapleader=","
nmap <C-x>n :set invnumber<CR>
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
-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>s ^iSigned-off-by: <C-r>=$GIT_AUTHOR_NAME<CR> <<C-r>=$GIT_AUTHOR_EMAIL<CR>><ESC>^
+map! <C-x>s Signed-off-by: <C-r>=$GIT_AUTHOR_NAME<CR> <<C-r>=$GIT_AUTHOR_EMAIL<CR>><CR>
-map <C-x>a ^iAcked-by: Tobias Klauser <<C-r>=$GIT_AUTHOR_EMAIL<CR>><ESC>^
-map! <C-x>a Acked-by: Tobias Klauser <<C-r>=$GIT_AUTHOR_EMAIL<CR>><CR>
+map <C-x>a ^iAcked-by: <C-r>=$GIT_AUTHOR_NAME<CR> <<C-r>=$GIT_AUTHOR_EMAIL<CR>><ESC>^
+map! <C-x>a Acked-by: <C-r>=$GIT_AUTHOR_NAME<CR> <<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>y ^iCopyright (C) <C-R>=strftime("%Y")<CR> <C-r>=$GIT_AUTHOR_NAME<CR> <<C-r>=$GIT_AUTHOR_EMAIL<CR>><CR><ESC>^
+map! <C-x>y Copyright (C) <C-R>=strftime("%Y")<CR> <C-r>=$GIT_AUTHOR_NAME<CR> <<C-r>=$GIT_AUTHOR_EMAIL<CR>><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>*