vimrc
发布时间:2020-12-15 09:18:54 所属栏目:安全 来源:网络整理
导读:syntax onautocmd BufNewFile *.cpp 0 r ~/.vim/ template /tpl.cpp set nu set ru set mouse=a set nocompatible set noswapfile set noreadonly set nobackup set bs= 2 set ts= 4 set sts= 4 set sw= 4 set cin set autoindent set smartindent set autor
syntax on
autocmd BufNewFile *.cpp 0r ~/.vim/template/tpl.cpp
set nu
set ru
set mouse=a
set nocompatible
set noswapfile
set noreadonly
set nobackup
set bs=2
set ts=4
set sts=4
set sw=4
set cin
set autoindent
set smartindent
set autoread
colo evening
set clipboard+=unnamedplus
set clipboard+=unnamed
map<F2> : call Open() <CR>
map<F3> : call Compile() <CR>
map<F4> : call Run() <CR>
map<F5> : call Com_Run() <CR>
map<F6> : call Gedit() <CR>
map<F7> : call Compile_O2() <CR>
func! Open()
exec "vsp %<.out"
exec "sp %<.in"
endfunc
func! Compile()
exec "w"
exec "!g++ ./% -o ./%< -Wall -Dhany01"
endfunc
func! Compile_O2()
exec "w"
exec "!g++ ./% -o ./%< -Wall -O2 -Dhany01"
endfunc
func! Run()
exec "!./%<"
endfunc
func! Com_Run()
exec "w"
exec "!g++ ./% -o ./%< -Wall -m32 -Dhany01"
exec "!./%<"
endfunc
func! Gedit()
exec "!gedit %"
endfunc
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读