Home
Sign Up
Sign In
V2EX
›
问与答
VIM里怎么高亮mark一部分代码?
zhangxiao
·
Oct 1, 2013
· 4323 views
This topic created in 4627 days ago, the information mentioned may be changed or developed.
比如重构代码的时候,我左右打开两个文件,希望在右边的文件里高亮mark一部分代码,可以让眼睛迅速定位到正在重构的部分
mark
高亮
代码
6 replies
•
1970-01-01 08:00:00 +08:00
1
yuelang85
Oct 1, 2013
:set hlsearch
/foo
2
zhangxiao
OP
Oct 1, 2013
@
yuelang85
我需要高亮一段代码,这样搜索没法用
3
kran
Oct 1, 2013
http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file
4
yuelang85
Oct 1, 2013
@
zhangxiao
抱歉,我当成高亮单词了。
你看看这个可以不:
http://www.vim.org/scripts/script.php?script_id=2666
5
ivenvd
Oct 1, 2013
1
:h sign
6
zhangxiao
OP
Oct 1, 2013
@
ivenvd
Thanks!
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
987 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 19:48
·
PVG 03:48
·
LAX 12:48
·
JFK 15:48
♥ Do have faith in what you're doing.
❯