

OI 中的 Vim
source link: https://rapiz.me/2017/oi-vim/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

OI 中的 Vim
Installation
Arch Linux: pacman -S gvim
Windows: www.baidu.com
注意 Linux 下 vim
和 gvim
两个包是冲突的。安装 gvim
可以使用两者(GUI 和非 GUI)。
Configurations
Compile and Run
关于编译可以看看这篇文章。
我们想在新窗口中运行,还想要运行结束后按任意键继续来看输出。
我使用 Konsole 作为终端模拟器,所以我可以这样写命令:
konsole -e 'sh -c "./prog;read -p done"'
这样会新窗口执行程序并且最后输出一行’done’。
然后就是一些 Vim 的知识了。不再赘述。
Color
Molokai 不错,但是这个不是自带主题。
evening 是很经典的一个自带主题,赛场你可以用它。
gt
下一个标签
Tree-views
My .vimrc
set number "行号
set hls "高亮搜索结果
set go= "隐藏gvim顶栏
set autoread "自动重新加载文件
set cindent " 自动缩进
set shiftwidth=2 "缩进大小
set tabstop=2 "tab大小
set makeprg=g++\ %\ -Wall\ -g
map<F10> :!konsole -e 'sh -c "./a.out;read -p done;"'<Enter>
map<F12> :w<Enter>:make<Enter>
map<F11> <F12><Enter><F10>
inoremap { {}<Esc>i "{}补全
colo molokai
sy on "语法高亮
Recommend
-
186
There seem to be some recurring points whenever a vimrc review thread comes up here on r/vim. Before submitting your vimrc for review, consider going through the following checklist...
-
183
-
200
k-vim VERSION: 9.2 LAST_UPDATE_TIME: 2017-07-29 本次更新: 小版本更新, 支持vim8异步语法检查 详细
-
187
Archived project. No maintenance. This project is not maintained anymore and is archived. Feel free to fork and make your own changes if needed. For more detail read my blog post:
-
292
fzf vim Things you can do with fzf and V...
-
192
Overview Clone this project directy into ~/.vim: # Clean up old unnecessary files or symlinks rm -f ~/.vimrc ~/.gvimrc ~/.vimrc.bundles; rm -rf ~/.vim # Clone directly into ~/.vim git clone [email protected]:brai...
-
205
所需即所获:像 IDE 一样使用 vim [email protected] 2016-03-30 16:39:33 ##【谢谢】 捐赠:支付宝 [email protected] ,支付宝二维码(左),微信二维码...
-
199
Vim is the name of a range of household cleaning products originally produced by
-
167
purescript-vim Purescript language support for vim and neovim providing syntax highlighting and indentation based on based on
-
201
Base16 Vim See the Base16 repository for more information. This theme was built with B...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK