From 99c712ef975ea7c9c035d8cf7a95a5ddedb85d21 Mon Sep 17 00:00:00 2001 From: kn1cht Date: Sat, 17 Mar 2018 18:41:05 +0900 Subject: [PATCH] small changes --- .vimrc | 11 ++++++++++- .zshrc | 5 +++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 9e330d8..2f3fe0a 100644 --- a/.vimrc +++ b/.vimrc @@ -40,6 +40,12 @@ endif set backupdir^=~/.vim/backup/ set undodir^=~/.vim/undo/ +inoremap jj +nmap :nohlsearch + +" ~/.vimrcをF1で開く +nnoremap :e ~/.vimrc + " 表示行単位で上下移動するように nnoremap j gj nnoremap k gk @@ -61,7 +67,7 @@ command! C call s:C() nmap :C function! s:C() :w - :!g++ --std=c++14 -O2 -Wall % -o x + :!g++ --std=c++14 -O2 -Wall % -o %:r :endfunction " F6キーでmake @@ -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 diff --git a/.zshrc b/.zshrc index eccc69f..7fa8a63 100644 --- a/.zshrc +++ b/.zshrc @@ -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