Browse files

Colon replacement for surround.vim

I know supporting plugins is a slippery, slippery slope, but if we can
do matchit, why not surround?  This lets you do cs": to change a string
to a symbol.
  • Loading branch information...
1 parent b3af8c4 commit 680d1eaafc693017318267b6eb08eb889252c0aa @tpope tpope committed Dec 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 ftplugin/ruby.vim
@@ -41,6 +41,10 @@ if exists("loaded_matchit") && !exists("b:match_words")
\ "InstanceVariable\\|GlobalVariable\\|Symbol\\)\\>'"
+if exists('g:loaded_surround') && !exists('b:surround_'.char2nr(':'))
+ let b:surround_{char2nr(':')} = ":\r"
setlocal formatoptions-=t formatoptions+=croql
setlocal include=^\\s*\\<\\(load\\>\\\|require\\>\\\|autoload\\s*:\\=[\"']\\=\\h\\w*[\"']\\=,\\)

0 comments on commit 680d1ea

Please sign in to comment.