summaryrefslogtreecommitdiffstats
path: root/dotvimrc
diff options
context:
space:
mode:
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