From: Oleg Broytman Date: Wed, 20 Dec 2023 11:32:54 +0000 (+0300) Subject: Move `.vim/autoload/text.vim` -> `.vim/plugin/text.vim` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7ab4e9900ce2d6aae2e8b7188c829efd7755f6f7;p=dotfiles.git Move `.vim/autoload/text.vim` -> `.vim/plugin/text.vim` I use these functions quite often, let them be always available. --- diff --git a/.vim/autoload/text.vim b/.vim/plugin/text.vim similarity index 61% rename from .vim/autoload/text.vim rename to .vim/plugin/text.vim index 16e6c34..8fc16f7 100644 --- a/.vim/autoload/text.vim +++ b/.vim/plugin/text.vim @@ -1,12 +1,12 @@ -function! text#SearchConflictMarkers() +function! SearchConflictMarkers() normal /<<<<<<<\|=======\||||||||\|>>>>>>> endfunction -function! text#RemoveTrailingSpaces() +function! RemoveTrailingSpaces() %s/ \+$// endfunction -function! text#SqueezeEmptyLines() +function! SqueezeEmptyLines() " Replace multiple consecutive empty lines with just one %s/\n\{3,\}/\r\r/ endfunction