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

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

"set nuset sw=4set ts=4syntax on"vimManagerWindowlet g:winManagerWindowLayout='FileExplorer|TagList'nmap wm :WMToggle
"window movennoremap
hnnoremap
jnnoremap
knnoremap
l"cscope""
Ctrl和下划线组合:set cscopequickfix=s-,c-,d-,i-,t-,e- "s: 查找C语言符号,即查找函数名、宏、枚举值等出现的地方 nmap
s :cs find s
=expand("
")
"g: 查找函数、宏、枚举等定义的位置,类似ctags所提供的功能 nmap
g :cs find g
=expand("
")
"c: 查找调用本函数的函数 nmap
c :cs find c
=expand("
")
"t: 查找指定的字符串 nmap
t :cs find t
=expand("
")
"e: 查找egrep模式,相当于egrep功能,但查找速度快多了 nmap
e :cs find e
=expand("
")
"f: 查找并打开文件,类似vim的find功能 nmap
f :cs find f
=expand("
")
"i: 查找包含本文件的文件 nmap
i :cs find i
=expand("
")
"d: 查找本函数调用的函数 nmap
d :cs find d
=expand("
")
"状态栏的显示set laststatus=2 set statusline=%t%m%r%h%w\ \ [Li=%l/%L][Co=%v][%p%%]\ Time:\%{strftime(\"%d-%m-%y\ \ %H:%M\")} "set statusline=%F%m%r%h%w\[POS=%l,%v][%p%%]\%{strftime(\"%d/%m/%y\ -\ %H:%M\")} highlight StatusLine guifg=White guibg=Black highlight StatusLineNC guifg=Black guibg=White ctermfg=red "一边输入搜索关键字,一边显示搜索结果set incsearch"不用vi的键盘,用vim的键盘set nocompatible"不循环查找set nowrapscan"中文显示设置set fenc=utf-8 set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936 set autochdir"nmap
:!ctags -R --c-kinds=+p --c++=kinds=+p --fields=+iaS"--extra=+q ./
"set tags+=../tags;"set mapleader 设置leader为“,”let mapleader = ",""fast reloading of the .vimrcmap
ss :source ~/.vimrc
"fast editing of .vimrcmap
ee :e ~/.vimrc
"when .vimrc is edited, reload itautocmd! bufwritepost .vimrc source ~/.vimrc"quickfix settingsnmap
cw :cw 10
nmap
cn :cn
nmap
cp :cp
"find the word under the cursor in the current file.nmap
lv :lv /
=expand("
")
/ %
:lw
"buffernmap ,bd :bd
nmap ,bn :bd

转载地址:http://yvuhj.baihongyu.com/

你可能感兴趣的文章
fjut 1862 奇怪数列(判断一个数是否为2的整次方)
查看>>
C++ STL 之 set 与 multiset 的基本用法
查看>>
Powers of two(multiset的运用)
查看>>
并查集入门(普通并查集+带删除并查集+关系并查集)
查看>>
吉首大学第八届“新星杯”大学生程序设计大赛 A:组合数(递推组合+求因子数)
查看>>
吉首大学第八届“新星杯”大学生程序设计大赛 I: 夫子云游(简单搜索)
查看>>
吉首大学第八届“新星杯”大学生程序设计大赛 K: WaWa的难题(找规律)
查看>>
Codeforces Round #533 (Div. 2) C. Ayoub and Lost Array(dp)
查看>>
Codeforces Round #533 (Div. 2) D. Kilani and the Game(bfs)
查看>>
牛客寒假算法基础集训营3 D:处女座的训练(贪心)
查看>>
G:处女座和小姐姐(三)(思维)
查看>>
求最短路径的四种方法(Dijkstra,Floyd,Bellman-Ford,SPFA算法)
查看>>
处女座的比赛资格(拓扑排序求最短路)
查看>>
牛客寒假算法基础集训营4 I:Applese 的回文串(思维)
查看>>
牛客寒假算法基础集训营4 E:Applese 涂颜色(费马小定理+快速幂)
查看>>
牛客寒假算法基础集训营4 C:Applese 走迷宫(bfs)
查看>>
牛客寒假算法基础集训营4 F:Applese 的QQ群(拓扑排序判环)
查看>>
牛客寒假算法基础集训营4 G:Applese 的毒气炸弹(Kruskal求最小生成树)
查看>>
Codeforces Round #536 (Div. 2) B. Lunar New Year and Food Ordering(思维)
查看>>
Codeforces Round #536 (Div. 2) D. Lunar New Year and a Wander(基础图论)
查看>>