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