diff --git a/.vimrc b/.vimrc index fdef6dd..64545fc 100644 --- a/.vimrc +++ b/.vimrc @@ -23,7 +23,13 @@ else endif let mapleader=" " -nnoremap w yiwq:PI!fd -x cat fzf -q +"nnoremap w yiwq:PIe `~/.shell_aliases ws +"nnoremap w yiw:let srr_back = &srr set srr=>q:PIr! /home/sage/.shell_aliases wf +" TODO Check if file needs saving +" TODO Set and unset srr from within map +set srr=> +nnoremap w yiw:wq:PIr! /home/sage/.shell_aliases wf yyuq:PIe +nnoremap s yiw:wq:PIr! /home/sage/.shell_aliases wf yyuq:PIvsp " " Auto open NERDTree but focus editing window " autocmd VimEnter * NERDTree