aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:14:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:15:06 +1200
commit3a5f0bfd84b11846a389bdd4c331f47b69a84116 (patch)
tree7916d0f201b2cb0f7d60c570abfc9c11a2feb1bb
parentRemove range strip from :& rebind (diff)
downloaddotfiles-3a5f0bfd84b11846a389bdd4c331f47b69a84116.tar.gz
dotfiles-3a5f0bfd84b11846a389bdd4c331f47b69a84116.zip
Remove conditional around \d,\D maps
-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