跳到正文

个人记录

vimrc

nkwhale约 2 分钟
原文
文章信息与版本

文章信息

发布
2021年7月21日
收录
2025年12月12日
更新
2026年11月6日
篇幅
约 2 分钟
获赞
2

版本

  1. v1当前

存档

my vimrc

代码
syntax on
color slate
set nocompatible
set backspace=indent,eol,start
set nu
set cul
set ruler
set mouse=a
map <F9> <Esc> :w <CR> :!g++ % -o %<.ex -Wall -std=c++11 && time ./%<.ex <CR>
map <F10> <Esc> :w <CR> :!g++ % -o %<.ex -Wall -O2 -std=c++14 && time ./%<.ex <CR>
map <F7>  <Esc> :w <CR> :tabnew<CR>
set smartindent
set smarttab
set tabstop=8
set softtabstop=8
set shiftwidth=8

for windows

代码
syntax on
color torte
set nocompatible
set backspace=indent,eol,start
set guifont=Consolas:h20
set nu
set cul
set ruler
set mouse=a
set smartindent
set smarttab
set tabstop=8
set softtabstop=8
set shiftwidth=8
map <F9> <Esc> :w <CR> :!g++ % -o %<.exe -Wall -O2 -std=c++14 -Wl,-stack=500000000 && %<.exe <CR>
map <F7> <Esc> :w <CR> :tabnew <CR>
au GUIEnter * simalt ~x
原文
存档评论3 条抓取于