diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-01 23:14:54 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-01 23:15:06 +1200 |
commit | 3a5f0bfd84b11846a389bdd4c331f47b69a84116 (patch) | |
tree | 7916d0f201b2cb0f7d60c570abfc9c11a2feb1bb | |
parent | Remove range strip from :& rebind (diff) | |
download | dotfiles-3a5f0bfd84b11846a389bdd4c331f47b69a84116.tar.gz dotfiles-3a5f0bfd84b11846a389bdd4c331f47b69a84116.zip |
Remove conditional around \d,\D maps
-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 |