Skip to content

Commit

Permalink
F6 make
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1cht committed Jul 28, 2017
1 parent 191d70d commit 5b05e4b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set tabstop=2
set whichwrap=b,s,h,l,<,>,[,]
set backspace=indent,eol,start
autocmd BufWritePre * :%s/\s\+$//ge
autocmd BufWritePre * :%s/\t/ /ge
"autocmd BufWritePre * :%s/\t/ /ge

"---------------------------------------------------------------------------
" history
Expand Down Expand Up @@ -63,6 +63,14 @@ function! s:C()
:w
:!g++ --std=c++11 -O2 -Wall % -o x
:endfunction

" F6キーでmake
command! Make call s:Make()
nmap <F6> :Make<CR>
function! s:Make()
:w
:!make
:endfunction
""""""""""""""""""""""""""""""
" md as markdown, instead of modula2
autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown
Expand Down
12 changes: 8 additions & 4 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ alias ls='ls -Ga'
alias mkdir='mkdir -p'
alias sudo='sudo '
alias rot13='tr A-Za-z N-ZA-Mn-za-m'
alias md2pdf='pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex'
alias md2pdf-ref='pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex --filter pandoc-crossref'
# C で標準出力をクリップボードにコピーする
# mollifier delta blog : http://mollifier.hatenablog.com/entry/20100317/p1
alias -g C='| pbcopy'

export PATH=/opt/local/bin:/opt/local/sbin:~/bin:$PATH
export PATH="$HOME/.rbenv/bin:$PATH"
export PATH="$PATH:"/Applications/microchip/xc8/v1.35/bin""
export PATH=$PATH:/usr/local/share/git-core/contrib/diff-highlight
export PATH="$PATH":/Users/RYK6U0327/isrb2
export PATH=$HOME/.rbenv/bin:~/Library/Python/2.7/bin:~/.go/bin:$PATH
export PATH=/Applications/microchip/xc8/v1.35/bin:$PATH
export PATH=/usr/local/share/git-core/contrib/diff-highlight:$PATH
export PATH=/Users/RYK6U0327/isrb2:$PATH
export GOPATH=$HOME/.go/
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
eval "$(rbenv init -)"
4 changes: 3 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

cd `dirname $0`

DOT_FILES=(.bashrc .bash_profile .vimrc .zshrc)

for file in ${DOT_FILES[@]}
do
ln -s $HOME/Documents/git/dotfiles/$file $HOME/$file
ln -s ./$file $HOME/$file
done

0 comments on commit 5b05e4b

Please sign in to comment.