Added option to disable typographic (curly) quotes.

This commit is contained in:
Reed Esau
2014-02-04 01:01:06 -07:00
parent 3df19f9fdf
commit bf70b0d893
3 changed files with 44 additions and 1 deletions

23
plugin/litecorrect.vim Normal file
View File

@@ -0,0 +1,23 @@
" =============================================================================
" File: plugin/litecorrect.vim
" Description: lightweight autocorrection for Vim
" Maintainer: Reed Esau <github.com/reedes>
" Created: January 20, 2014
" License: The MIT License (MIT)
" =============================================================================
if exists('g:loaded_litecorrect') || &cp | finish | endif
let g:loaded_litecorrect = 1
" Save 'cpoptions' and set Vim default to enable line continuations.
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:litecorrect#typographic')
let g:litecorrect#typographic = 1 " 0=disable, 1=enable
endif
let &cpo = s:save_cpo
unlet s:save_cpo
" vim:ts=2:sw=2:sts=2