mirror of
https://github.com/preservim/vim-litecorrect.git
synced 2025-11-14 12:53:47 -05:00
Added option to disable typographic (curly) quotes.
This commit is contained in:
23
plugin/litecorrect.vim
Normal file
23
plugin/litecorrect.vim
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user