From 418b43c5701fe8055772ba71fbef10f963b7808e Mon Sep 17 00:00:00 2001 From: katherine Date: Fri, 21 Apr 2017 17:00:25 -0700 Subject: add auto-completing {} for perl --- .vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.vimrc') 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 -- O# endfunction +function! Settings_perl() + call Settings_script() + inoremap { }i{O +endfunction + function! Settings_ruby() call Settings_script() nnoremap r :execute "silent w !sonic_pi" -- cgit v1.2.3