From 32b9334fbab0d95e45738b6da72068174a089355 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 22 Jan 2019 10:21:58 -0500 Subject: [PATCH] Minor improvements --- shell/.zshrc | 8 +++----- vim/.vimrc | 4 +++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/.zshrc b/shell/.zshrc index db5de9f..5ddf630 100644 --- a/shell/.zshrc +++ b/shell/.zshrc @@ -343,10 +343,8 @@ function prompt_cmd() { RPS1="$(~/git/cesium/cesium --mode rps1 --rc "$?" --shell zsh)" unset CESIUM_LAST_COMMAND_TIME } -function tmp() { - autoload -Uz add-zsh-hook - precmd_functions+=(prompt_cmd) - add-zsh-hook preexec prompt_pre -} +autoload -Uz add-zsh-hook +precmd_functions+=(prompt_cmd) +add-zsh-hook preexec prompt_pre echo -e '[##]' #zprof diff --git a/vim/.vimrc b/vim/.vimrc index cef43f6..d4d9cfd 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -209,7 +209,9 @@ let g:UltiSnipsJumpForwardTrigger = "" let g:UltiSnipsJumpBackwardTrigger = "" let g:SuperTabDefaultCompletionType = '' -let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '$':'$'} +let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`'} +au FileType php let b:AutoPairs = AutoPairsDefine({'', ''}) +au FileType tex,latex,context,plaintex let b:AutoPairs = AutoPairsDefine({'$': '$'}) "let g:UltiSnipsExpandTrigger="" "let g:UltiSnipsListSnippets=""