Windows support.

This commit is contained in:
Gabriel Ebner 2013-12-29 18:32:58 +01:00
parent 6b0e49ef47
commit 191e85013a
3 changed files with 27 additions and 6 deletions

@ -6,16 +6,29 @@ FILES2 = msmtprc
all: $(FILES)
ifeq ($(OS),Windows_NT)
install:
mkdir -p $(HOME)\vimfiles\autoload
cp gitconfig $(HOME)\.gitconfig
cp vimrc $(HOME)\_vimrc
cp gvimrc $(HOME)\_gvimrc
cp vim-pathogen/autoload/pathogen.vim $(HOME)\vimfiles\autoload
else
install: $(FILES)
mkdir -p ~/.ssh ~/.vim/autoload
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
for i in $(FILES2); do install -m0600 $$i ~/.$$i; done
install -m0644 vim-pathogen/autoload/pathogen.vim ~/.vim/autoload/
clean:
check: $(FILES)
for i in $(FILES); do diff -u ~/.$$i $$i; done
endif
clean:
%: %.m4
m4 $< >$@

8
gvimrc

@ -1,2 +1,8 @@
set bg=light
colors jellybeans
set guicursor+=a:blinkon0
if has('win32') || has('win64')
set guifont=Consolas:h11
else
set guifont=Monospace\ 8
endif

8
vimrc

@ -1,5 +1,4 @@
set tw=0 ts=8 sts=2 sw=2 sm ai si
"set gfn=Monospace\ 8 " use Monospace at 8pt
set tw=0 expandtab ts=8 sts=2 sw=2 sm ai si
set ml mls=5 " scan 5 lines for modelines
syn on " enable syntax highlighting
set hls " highlight search
@ -15,6 +14,9 @@ au BufNewFile,BufRead *.i set ft=swig
au BufNewFile,BufRead *.factor set ft=factor
au BufNewFile,BufRead Gemfile set ft=ruby
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
au BufNewFile,BufRead *.cabal,*.hamlet,*.hs set expandtab
execute pathogen#infect()
set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
set nobackup
se bs=2