Skip to content

Commit 43d94f9

Browse files
committed
Make MoveBlock* and MoveLine* functions public callable
1 parent fd60f3f commit 43d94f9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

plugin/move.vim

+16-16
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function! s:ResetCursor()
2626
normal! gv=gv^
2727
endfunction
2828

29-
function! s:MoveBlockDown(start, end, count)
29+
function! MoveBlockDown(start, end, count)
3030
let next_line = a:end + a:count
3131

3232
if v:count > 0
@@ -46,7 +46,7 @@ function! s:MoveBlockDown(start, end, count)
4646
endif
4747
endfunction
4848

49-
function! s:MoveBlockUp(start, end, count)
49+
function! MoveBlockUp(start, end, count)
5050
let prev_line = a:start - a:count - 1
5151

5252
if v:count > 0
@@ -66,7 +66,7 @@ function! s:MoveBlockUp(start, end, count)
6666
endif
6767
endfunction
6868

69-
function! s:MoveLineUp(count) range
69+
function! MoveLineUp(count) range
7070
let distance = a:count + 1
7171

7272
if v:count > 0
@@ -88,7 +88,7 @@ function! s:MoveLineUp(count) range
8888
endif
8989
endfunction
9090

91-
function! s:MoveLineDown(count) range
91+
function! MoveLineDown(count) range
9292
let distance = a:count
9393

9494
if v:count > 0
@@ -109,32 +109,32 @@ function! s:MoveLineDown(count) range
109109
endif
110110
endfunction
111111

112-
function! s:MoveBlockOneLineUp() range
113-
call s:MoveBlockUp(a:firstline, a:lastline, 1)
112+
function! MoveBlockOneLineUp() range
113+
call MoveBlockUp(a:firstline, a:lastline, 1)
114114
endfunction
115115

116-
function! s:MoveBlockOneLineDown() range
117-
call s:MoveBlockDown(a:firstline, a:lastline, 1)
116+
function! MoveBlockOneLineDown() range
117+
call MoveBlockDown(a:firstline, a:lastline, 1)
118118
endfunction
119119

120-
function! s:MoveBlockHalfPageUp() range
120+
function! MoveBlockHalfPageUp() range
121121
let distance = winheight('.') / 2
122-
call s:MoveBlockUp(a:firstline, a:lastline, distance)
122+
call MoveBlockUp(a:firstline, a:lastline, distance)
123123
endfunction
124124

125-
function! s:MoveBlockHalfPageDown() range
125+
function! MoveBlockHalfPageDown() range
126126
let distance = winheight('.') / 2
127-
call s:MoveBlockDown(a:firstline, a:lastline, distance)
127+
call MoveBlockDown(a:firstline, a:lastline, distance)
128128
endfunction
129129

130-
function! s:MoveLineHalfPageUp() range
130+
function! MoveLineHalfPageUp() range
131131
let distance = winheight('.') / 2
132-
call s:MoveLineUp(distance)
132+
call MoveLineUp(distance)
133133
endfunction
134134

135-
function! s:MoveLineHalfPageDown() range
135+
function! MoveLineHalfPageDown() range
136136
let distance = winheight('.') / 2
137-
call s:MoveLineDown(distance)
137+
call MoveLineDown(distance)
138138
endfunction
139139

140140
function! s:MoveKey(key)

0 commit comments

Comments
 (0)