aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-04-21 17:00:25 -0700
committerkatherine <shmibs@shmibbles.me>2017-04-21 17:00:25 -0700
commit418b43c5701fe8055772ba71fbef10f963b7808e (patch)
tree8432adcff8188fd2ec037d9e714fffaad9f6f184
parentd64cb23f569de11b7db966cd46305c663b692f79 (diff)
downloaddotfiles-418b43c5701fe8055772ba71fbef10f963b7808e.tar.gz
add auto-completing {} for perl
-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>