aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc11
1 files changed, 4 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b52a5368..b4769216 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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