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.
This commit is contained in:
Andrew R. M 2017-02-02 09:01:52 -05:00
parent 4a6381eaa9
commit e0445597d6

22
vimrc
View File

@ -10,9 +10,6 @@ set nocompatible
execute pathogen#infect() execute pathogen#infect()
"{- SUPERTAB -}" "{- SUPERTAB -}"
set complete+=kspell
set completeopt=longest,menuone
" Use context sensitive completion to allow filename and omni completion " Use context sensitive completion to allow filename and omni completion
let g:SuperTabDefaultCompletionType = "context" let g:SuperTabDefaultCompletionType = "context"
@ -22,9 +19,6 @@ set nocompatible
" Use enhanced longest matching completion " Use enhanced longest matching completion
let g:SuperTabLongestEnhanced = 1 let g:SuperTabLongestEnhanced = 1
" Attempt to close preview window when the completion finishes
let g:SuperTabClosePreviewOnPopupClose = 1
"{- COMMANDS -}" "{- COMMANDS -}"
" Remove blank lines " " Remove blank lines "
@ -53,11 +47,11 @@ set nocompatible
filetype plugin on filetype plugin on
syntax on syntax on
" Use four spaces instead of tabs " " Use two spaces instead of tabs "
" Can be overriden by ftplugin and sleuth " " Can be overriden by ftplugin and sleuth "
set softtabstop=4 set softtabstop=2
set shiftwidth=4 set shiftwidth=2
set tabstop=4 set tabstop=2
set expandtab set expandtab
" Don't redraw the screen unless necessary " " Don't redraw the screen unless necessary "
@ -110,6 +104,12 @@ set nocompatible
set wildignorecase set wildignorecase
set wildmode=longest,full 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 " " Use UTF-8 "
set encoding=utf-8 set encoding=utf-8
@ -131,5 +131,5 @@ set nocompatible
" Use the system clipboard when deleting, pasting, or yanking " " Use the system clipboard when deleting, pasting, or yanking "
if has("clipboard") if has("clipboard")
set clipboard=unnamed set clipboard=unnamedplus,autoselect
endif endif