From 3a5f0bfd84b11846a389bdd4c331f47b69a84116 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 1 Jul 2018 23:14:54 +1200 Subject: Remove conditional around \d,\D maps --- vim/vimrc | 11 ++++------- 1 file 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 b CopyLinebreakToggle " \c toggles 'cursorcolumn', \C toggles 'cursorline' nnoremap c :set cursorcolumn! cursorcolumn? nnoremap C :set cursorline! cursorline? -" Current date and time insertion commands, requiring POSIX date(1) -if has('unix') - " \d inserts the local date - nnoremap d :read !date - " \D inserts the UTC date - nnoremap D :read !date -u -endif +" \d inserts the local date (POSIX date) +nnoremap d :read !date +" \D inserts the UTC date (POSIX date) +nnoremap D :read !date -u " \f shows the current 'formatoptions' at a glance nnoremap f :set formatoptions? " \g changes directory to the current file's location -- cgit v1.2.3