From d49165685e713242c263fceeef8db4d3f0ab6e99 Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Sat, 25 Mar 2017 10:21:33 +0800 Subject: [PATCH] stuff --- vim/settings/rails.vim | 1 + zsh/aliases.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/vim/settings/rails.vim b/vim/settings/rails.vim index 7d47fe9..ab673d2 100644 --- a/vim/settings/rails.vim +++ b/vim/settings/rails.vim @@ -1,3 +1,4 @@ " Better key maps for switching between controller and view nnoremap ,vv :Eview nnoremap ,cc :Econtroller +nnoremap ,hc :%s/:\([^=,'"]*\) =>/\1:/gc diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 8a146f6..b5ff094 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -246,3 +246,4 @@ alias sshfab="ssh -F ~/Projects/rallets-fabric/.ssh/config" alias chrome_proxy="google-chrome --proxy-server='http://127.0.0.1:8118'" alias ls_folder_size="du -sch .[!.]* * |sort -h" alias top_by_memory="top -o %MEM" +alias gcaa="gia .; gcF"