aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vimrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 8daf1a9..d53317d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -237,7 +237,7 @@ autocmd FileType make call Settings_script()
autocmd FileType matlab call Settings_matlab()
autocmd FileType mips call Settings_mips()
autocmd FileType mkd call Settings_text()
-autocmd FileType perl call Settings_script()
+autocmd FileType perl call Settings_perl()
autocmd FileType php call Settings_html()
autocmd FileType python call Settings_script()
autocmd FileType ruby call Settings_ruby()
@@ -347,6 +347,11 @@ function! Settings_script()
nnoremap <buffer> -- O#<Space>
endfunction
+function! Settings_perl()
+ call Settings_script()
+ inoremap <buffer> {<CR> }<Esc>i{<CR><Esc>O
+endfunction
+
function! Settings_ruby()
call Settings_script()
nnoremap <buffer> <leader>r :execute "silent w !sonic_pi"<CR>