From e0445597d64920a7992d15fa950d4449149e7cde Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Thu, 2 Feb 2017 09:01:52 -0500 Subject: [PATCH] Fiddled with completion options. Also switched tabs to two spaces by default. If I ever have to use anything else, sleuth will pick it up so whatevs. --- vimrc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/vimrc b/vimrc index 68cfb40..4c5062b 100644 --- a/vimrc +++ b/vimrc @@ -10,20 +10,14 @@ set nocompatible execute pathogen#infect() "{- SUPERTAB -}" - set complete+=kspell - set completeopt=longest,menuone - " Use context sensitive completion to allow filename and omni completion - let g:SuperTabDefaultCompletionType = "context" + let g:SuperTabDefaultCompletionType = "context" " Completion context only lasts for current completion - let g:SuperTabRetainCompletionDuration = "completion" + let g:SuperTabRetainCompletionDuration = "completion" " Use enhanced longest matching completion - let g:SuperTabLongestEnhanced = 1 - - " Attempt to close preview window when the completion finishes - let g:SuperTabClosePreviewOnPopupClose = 1 + let g:SuperTabLongestEnhanced = 1 "{- COMMANDS -}" @@ -53,11 +47,11 @@ set nocompatible filetype plugin on syntax on - " Use four spaces instead of tabs " + " Use two spaces instead of tabs " " Can be overriden by ftplugin and sleuth " - set softtabstop=4 - set shiftwidth=4 - set tabstop=4 + set softtabstop=2 + set shiftwidth=2 + set tabstop=2 set expandtab " Don't redraw the screen unless necessary " @@ -110,6 +104,12 @@ set nocompatible set wildignorecase set wildmode=longest,full + " Enable spelling completion + set complete+=kspell + + " Match the longest completion option then display menu + set completeopt=menuone,longest + " Use UTF-8 " set encoding=utf-8 @@ -131,5 +131,5 @@ set nocompatible " Use the system clipboard when deleting, pasting, or yanking " if has("clipboard") - set clipboard=unnamed + set clipboard=unnamedplus,autoselect endif