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/command.vim | 7 ++++--- vim/config/completion.vim | 1 + vim/config/format.vim | 1 + vim/config/search.vim | 1 + vim/config/spell.vim | 1 + vim/config/undo.vim | 3 +++ vim/config/windows.vim | 1 + 7 files changed, 12 insertions(+), 3 deletions(-) diff --git a/vim/config/command.vim b/vim/config/command.vim index a789fd6d..031772e9 100644 --- a/vim/config/command.vim +++ b/vim/config/command.vim @@ -4,6 +4,9 @@ set history=2000 " Always tell me the number of lines changed by a command set report=0 +" Don't write the output of :make to the terminal +set shellpipe=> + " Command-line based features if has('cmdline_info') @@ -15,10 +18,8 @@ if has('cmdline_info') " Show the mode we're using if not normal mode (e.g. --INSERT--) set showmode -endif -" Don't write the output of :make to the terminal -set shellpipe=> +endif " \d inserts the current local date from date(1) nnoremap diff --git a/vim/config/completion.vim b/vim/config/completion.vim index d9db2113..854ffea7 100644 --- a/vim/config/completion.vim +++ b/vim/config/completion.vim @@ -24,4 +24,5 @@ if has('wildmenu') if exists('&wildignorecase') set wildignorecase endif + endif 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 diff --git a/vim/config/search.vim b/vim/config/search.vim index ff243116..69f3f472 100644 --- a/vim/config/search.vim +++ b/vim/config/search.vim @@ -33,4 +33,5 @@ if has('extra_search') \ setlocal hlsearch augroup END endif + endif diff --git a/vim/config/spell.vim b/vim/config/spell.vim index 7775ade9..cbbe17f1 100644 --- a/vim/config/spell.vim +++ b/vim/config/spell.vim @@ -17,4 +17,5 @@ if has('spell') nnoremap \ z \ :setlocal spelllang=en_nz spelllang? + endif diff --git a/vim/config/undo.vim b/vim/config/undo.vim index c31780e7..f85d9d8c 100644 --- a/vim/config/undo.vim +++ b/vim/config/undo.vim @@ -7,6 +7,8 @@ set undolevels=2000 " 'undodir' and 'undofile' settings will be taken care of by the " auto_undodir.vim plugin if applicable/possible if has('persistent_undo') + + " Turn off the option by default set noundofile " Don't keep undo files from temporary directories or shared memory in case @@ -19,4 +21,5 @@ if has('persistent_undo') \ setlocal noundofile augroup END endif + endif diff --git a/vim/config/windows.vim b/vim/config/windows.vim index a54b8997..a0492c76 100644 --- a/vim/config/windows.vim +++ b/vim/config/windows.vim @@ -24,4 +24,5 @@ if has('windows') if has('folding') let &fillchars = 'diff: ,fold: ,vert: ' endif + endif -- cgit v1.2.3