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=""