From 7ab4e9900ce2d6aae2e8b7188c829efd7755f6f7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 20 Dec 2023 14:32:54 +0300 Subject: [PATCH] Move `.vim/autoload/text.vim` -> `.vim/plugin/text.vim` I use these functions quite often, let them be always available. --- .vim/{autoload => plugin}/text.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .vim/{autoload => plugin}/text.vim (61%) 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 -- 2.39.5