diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index c7fa30a..5560fcc 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -139,6 +139,10 @@ left side (||cl) or both sides (||cb). [count]||cu |NERDComUncommentLine| Uncomments the selected line(s). + +With the optional repeat.vim plugin (vimscript #2136), the mappings can also +be repeated via |.| + ------------------------------------------------------------------------------ 3.2 Functionality details *NERDComFunctionalityDetails* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 084e2a9..6afa6c5 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -1128,6 +1128,8 @@ function! NERDComment(mode, type) range endif let &ignorecase = oldIgnoreCase + + silent! call repeat#set("\NERDCommenter". a:type) endfunction " Function: s:PlaceDelimitersAndInsBetween() function {{{2