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
syntax on
set number
map :call Run()
map :call ST()
map :call Rnjava()
map :%y+
func! Rnjava()
exec "w"
exec "!javac %"
endfunc
func! Run()
exec "w"
exec "!g++-13 % -o %< -O2"
endfunc
func! ST()
exec "!./%<"
endfunc
colorscheme sorbet
set guifont=Fixedsys_Excelsior_3.01:h18
inoremap ' ''i
inoremap " ""i
inoremap { {}O
inoremap { {}
set nu
inoremap #includetypedef long long ll;typedef long double ld;using namespace std;int main(){ ios::sync_with_stdio(0);cin.tie(0);return 0;i}
inoremap void setOI(string s){ freopen((s + ".in").c_str(), "r", stdin);freopen((s + ".out").c_str(), "w", stdout);i}
"autocmd BufNewFile *.cpp 0r ~/a.cpp
set relativenumber