diff --git a/vim/.vimrc b/vim/.vimrc index 75f368c..2b6355c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -194,7 +194,7 @@ function! TweakSolarized() hi NonText cterm=NONE ctermfg=8 " Status Line - hi StatusLine cterm=NONE ctermbg=0 ctermfg=23 + hi StatusLine cterm=NONE ctermbg=0 ctermfg=166 hi StatusLineNC cterm=NONE ctermbg=0 ctermfg=0 " Misc adjustments @@ -473,7 +473,6 @@ match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$' set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) - " ======================================================== " -> Behavior & Different Tricks " ======================================================== @@ -602,6 +601,8 @@ nnoremap D Orequire 'pry'; binding.pry nnoremap r :TestFile nnoremap j :%!python -m json.tool nnoremap w :w +nnoremap e :e! +nnoremap = = nnoremap :nohlsearch nnoremap ga :Gwrite @@ -655,6 +656,9 @@ cnoremap " ===================================== " TODO: DEAL WITH THIS +" +" this is taken already +" nnoremap = gg=G " TODO: this requires double C-b for some reason nnoremap :Gblame @@ -681,3 +685,11 @@ imap , nnoremap K " K reverse of J " nnoremap K fr + +if exists('$TMUX') + let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" + let &t_EI = "\Ptmux;\\]50;CursorShape=0\x7\\\" +else + let &t_SI = "\]50;CursorShape=1\x7" + let &t_EI = "\]50;CursorShape=0\x7" +endif