Remove autocmd to right string white space

This commit is contained in:
2017-11-20 21:17:30 +00:00
parent d494a0f543
commit e049445284
3 changed files with 11 additions and 15 deletions

View File

@@ -9,3 +9,12 @@ function! do#isort()
call system('isort '.expand('%:p'))
edit!
endfunction
" TODO: Make do#rstrip_lines work on a range
function! do#rstrip_lines()
let l:line = line('.')
let l:column = col('.')
execute '%s/\s\+$//e'
nohlsearch
call cursor(l:line, l:column)
endfunction