Added support for proclike textobjects

Closes #10
This commit is contained in:
baabelfish 2016-02-07 16:28:33 +02:00
commit 76e54f8ad5
4 changed files with 52 additions and 3 deletions

View file

@ -60,7 +60,7 @@ function! modules#GetImports()
let [begin, end] = modules#ImportLineRange()
let lines = getline(begin, end)
return filter(split(substitute(join(lines, ""), ",", "", "g"), " "), 'v:val !~ "^ *$"')[1:-1]
return sort(filter(split(substitute(join(lines, ""), ",", "", "g"), " "), 'v:val !~ "^ *$"')[1:-1])
endfunction
function! modules#ImportMap(imports)