diff --git a/vim/vimrc b/vim/vimrc index 485ea65..9639c6b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -188,6 +188,14 @@ let Tlist_Ctags_Cmd="ctags" " Doxygen let g:DoxygenToolkit_authorName="Guillaume DOTT" + +autocmd FileType ruby let b:switch_custom_definitions = + \ [ + \ { + \ 'lambda { |\([^|]\+\)|': '->(\1) {', + \ '->(\([^)]\+\)) {': 'lambda { |\1|', + \ }, + \ ] " } " FILETYPES