码迷,mamicode.com
首页 > 系统相关 > 详细

我的vimrc

时间:2019-03-26 19:49:33      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:配置   dir   stop   swa   mat   ima   abs   tabs   g++   

本地

syntax on
set number
set mouse=a
set autoread
set autochdir
set shiftwidth=4
set tabstop=4
set nocompatible
set noswapfile
set autoindent
set showmatch
set softtabstop=4
set smartindent

imap { {<CR>}<ESC>kA

map <F7> :w<CR>:!g++ % -o %< -g -Wall <CR>
imap <F7> <ESC>:w<CR>:!g++ % -o %< -g -Wall <CR>

map <F8> :!time ./%< <CR>
imap <F8> <ESC>:!time ./%< <CR>

map <F9> :w<CR>
imap <F9> <ESC>:w<CR>

map <c-a> ggvG$
imap <c-a> ggvG$
map <c-c> "+Y
imap <c-c> "+Y
map <c-v> "+P
imap <c-v> "+P

map <c-h> 7h
map <c-j> 7j
map <c-k> 7k
map <c-l> 7l
map <c-up> 7k
map <c-down> 7j
map <c-left> 7h
map <c-right> 7l

map `1 :0r ~/模板/head.cpp<CR>
map `2 :0r ~/模板/Head.cpp<CR>
map `3 :0r ~/模板/math.cpp<CR>

考场配置

syntax on
set number
set mouse=a
set autoread
set autochdir
set shiftwidth=4
set tabstop=4
set nocompatible
set noswapfile
set autoindent
set showmatch
set softtabstop=4
set smartindent

imap { {<CR>}<ESC>kA

map <F7> :w<CR>:!g++ % -o %< -g -Wall <CR>
imap <F7> <ESC>:w<CR>:!g++ % -o %< -g -Wall <CR>

map <F8> :!time ./%< <CR>
imap <F8> <ESC>:!time ./%< <CR>

map <F9> :w<CR>
imap <F9> <ESC>:w<CR>

map <c-a> ggvG$
imap <c-a> ggvG$
map <c-c> "+Y
imap <c-c> "+Y
map <c-v> "+P
imap <c-v> "+P

我的vimrc

标签:配置   dir   stop   swa   mat   ima   abs   tabs   g++   

原文地址:https://www.cnblogs.com/lizehon/p/10602775.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!