vim: Improve command-line completion

Turn on wildmenu (Default in neovim).
Let vim first complete the longest common string between matches before
seleting full matches. (Similar to completion done by bash or zsh)
This commit is contained in:
2020-10-10 00:22:24 +02:00
parent 646d1bc7c4
commit 4fafd8a99a

View File

@@ -49,6 +49,14 @@ endif
set copyindent
" Show ruler at 80 and 100 columns
set colorcolumn=80,100
" Show menu for possible matches when using command-line completing.
if (has('wildmenu'))
set wildmenu
endif
" Command-line completion tab behavior:
" First: Complete longest common string and show wildmenu
" Second: Complete each full match (Cycle through the menu)
set wildmode=longest:full,full
" Keybindings ##################################################################
" Set leader key