aboutsummaryrefslogtreecommitdiff
path: root/vim/config
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-10 21:48:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-10 21:48:23 +1300
commit3e29d5a95693a5ffd5e78622f560f415743b0736 (patch)
tree06f609de84351de9a9faa194b247d431b11301e2 /vim/config
parentMove matchit.vim sourcing into plugin.vim (diff)
downloaddotfiles-3e29d5a95693a5ffd5e78622f560f415743b0736.tar.gz
dotfiles-3e29d5a95693a5ffd5e78622f560f415743b0736.zip
Adjust some whitespace and comment layout
Diffstat (limited to 'vim/config')
-rw-r--r--vim/config/command.vim7
-rw-r--r--vim/config/completion.vim1
-rw-r--r--vim/config/format.vim1
-rw-r--r--vim/config/search.vim1
-rw-r--r--vim/config/spell.vim1
-rw-r--r--vim/config/undo.vim3
-rw-r--r--vim/config/windows.vim1
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 <silent>
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 <silent>
\ <Leader>t
\ :<C-U>ToggleOptionFlagLocal formatoptions t<CR>
+
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 <silent>
\ <Leader>z
\ :<C-U>setlocal spelllang=en_nz spelllang?<CR>
+
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