Skip to content

Commit

Permalink
Do not generate .swp
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyangyang04 committed Feb 28, 2020
1 parent eae42a1 commit c386315
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ let curpwd = getcwd()
" vim自身命令行模式智能补全
set wildmenu

" 不产生.swp文件
set noswapfile

" 禁止光标闪烁
" set gcr=a:block-blinkon0

Expand Down Expand Up @@ -230,6 +233,8 @@ inoremap <C-v> <Esc>:r ~/tmp/clipboard.txt <CR>
" 编译快捷键
autocmd filetype python nnoremap <F1> :w <bar> exec '!python '.shellescape('%')<CR> autocmd filetype c nnoremap <F1> :w <bar> exec '!gcc '.shellescape('%').' -o '.shellescape('%:r').' && ./'.shellescape('%:r')<CR>
autocmd filetype cpp nnoremap <F1> :w <bar> exec '!g++ --std=c++11 -pthread '.shellescape('%').' -o ./bin/'.shellescape('%:r').' && ./bin/'.shellescape('%:r')<CR>
" autocmd filetype dot nnoremap <F1> :w <bar> exec '!dot -Tsvg '.shellescape('%').' > ./svg/'.shellescape('%:r').' && open ./bin/'.shellescape('%:r')<CR>
autocmd filetype dot nnoremap <F1> :w <bar> exec '!dot -Tsvg sqlparse.dot > sqlparse.svg'<CR>
autocmd Filetype java nnoremap <F1> :w <bar> exec '!javac '.shellescape('%'). ' -d ./bin'<CR>
autocmd filetype java nnoremap <F2> :w <bar> exec '!java -cp ./bin '.shellescape('%:r')<CR>
Expand Down

0 comments on commit c386315

Please sign in to comment.