set guioptions-=m set guioptions-=T

source $VIMRUNTIME/mswin.vim behave mswin

set nu set softtabstop=4 set tabstop=4 set shiftwidth=4 set nobackup set mouse=a set fdm=marker set guifont=Source\ Code\ Pro\ Semibold:h16 set hlsearch set ruler if has(‘gui’) set columns=1000 set lines=1000 set cursorline endif

map : call Save() map : !mvim -ro % map : !gdb –quiet %< map : call Compile() map : !bash check.sh map : !./%< <.in map : call Run() map : !echo %

syn keyword Type dint syn keyword Special PROC syn keyword Special lld filetype plugin indent on syntax enable

colors pineapple

set makeprg=g++\ %\ -o\ %<\ -g\ -Wall\ -Wextra\ -DLAEKOV_LOCAL

func Save() if &filetype==‘javascript’ set expandtab endif exec “w” endfunc

func Compile() exec “w” if &filetype==‘cpp’ exec “!g++ % -o %< -g -Wall -Wextra -DLAEKOV_LOCAL && size %<” elseif &filetype==‘c’ exec “!gcc % -o %< -g” elseif &filetype==‘pascal’ exec “!fpc % -g” elseif &filetype==‘sh’ exec “!chmod +x %” elseif &filetype==‘java’ exec “!javac %” elseif &filetype==‘tex’ exec “!xelatex %” endif endfunc

func Run() if &filetype==‘python’ exec “!python %” elseif &filetype==‘sh’ exec “!bash ./%” elseif &filetype==‘java’ exec “!java Main” elseif &filetype==‘html’ exec “!open ./%” elseif &filetype==‘tex’ exec “!open %<.pdf” elseif &filetype==‘javascript’ exec “!node %” else exec “!./%<” endif endfunc

vnoremap :w !pbcopy nmap :r !pbpaste


Historical Comments

Unknown friend at 2015-12-08T12:40:27

@vimrc: yzyyzy?yzyyzy!
—- lyd

Unknown friend at 2015-12-08T12:40:27

@vimrc: yzyyzy?yzyyzy!
—- lyd