vimrc + error wc -l, needed awk
This commit is contained in:
parent
bccf7c44a4
commit
c720d8b825
4
.vimrc
4
.vimrc
|
@ -338,8 +338,8 @@ nmap <expr> ,b TYShowBreak()
|
||||||
nmap <expr> ,bb TYToggleBreakMove()
|
nmap <expr> ,bb TYToggleBreakMove()
|
||||||
|
|
||||||
|
|
||||||
nmap ,n :w<CR>:!dos2unix %:p<CR>:edit<CR>
|
nmap <leader>u :w<CR>:!dos2unix %:p<CR>:edit<CR>
|
||||||
nmap ,d :w<CR>:!unix2dos %:p<CR>:edit<CR>
|
nmap <leader>d :w<CR>:!unix2dos %:p<CR>:edit<CR>
|
||||||
|
|
||||||
if exists('+colorcolumn')
|
if exists('+colorcolumn')
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[ -z "$1" -o ! -f "$1" ] && exit 1
|
[ -z "$1" -o ! -f "$1" ] && exit 1
|
||||||
|
|
||||||
length="$(wc -l "$1")"
|
length="$(wc -l "$1" | awk '{print $1}')"
|
||||||
|
|
||||||
current_video=0
|
current_video=0
|
||||||
while [ $length -ne $current_video ]
|
while [ $length -ne $current_video ]
|
||||||
|
|
Loading…
Reference in a new issue