This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
leviolson
/
vim-makecols
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
adding features
master
lolson
9 years ago
parent
badd3f2429
commit
877a469688
1 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
plugin/makecols.vim
+ 2
- 1
plugin/makecols.vim
View File
@ -74,12 +74,13 @@ function! s:convert_selection_vert()
let
c
=
0
let
c
=
0
let
new_string
=
""
let
new_string
=
""
let
list
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
]
let
list
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
]
let
cols
=
g
:
makecols_cols
let
selection
=
s
:
get_visual_selection
(
)
let
selection
=
s
:
get_visual_selection
(
)
let
old_selection
=
split
(
selection
,
","
)
let
old_selection
=
split
(
selection
,
","
)
let
lines
=
len
(
old_selection
)
*
1
.
0
let
lines
=
len
(
old_selection
)
*
1
.
0
let
rows
=
(
lines
/
g
:
makecols_cols
)
*
1
.
0
let
rows
=
(
lines
/
g
:
makecols_cols
)
*
1
.
0
let
rows
=
float2nr
(
ceil
(
rows
)
)
let
rows
=
float2nr
(
ceil
(
rows
)
)
let
cols
=
list
[
"g:makecols_cols"
:]
let
cols
=
list
[
cols
:]
echom
string
(
cols
)
echom
string
(
cols
)
let
@
z
=
""
let
@
z
=
""
Write
Preview
Loading…
Cancel
Save