diff --git a/bash/.bashrc b/bash/.bashrc index 69e126b..05e3b8e 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -55,6 +55,8 @@ alias gl='git lg' alias gr='git reset' alias gh='git lg -1' +alias ss='spring stop' + alias rdc='bin/rails db:create' alias rdd='bin/rails db:drop' alias rdm='bin/rails db:migrate' diff --git a/vim/.vimrc b/vim/.vimrc index 2b6355c..f9cca3c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -471,7 +471,7 @@ set conceallevel=2 " Highlight VCS conflict markers match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$' -set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) +set statusline=%<%f " ======================================================== " -> Behavior & Different Tricks @@ -599,6 +599,7 @@ nnoremap t :tabnew nnoremap d orequire 'pry'; binding.pry nnoremap D Orequire 'pry'; binding.pry nnoremap r :TestFile +nnoremap R :TestSuite nnoremap j :%!python -m json.tool nnoremap w :w nnoremap e :e! @@ -663,6 +664,8 @@ cnoremap " TODO: this requires double C-b for some reason nnoremap :Gblame +nnoremap :%s//g + " ,rh -> hashrocket to : TODO: think about it " nnoremap rh :%s/\v:(\w+) \=\>/\1:/g @@ -693,3 +696,6 @@ else let &t_SI = "\]50;CursorShape=1\x7" let &t_EI = "\]50;CursorShape=0\x7" endif + +" replace the word under the cursor +nnoremap S :%s/\<\>//g