Skip to content
Browse files

Wrap a block of vim code with "try ... endtry"

  • Loading branch information...
1 parent 18c1904 commit 45241efed3f15a9406f2f61e9e65e7924a0b1809 @AndrewRadev committed Jul 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 ftplugin/vim.vim
View
1 ftplugin/vim.vim
@@ -5,6 +5,7 @@ let b:surround_{char2nr('w')} = "while \1while: \1 \r endwhile"
let b:surround_{char2nr('f')} = "for \1for: \1 {\r endfor"
let b:surround_{char2nr('e')} = "foreach \1foreach: \1 \r enforeach"
let b:surround_{char2nr('F')} = "function! \1function: \1() \r endfunction"
+let b:surround_{char2nr('T')} = "try \r endtry"
let b:outline_pattern = '\<\(function\|command\)\>'

0 comments on commit 45241ef

Please sign in to comment.
Something went wrong with that request. Please try again.