备份
备份下配置……
vscode
{
"editor.fontSize": 18,
"editor.cursorSmoothCaretAnimation": true,
"editor.smoothScrolling": true,
"workbench.colorTheme": "Monokai",
"editor.mouseWheelZoom": true,
"explorer.confirmDragAndDrop": false,
"workbench.list.smoothScrolling": true,
"editor.cursorBlinking": "expand",
"editor.wordWrap": "on",
"explorer.confirmDelete": false,
//"editor.autoClosingBrackets": "never",
// LaTeX
//"latex-workshop.latex.autoBuild.run": "never",
//"latex-workshop.message.error.show": false,
//"latex-workshop.message.warning.show": false,
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
],
},
{
"name": "pdflatex",
"tools": [
"pdflatex"
]
},
{
"name": "xe->bib->xe->xe",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "pdf->bib->pdf->pdf",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
],
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": "C:/.../SumatraPDF.exe",
"latex-workshop.view.pdf.external.viewer.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"-inverse-search",
"\"C:/.../Microsoft VS Code/Code.exe\" \"C:/.../Microsoft VS Code/resources/app/o#include<>ut/cli.js\" -gr \"%f\":\"%l\"",
"%PDF%"
],
"latex-workshop.view.pdf.external.synctex.command": "C:/.../SumatraPDF.exe",
"latex-workshop.view.pdf.external.synctex.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"-inverse-search",
"code \"C:/.../Microsoft VS Code/resources/app/out/cli.js\" -gr \"%f\":\"%l\"",
"%PDF%",
],
"c-cpp-compile-run.cpp-flags": "-Wall -Wextra -DZTZ_CPP -fsanitize=undefined",
"c-cpp-compile-run.c-flags": "-Wall -Wextra -DZTZ_CPP -fsanitize=undefined",
"editor.fontFamily": "Consolas, 'Courier New', monospace",
}
vim
set ai
set ts=4
set cul
set nobk
set ar
set nu
set ruler
set shiftwidth=4
color ron
map <F10> :w<CR>:!g++ % -o %< -O2 && ./%< <CR>
imap <F10> <Esc><F10>
map <F9> :w<CR>:!g++ % -o %< -Wall -Wextra -DZTZ_CPP -fsanitize=undefined && ./%< <CR>
imap <F9> <Esc><F9>
map <F8> :!time ./%<<CR>
imap <F8> <Esc><F8>
map <F7> :w<CR>:!g++ % -o %< -DZTZ_CPP -O2 -std=c++11<CR>
imap <F7> <Esc><F7>
map <F2> :w<CR>:!kate %<CR>
imap <F2> <Esc><F2>
map <F3> :!<CR>
imap <F3> <Esc><F3>
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
if empty(&shellxquote)
let l:shxq_sav = ''
set shellxquote&
endif
let cmd = '"' . $VIMRUNTIME . '\diff"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
if exists('l:shxq_sav')
let &shellxquote=l:shxq_sav
endif
endfunction
set autoread
set guifont=Consolas:h13
set ai
set ts=4
set shiftwidth=4
set nobackup
color molokai
set cul
set nu
set noundofile
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
map<F9> :w<CR>:!g++.exe % -o %< -Wall -lm -Wextra -DZTZ_CPP<CR>
imap<F9> <esc><F9>
map<F10> :!%<<CR>
imap<F10> <esc><F10>
map<F11> :w<CR>:!g++.exe % -o %< -Wall -Wextra -lm -DZTZ_CPP & %<<CR>
imap<F11> <esc><F11>
autocmd guienter * call libcallnr("vimtweak","SetAlpha",220)
if has("gui_running")
"au GUIEnter * simalt ~x " 窗口启动时自动最大化
set guioptions-=m " 隐藏菜单栏
set guioptions-=T " 隐藏工具栏
set guioptions-=L " 隐藏左侧滚动条
set guioptions-=r " 隐藏右侧滚动条
set guioptions-=b " 隐藏底部滚动条
set showtabline=0 " 隐藏Tab栏
endif