diff --git a/README b/README index 36c33b6..6e765c5 100644 --- a/README +++ b/README @@ -18,3 +18,7 @@ This can be helpfull both developing syntax files, and for determining what some Recommended use with a mapping such as: map -a :call SyntaxAttr() + +If you want to copy the syntax information into register "a" for using in your own syntax files or colorschemes, you could map as follows: + +noremap :let @a = SyntaxAttr() diff --git a/plugin/SyntaxAttr.vim b/plugin/SyntaxAttr.vim index 81a8b0b..79f82ca 100644 --- a/plugin/SyntaxAttr.vim +++ b/plugin/SyntaxAttr.vim @@ -62,4 +62,6 @@ function! SyntaxAttr() endif echo message echohl None + + return message endfunction