Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1cht committed Mar 17, 2018
1 parent b27f759 commit 99c712e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ endif
set backupdir^=~/.vim/backup/
set undodir^=~/.vim/undo/

inoremap jj <Esc>
nmap <silent> <Esc><Esc> :nohlsearch<CR>
" ~/.vimrcをF1で開く
nnoremap <silent> <F1> :<C-u>e ~/.vimrc<CR>
" 表示行単位で上下移動するように
nnoremap j gj
nnoremap k gk
Expand All @@ -61,7 +67,7 @@ command! C call s:C()
nmap <F5> :C<CR>
function! s:C()
:w
:!g++ --std=c++14 -O2 -Wall % -o x
:!g++ --std=c++14 -O2 -Wall % -o %:r
:endfunction

" F6キーでmake
Expand Down Expand Up @@ -220,3 +226,6 @@ let g:undotree_RelativeTimestamp = 1
let g:undotree_TreeNodeShape = '*'
let g:undotree_HighlightChangedText = 1
let g:undotree_HighlightSyntax = "UnderLined"

""""""""""""""""""""""""""""""
set secure
5 changes: 3 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ alias mkdir='mkdir -p'
alias sudo='sudo '
alias rot13='tr A-Za-z N-ZA-Mn-za-m'

funciton md2pdf (){ pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex $1 -o ${1%.*}.pdf }
funciton md2pdf-ref (){ pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex --filter pandoc-crossref $1 -o ${1%.*}.pdf }
funciton md2pdf (){ pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex $@ -o ${1%.*}.pdf }

funciton md2pdf-ref (){ pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex --filter pandoc-crossref $@ -o ${1%.*}.pdf }

# C で標準出力をクリップボードにコピーする
# mollifier delta blog : http://mollifier.hatenablog.com/entry/20100317/p1
Expand Down

0 comments on commit 99c712e

Please sign in to comment.