我的vimrc

 

总是在这个页面修改太麻烦了:转换到Git

[dm href=’https://github.com/imekaku/mintGit/blob/master/vimrc’]链接地址[/dm]

set nocompatible
set number
filetype on
syntax on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set smartindent

autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class

set showmatch

autocmd BufRead *.c set cindent
autocmd BufRead *.cpp set cindent
set ruler
set incsearch
set nohls
 
"窗口操作快捷键
"开启水平窗口,关闭水平窗口
nmap wv <C-w>v
nmap wc <C-w>c
nmap ws <C-w>s
 
 
"设置配色方案
colorscheme evening
set mouse=a
 
"C编译
map <F5> :call CompileRunGcc()<CR>
func! CompileRunGcc()
exec "w"
exec "!gcc % -o %<"
exec "! ./%<"
endfunc
 
"C++编译
map <F6> :call CompileRunGpp()<CR>
func! CompileRunGpp()
exec "w"
exec "!g++ % -o %<"
exec "! ./%<"
endfunc

inoremap " ""<ESC>i

 

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部