lua require ('setting') set number set relativenumber set showcmd set clipboard=unnamed set mouse=a set nobackup set noswapfile set noexpandtab set noundofile set autoindent set tabstop=4 set softtabstop=4 set shiftwidth=4 set smartindent set syntax call plug#begin() Plug 'morhetz/gruvbox' Plug 'neoclide/coc.nvim', {'branch': 'release'} call plug#end() exec"PlugInstall" exec"CocRestart" "font set guifont=Hack\ Nerd\ Font\ Mono:h9 "colorscheme colorscheme gruvbox "compile func! Run() exec "w" exec "!g++ -O2 -std=gnu++14 -Wall -Wextra -Wfatal-errors -o %<.exe %" endfunc "auto-pairs :inoremap " ""i :inoremap ' ''i inoremap { {} inoremap { {}O inoremap {{ { inoremap {} {} :inoremap ( ()i :inoremap ) =ClosePair(')') :inoremap [ []i :inoremap ] =ClosePair(']') function! ClosePair(char) if getline('.')[col('.') - 1] == a:char return "\" else return a:char endif endfunction "Keymaps map :NvimTreeToggle map :bp map :w map :CocRestart map :bd map :call Run() map :!%<.exe "template inoremap #include #include #include #include typedef long long ll;typedef unsigned long long ull;typedef long double ld;using namespace std;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);ireturn 0;} "Coc inoremap pumvisible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" set hidden set updatetime=100