aboutsummaryrefslogtreecommitdiff
path: root/autoload/put_blank_lines.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-13 22:33:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-13 22:33:20 +1200
commit9d8d72a91a5c6242180bc0b08e5ec789e8026bf1 (patch)
treeadda69137839365d0be14a73b7c1093b4bc0982c /autoload/put_blank_lines.vim
parentMerge branch 'release/v2.0.0' (diff)
parentBump VERSION (diff)
downloadvim-put-blank-lines-9d8d72a91a5c6242180bc0b08e5ec789e8026bf1.tar.gz
vim-put-blank-lines-9d8d72a91a5c6242180bc0b08e5ec789e8026bf1.zip
Merge branch 'hotfix/v2.0.1'v2.0.1
* hotfix/v2.0.1: Bump VERSION Mark autoload function with `abort`
Diffstat (limited to 'autoload/put_blank_lines.vim')
-rw-r--r--autoload/put_blank_lines.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/put_blank_lines.vim b/autoload/put_blank_lines.vim
index c0c835d..2ee8ce8 100644
--- a/autoload/put_blank_lines.vim
+++ b/autoload/put_blank_lines.vim
@@ -1,19 +1,19 @@
-function! put_blank_lines#Above(count)
+function! put_blank_lines#Above(count) abort
set operatorfunc=put_blank_lines#AboveOpfunc
call feedkeys(a:count.'g@l', 'n')
endfunction
-function! put_blank_lines#Below(count)
+function! put_blank_lines#Below(count) abort
set operatorfunc=put_blank_lines#BelowOpfunc
call feedkeys(a:count.'g@l', 'n')
endfunction
-function! put_blank_lines#AboveOpfunc(type)
+function! put_blank_lines#AboveOpfunc(type) abort
silent put! =repeat(nr2char(10), v:count1)
']+1
endfunction
-function! put_blank_lines#BelowOpfunc(type)
+function! put_blank_lines#BelowOpfunc(type) abort
silent put =repeat(nr2char(10), v:count1)
'[-1
endfunction