aboutsummaryrefslogtreecommitdiffstats
path: root/dotvimrc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-25 04:02:14 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-25 04:02:46 +0100
commita33f86a0e8ff360d432cf360b9c4c782b8a73d84 (patch)
treebe2eadc35dafb5d1d905177376a8cd64f741900f /dotvimrc
parent758d50705a9ce6d6e42b5aed2591944aa3c8d7cb (diff)
downloadvimrc-a33f86a0e8ff360d432cf360b9c4c782b8a73d84.tar.gz
vimrc-a33f86a0e8ff360d432cf360b9c4c782b8a73d84.tar.bz2
vimrc-a33f86a0e8ff360d432cf360b9c4c782b8a73d84.zip
Add QSO logging shortcut
Diffstat (limited to 'dotvimrc')
-rw-r--r--dotvimrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/dotvimrc b/dotvimrc
index e77a53b..32fd275 100644
--- a/dotvimrc
+++ b/dotvimrc
@@ -241,6 +241,20 @@ endfun
noremap <F4> :call MPB_Flip_Ext()<CR>
noremap <Leader>f :call MPB_Flip_Ext()<CR>
+" Added for QSO logging
+function! MPB_Prepend_Time()
+python << endpython
+import vim
+import datetime
+
+now = datetime.datetime.utcnow()
+
+vim.current.line = now.strftime("%Y%m%d %H%M ") + vim.current.line
+endpython
+endfun
+
+noremap <F3> :call MPB_Prepend_Time()<CR>
+
noremap <Leader>m :make -j4<CR>
"Show trailing whitespace