vimrc + error wc -l, needed awk

This commit is contained in:
inigoortega 2019-12-04 13:15:35 +01:00
parent bccf7c44a4
commit c720d8b825
2 changed files with 3 additions and 3 deletions

4
.vimrc
View File

@ -338,8 +338,8 @@ nmap <expr> ,b TYShowBreak()
nmap <expr> ,bb TYToggleBreakMove()
nmap ,n :w<CR>:!dos2unix %:p<CR>:edit<CR>
nmap ,d :w<CR>:!unix2dos %:p<CR>:edit<CR>
nmap <leader>u :w<CR>:!dos2unix %:p<CR>:edit<CR>
nmap <leader>d :w<CR>:!unix2dos %:p<CR>:edit<CR>
if exists('+colorcolumn')
set colorcolumn=80

View File

@ -2,7 +2,7 @@
[ -z "$1" -o ! -f "$1" ] && exit 1
length="$(wc -l "$1")"
length="$(wc -l "$1" | awk '{print $1}')"
current_video=0
while [ $length -ne $current_video ]