diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim index bbe546d..737a90d 100644 --- a/autoload/ale/debugging.vim +++ b/autoload/ale/debugging.vim @@ -107,3 +107,11 @@ function! ale#debugging#Info() abort echom '' call s:EchoCommandHistory() endfunction + +function! ale#debugging#InfoToClipboard() abort + redir @+> + silent call ale#debugging#Info() + redir END + + echom 'ALEInfo copied to your clipboard' +endfunction diff --git a/plugin/ale.vim b/plugin/ale.vim index 7074e46..13cbdce 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -199,6 +199,8 @@ command! ALEToggle :call s:ALEToggle() " Define command to get information about current filetype. command! ALEInfo :call ale#debugging#Info() +" The same, but copy output to your clipboard. +command! ALEInfoToClipboard :call ale#debugging#InfoToClipboard() " mappings for commands nnoremap (ale_previous) :ALEPrevious