aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/quote.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-09 00:34:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-09 00:34:44 +1200
commit91220b6858bfcdd360b78cb1c4a36ab59cf82421 (patch)
tree891a9decc34e3598bc19c92767dd7b40bc3387dd /vim/autoload/quote.vim
parentRemove unnecessary g: prefixes to Vim variables (diff)
downloaddotfiles-91220b6858bfcdd360b78cb1c4a36ab59cf82421.tar.gz
dotfiles-91220b6858bfcdd360b78cb1c4a36ab59cf82421.zip
Remove unnecessary l: prefixes to Vim variables
Diffstat (limited to 'vim/autoload/quote.vim')
-rw-r--r--vim/autoload/quote.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/vim/autoload/quote.vim b/vim/autoload/quote.vim
index 2343b12a..b84a87e8 100644
--- a/vim/autoload/quote.vim
+++ b/vim/autoload/quote.vim
@@ -10,27 +10,27 @@ endfunction
function! quote#QuoteOpfunc(type) abort
" May as well make this configurable
- let l:char = exists('b:quote_char')
+ let char = exists('b:quote_char')
\ ? b:quote_char
\ : '>'
" Iterate over each matched line
- for l:li in range(line('''['), line(''']'))
+ for li in range(line('''['), line(''']'))
" Get current line text
- let l:cur = getline(l:li)
+ let cur = getline(li)
" Don't quote the first or last lines if they're blank
- if !strlen(l:cur) && (l:li == line('''[') || l:li == line(''']'))
+ if !strlen(cur) && (li == line('''[') || li == line(''']'))
continue
endif
" Only add a space after the quote character if this line isn't already
" quoted with the same character
- let l:new = l:cur[0] == l:char
- \ ? l:char.l:cur
- \ : l:char.' '.l:cur
- call setline(l:li, l:new)
+ let new = cur[0] == char
+ \ ? char.cur
+ \ : char.' '.cur
+ call setline(li, new)
endfor