博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
.vimrc
阅读量:7050 次
发布时间:2019-06-28

本文共 1625 字,大约阅读时间需要 5 分钟。

0x00 shortcut

compilation : F4

run program : /rr

toggle Tcomment : gc

toggle netred : Ctrl+n

0x01 set your own highlight

view all highlight setting with sytanx.vim with this command  :highlight

chang what you want with this command

:hi tag term=x ctermfg=x ctermbg=x guifg=x guibg=x 

[Quickfix List] belong to Search iterm

add this command to your .vimrc file

:hi Search  term=blok ctermfg=1 ctermbg=0 guifg=bule guibg=fg 

使用Ctags

在源文件目录顶层命令 ctags -R

在.vimrc 或打开源文件中键入 set /../../../tags

放回 ctrl +t

条件断点 break 53 if i==9

清除断点 info break delete breakpoint

更好的使用c-support-template

修改/c.vim/c-support/templates目录下的c.commnts.templete 文件

没有修改之前它是这样的,也就是默认新建一个c源文件的头几行,显然在$% .......$%之间的东西是可以改变的

$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

== comment.file-description == start ==
/*
* =====================================================================================
*
* Filename: |FILENAME|
*
* Description: <CURSOR>
*
* Version: 1.0
* Created: |DATE| |TIME|
* Revision: none
* Compiler: gcc
*
* Author: |AUTHOR| (|AUTHORREF|), |EMAIL|
* Organization: |ORGANIZATION|
*
* =====================================================================================
*/
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

修改之后,就的到我需要的东西

$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

== comment.file-description == start ==
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

 

int main()

{

return 0;
}
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

转载于:https://www.cnblogs.com/been/p/3926982.html

你可能感兴趣的文章
魅族的“火爆”预定表示“呵呵呵”-不要怪我拆穿
查看>>
ESXi 5.5 解决 cannot edit the settings of virtual machines of version 10
查看>>
【BZOJ】3399: [Usaco2009 Mar]Sand Castle城堡(贪心)
查看>>
深入理解Java:注解(Annotation)自定义注解入门
查看>>
Android 开源组件 ----- Android LoopView无限自动轮转控件
查看>>
Codeforces Round #296 (Div. 2) A B C D
查看>>
python——SQL基本使用
查看>>
cocostudio内存释放
查看>>
Ubuntu14.04搭建安装svnserver
查看>>
DG - physical standby switchover切换过程
查看>>
iOS开发值NSUserDefaults类概述
查看>>
统计图表类型选择应用总结&表数据挖掘方法及应用
查看>>
【故障处理】CRS-1153错误处理
查看>>
快来熟练使用 Mac 编程
查看>>
ASP.NET MVC 3 网站优化总结(三)Specify Vary: Accept-Encoding header
查看>>
MVC5 + EF6 简单示例
查看>>
Spring-cloud & Netflix 源码解析:Eureka 服务注册发现接口 ****
查看>>
ORACLE里锁有以下几种模式,v$locked_object,locked_mode
查看>>
【树莓派】Linux 测网速及树莓派源
查看>>
Java用户线程和守护线程
查看>>