diff options
-rw-r--r-- | vim/vimrc | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -228,13 +228,10 @@ nmap <Leader>b <Plug>CopyLinebreakToggle " \c toggles 'cursorcolumn', \C toggles 'cursorline' nnoremap <Bslash>c :<C-U>set cursorcolumn! cursorcolumn?<CR> nnoremap <Bslash>C :<C-U>set cursorline! cursorline?<CR> -" Current date and time insertion commands, requiring POSIX date(1) -if has('unix') - " \d inserts the local date - nnoremap <Bslash>d :<C-U>read !date<CR> - " \D inserts the UTC date - nnoremap <Bslash>D :<C-U>read !date -u<CR> -endif +" \d inserts the local date (POSIX date) +nnoremap <Bslash>d :<C-U>read !date<CR> +" \D inserts the UTC date (POSIX date) +nnoremap <Bslash>D :<C-U>read !date -u<CR> " \f shows the current 'formatoptions' at a glance nnoremap <Bslash>f :<C-U>set formatoptions?<CR> " \g changes directory to the current file's location |