Updated plugins

This commit is contained in:
amix committed 2016-04-12 09:31:09 +01:00
1 parent ad875b0e0a
commit 5f6aa8fe09
54 files changed
+1236 -291

No files matched your search

@@ -101,6 +101,18 @@ function! go#util#OffsetCursor()
return go#util#Offset(line('.'), col('.'))
endfunction
" Windo is like the built-in :windo, only it returns to the window the command
" was issued from
function! go#util#Windo(command)
let s:currentWindow = winnr()
try
execute "windo " . a:command
finally
execute s:currentWindow. "wincmd w"
unlet s:currentWindow
endtry
endfunction
" TODO(arslan): I couldn't parameterize the highlight types. Check if we can
" simplify the following functions