X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=58f8255ba35bc97a34bed9861af4d8a2c005b4ab;hb=987c21635e8105c3927e1ab9d80d15aaf50a71fd;hp=ed6ce3b1f7882d0b345eefc8749deccb879926d6;hpb=ae1617edc6d3d33217969a46b8eabb891e4bf1c8;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index ed6ce3b..58f8255 100644 --- a/vimrc +++ b/vimrc @@ -70,13 +70,20 @@ if exists('+wildignorecase') set wildignorecase endif -" Increase history of executed commands (:). +" Show completion menu even if only one entry matches. +if exists('+completeopt') + set completeopt+=menuone +endif + +" Increase history of executed commands (:) and search patterns (/). set history=1000 " Increase number of possible undos. set undolevels=1000 -" Remember marks (including the last cursor position) for more files. +" Remember marks (including the last cursor position) for more files. ^= is +" necessary because 'viminfo' is parsed from the beginning and the first match +" is used. if has('viminfo') set viminfo^='1000 endif @@ -87,7 +94,7 @@ if exists('+cryptmethod') endif " Clear all vimrc-related autocmds. Has to be done here as the vimrc augroup -" is used multiple times. +" is used multiple times. Necessary to support reloading the vimrc. if has('autocmd') augroup vimrc autocmd! @@ -170,7 +177,7 @@ endif set virtualedit=block " Already display matches while typing the search command. This makes spotting -" errors easy. +" typos easy and searching faster. set incsearch " Activate syntax folding. @@ -200,7 +207,7 @@ endif " Allow buffers with changes to be hidden. Very important for effective " editing with multiple buffers. Prevents the "E37: No write since last change -" (add ! to override)" warning. +" (add ! to override)" warning when switching buffers. set hidden