From 59249b79e20dc333f972fc55c097c113c596f253 Mon Sep 17 00:00:00 2001 From: jimi Date: Wed, 13 Oct 2010 18:07:34 -0500 Subject: [PATCH] Install and configure tpope's surround plugin --- .gitmodules | 3 +++ bundle/surround | 1 + vimrc | 5 +++++ 3 files changed, 9 insertions(+) create mode 160000 bundle/surround diff --git a/.gitmodules b/.gitmodules index e52a914..c3088c0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "bundle/fugitive"] path = bundle/fugitive url = git://github.com/tpope/vim-fugitive.git +[submodule "bundle/surround"] + path = bundle/surround + url = git://github.com/tpope/vim-surround.git diff --git a/bundle/surround b/bundle/surround new file mode 160000 index 0000000..27710a2 --- /dev/null +++ b/bundle/surround @@ -0,0 +1 @@ +Subproject commit 27710a2224d6dd0486d1c40d09ef18dd752e7d37 diff --git a/vimrc b/vimrc index 53d3686..ac1a553 100644 --- a/vimrc +++ b/vimrc @@ -26,3 +26,8 @@ if has("gui_running") set co=115 set lines=40 endif + +" Settings for tpope's surround plugin +let g:surround_45 = "<% \r -%>" +let g:surround_61 = "<%= \r %>" +autocmd FileType php let b:surround_45 = ""