diff --git a/.bashrc b/.bashrc index c35f09e..6752327 100644 --- a/.bashrc +++ b/.bashrc @@ -1,4 +1,4 @@ -PATH="$PATH":/Users/RYK6U0327/isrb2 -export PATH="$PATH:"/Applications/microchip/xc8/v1.35/bin"" alias vv="g++ --std=c++11 -O2 -Wall" alias ls='ls -G' +export PATH="$PATH:"/Applications/microchip/xc8/v1.35/bin"" +export PATH=$PATH:/usr/local/share/git-core/contrib/diff-highlight diff --git a/.vimrc b/.vimrc index 7baddb1..0dfe1c5 100644 --- a/.vimrc +++ b/.vimrc @@ -22,6 +22,7 @@ set tabstop=4 set whichwrap=b,s,h,l,<,>,[,] autocmd BufWritePre * :%s/\s\+$//ge autocmd BufWritePre * :%s/\t/ /ge + "--------------------------------------------------------------------------- " history if !isdirectory(expand("~/.vim/backupdir/")) @@ -54,6 +55,14 @@ noremap H 3h noremap J 3j noremap K 3k noremap L 3l + +" F5キーでコンパイル +command! C call s:C() +nmap :C +function! s:C() + :w + :!g++ --std=c++11 -O2 -Wall % -o X +:endfunction "--------------------------------------------------------------------------- " http://inari.hatenablog.com/entry/2014/05/05/231307 diff --git a/setup.sh b/setup.sh index 705b827..2994981 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,6 @@ #!/bin/bash -DOT_FILES=(.bashrc .bash_profile .vimrc) +DOT_FILES=(.bashrc .bash_profile .vimrc .zshrc) for file in ${DOT_FILES[@]} do