aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-01 20:12:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-01 20:12:53 +1200
commited366f8bafd284afc2f64b4d1b6433c10405389e (patch)
tree97a70a100b9dadd4f8bd017716f06768db21e620 /vim/vimrc
parentAdd equalalways_resized.vim plugin (diff)
downloaddotfiles-ed366f8bafd284afc2f64b4d1b6433c10405389e.tar.gz
dotfiles-ed366f8bafd284afc2f64b4d1b6433c10405389e.zip
Add longest and menuone to 'completeopt'
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index a1f9b66f..f55f5549 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -58,6 +58,10 @@ silent! set breakindent
" Clear default 'comments' value, let the filetype handle it
set comments=
+" Add completion options
+set completeopt+=longest " Insert longest common substring
+set completeopt+=menuone " Show the menu even if only one match
+
" Try to keep swapfiles in one system-appropriate dir
set directory^=~/.vim/cache/swap//,~/vimfiles/cache/swap//