Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 <F5> :call Run()<CR>
- map <F6> :call ST()<CR>
- map <F7> :call Rnjava()<CR>
- map <F9> :%y+<CR>
- 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 ' ''<ESC>i
- inoremap " ""<ESC>i
- inoremap {<CR> {<CR>}<Esc>O
- inoremap {<SPACE> {}<LEFT>
- set nu
- inoremap <F8> #include<bits/stdc++.h><CR><CR>typedef long long ll;<CR>typedef long double ld;<CR><CR>using namespace std;<CR><CR>int main(){<CR> ios::sync_with_stdio(0);<CR>cin.tie(0);<CR><CR><CR>return 0;<CR><ESC>i}
- inoremap <F10> void setOI(string s){<CR> freopen((s + ".in").c_str(), "r", stdin);<CR>freopen((s + ".out").c_str(), "w", stdout);<CR><ESC>i}<CR>
- "autocmd BufNewFile *.cpp 0r ~/a.cpp
- set relativenumber
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement