diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-25 04:02:14 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-25 04:02:46 +0100 |
commit | a33f86a0e8ff360d432cf360b9c4c782b8a73d84 (patch) | |
tree | be2eadc35dafb5d1d905177376a8cd64f741900f /dotvimrc | |
parent | 758d50705a9ce6d6e42b5aed2591944aa3c8d7cb (diff) | |
download | vimrc-a33f86a0e8ff360d432cf360b9c4c782b8a73d84.tar.gz vimrc-a33f86a0e8ff360d432cf360b9c4c782b8a73d84.tar.bz2 vimrc-a33f86a0e8ff360d432cf360b9c4c782b8a73d84.zip |
Add QSO logging shortcut
Diffstat (limited to 'dotvimrc')
-rw-r--r-- | dotvimrc | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |