]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/plugin/text.vim
Move `.vim/autoload/text.vim` -> `.vim/plugin/text.vim`
[dotfiles.git] / .vim / plugin / text.vim
diff --git a/.vim/plugin/text.vim b/.vim/plugin/text.vim
new file mode 100644 (file)
index 0000000..8fc16f7
--- /dev/null
@@ -0,0 +1,12 @@
+function! SearchConflictMarkers()
+   normal /<<<<<<<\|=======\||||||||\|>>>>>>>
+endfunction
+
+function! RemoveTrailingSpaces()
+    %s/ \+$//
+endfunction
+
+function! SqueezeEmptyLines()
+    " Replace multiple consecutive empty lines with just one
+    %s/\n\{3,\}/\r\r/
+endfunction