diff --git a/vimrc b/vimrc index b3ef1f1..a28dfc2 100644 --- a/vimrc +++ b/vimrc @@ -181,19 +181,25 @@ let mapleader=',' " strip all trailing whitespace in the current file nnoremap W :call StripTrailingWhitespace() " edit and source my .vimrc -nmap ev :e $MYVIMRC -nmap sv :so $MYVIMRC +nmap ev :tabnew $MYVIMRC +nmap sv :source $MYVIMRC " hide search terms -nmap :nohlsearch +nmap :nohlsearch " find all nmap fa :%s/\v nmap sn :e ~/.vim/bundle/snipmate/snippets/=&filetype.snippets +" Command-T should open files in tabs when I hit ; move opening files in +" buffers to +let g:CommandTAcceptSelectionMap='' +let g:CommandTAcceptSelectionTabMap='' if has('autocmd') filetype plugin indent on + autocmd BufAdd,BufEnter,BufFilePost *.md :set ft=markdown + " Jump to last known cursor position unless it's the first line, or past the " end of the file autocmd BufReadPost *