save all files when running tests in vim

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-05-15 22:16:29 +02:00
parent 850cd8671e
commit 3e9bb6a8df

10
.vimrc
View file

@ -11,15 +11,11 @@ set hidden
" file settings
set encoding=utf-8
" plugins
execute pathogen#infect()
filetype plugin indent on
" key mappings
let mapleader = ","
nmap <leader>p :set paste!<CR>
nmap <leader>h :set hlsearch!<CR>
nmap <leader>t :w <bar> :Make test<CR>
nmap <leader>t :wa <bar> :Make test<CR>
" navigate buffers by ctrl-b
nmap <C-b> :bprevious<CR>
@ -48,6 +44,10 @@ set softtabstop=4
set shiftwidth=4
set expandtab
" plugins
execute pathogen#infect()
filetype plugin indent on
" colours [need pathogen]
set t_Co=256
syntax enable