set modelines=0 " CVE-2007-2438 " Normally we use vim-extensions. If you want true vi-compatibility " remove change the following statements set nocompatible " Use Vim defaults instead of 100% vi compatibility set backspace=2 " more powerful backspacing " Don't write backup file if vim is being called by "crontab -e" au BufWrite /private/tmp/crontab.* set nowritebackup nobackup " Don't write backup file if vim is being called by "chpass" au BufWrite /private/etc/pw.* set nowritebackup nobackup let skip_defaults_vim=1 set autoindent set ts=4 set sw=4 set showcmd set showmode set clipboard=unnamed set mouse=a set noswapfile set nobackup set nocompatible set cursorline syntax on set number map :Explore map :w map :bnext map :IndentLinesToggle map :call Run() map :!./%< < map :call Rnjava() func! Rnjava() exec "w" exec "!javac %" endfunc func! Run() exec "w" exec "!g++-13 -O3 -std=gnu++20 -Wall -Wfatal-errors -o %< %" endfunc func! ST() exec "w" exec "! ./%<" endfunc set guifont=Hack\ Nerd\ Font\ Mono\ Italic:h14 inoremap { {}O inoremap { {}i set nu inoremap #include #include #include #include typedef long long ll;typedef long double ld;typedef unsigned long long ull;using namespace std;const int INF = 0x3f3f3f3f;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);return 0;i} inoremap void setOI(string s){freopen((s + ".in").c_str(), "r", stdin);freopen((s + ".out").c_str(), "w", stdout);i} set relativenumber :inoremap ( ()i :inoremap ) =ClosePair(')') :inoremap [ []i :inoremap ] =ClosePair(']') function! ClosePair(char) if getline('.')[col('.') - 1] == a:char return "\" else return a:char endif endfunction "Plugin call plug#begin() Plug 'preservim/nerdtree' Plug 'tomasiser/vim-code-dark' Plug 'vim-airline/vim-airline' Plug 'majutsushi/tagbar' Plug 'mhinz/vim-startify' Plug 'vim-airline/vim-airline-themes' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'morhetz/gruvbox' Plug 'christoomey/vim-tmux-navigator' Plug 'tomasiser/vim-code-dark' Plug 'letorbi/vim-colors-modern-borland' Plug 'doums/darcula' Plug 'jacoborus/tender.vim' Plug 'sainnhe/gruvbox-material' Plug 'joshdick/onedark.vim' Plug 'crusoexia/vim-monokai' call plug#end() set background=dark "colorscheme gruvbox-material colorscheme onedark set termguicolors set t_Co=256 let g:gruvbox_material_background = 'material' set laststatus=2 let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 nmap :bd nmap :CocRestart set hidden set updatetime=300 inoremap pumvisible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" let g:indentLine_char = '┊' augroup VIMRC au! au BufWritePost .vimrc so % augroup END