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:
parent
4a6381eaa9
commit
e0445597d6
22
vimrc
22
vimrc
@ -10,9 +10,6 @@ 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"
|
||||
|
||||
@ -22,9 +19,6 @@ set nocompatible
|
||||
" Use enhanced longest matching completion
|
||||
let g:SuperTabLongestEnhanced = 1
|
||||
|
||||
" Attempt to close preview window when the completion finishes
|
||||
let g:SuperTabClosePreviewOnPopupClose = 1
|
||||
|
||||
"{- COMMANDS -}"
|
||||
|
||||
" Remove blank lines "
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user