From fb4aec5034cf398285082c8173b45f9267337d6c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 21:34:02 +1300 Subject: Move nrformats.vim content to format.vim --- vim/config/format.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vim/config/format.vim') diff --git a/vim/config/format.vim b/vim/config/format.vim index e1da2d0b..6c71b5ee 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -1,3 +1,7 @@ +" Don't assume a number with a leading zero is octal; it's far more likely a +" zero-padded decimal, so increment and decrement with ^A and ^X on that basis +set nrformats-=octal + " Try to set the 'j' flag for 'formatoptions', to automatically delete comment " leaders when joining lines silent! set formatoptions+=j -- cgit v1.2.3 From 3e29d5a95693a5ffd5e78622f560f415743b0736 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 21:48:23 +1300 Subject: Adjust some whitespace and comment layout --- vim/config/format.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'vim/config/format.vim') diff --git a/vim/config/format.vim b/vim/config/format.vim index 6c71b5ee..97ebcb11 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -34,4 +34,5 @@ if has('user_commands') nnoremap \ t \ :ToggleOptionFlagLocal formatoptions t + endif -- cgit v1.2.3