diff options
author | katherine <shmibs@shmibbles.me> | 2017-04-21 17:00:25 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2017-04-21 17:00:25 -0700 |
commit | 418b43c5701fe8055772ba71fbef10f963b7808e (patch) | |
tree | 8432adcff8188fd2ec037d9e714fffaad9f6f184 | |
parent | d64cb23f569de11b7db966cd46305c663b692f79 (diff) | |
download | dotfiles-418b43c5701fe8055772ba71fbef10f963b7808e.tar.gz |
add auto-completing {} for perl
-rw-r--r-- | .vimrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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> |