Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Wrap a block of vim code with "try ... endtry"
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Jul 11, 2012
1 parent 18c1904 commit 45241ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ftplugin/vim.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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('f')} = "for \1for: \1 {\r endfor"
let b:surround_{char2nr('e')} = "foreach \1foreach: \1 \r enforeach" let b:surround_{char2nr('e')} = "foreach \1foreach: \1 \r enforeach"
let b:surround_{char2nr('F')} = "function! \1function: \1() \r endfunction" let b:surround_{char2nr('F')} = "function! \1function: \1() \r endfunction"
let b:surround_{char2nr('T')} = "try \r endtry"


let b:outline_pattern = '\<\(function\|command\)\>' let b:outline_pattern = '\<\(function\|command\)\>'


Expand Down

0 comments on commit 45241ef

Please sign in to comment.