vimrc

前端之家收集整理的这篇文章主要介绍了vimrc前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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
原文链接:https://www.f2er.com/bash/389798.html

猜你在找的Bash相关文章