Vim:打开Grep给出的线上的匹配文件?
发布时间:2020-12-16 01:25:16 所属栏目:安全 来源:网络整理
导读:我想在命令行上自动获得在Vim中的结果位置.有这样的功能吗? 文件打开在Vim给出的线上由grep: % grep --colour -n checkWordInFile *SearchToUser.java:170: public boolean checkWordInFile(String word,File file) {SearchToUser.java~:17: public boolea
我想在命令行上自动获得在Vim中的结果位置.有这样的功能吗?
文件打开在Vim给出的线上由grep: % grep --colour -n checkWordInFile * SearchToUser.java:170: public boolean checkWordInFile(String word,File file) { SearchToUser.java~:17: public boolean checkWordInFile(String word,File file) { SearchToUser.java~:41: if(checkWordInFile(word,f))
看看“
Grep search tools integration with Vim”和“
Find in files within Vim”.基本上vim提供了这些用于搜索文件的命令:
:grep :lgrep :vimgrep :lvimgrep 这些文章提供了有关其使用的更多信息. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- BootStrap 图标icon符号图标glyphicons不正常显示的快速解决
- shell 学习四十一天----列出文件 ls 和 od 命令
- Bootstrap三种表单布局的使用方法
- 无法在Angular2中找到导入的commponent的模板html
- Shell常用技巧 交互式使用shell
- angularjs – 全局禁用ng-animate,然后启用某些元素
- angularjs – 如何在另一个服务中从外部文件注入服务的模拟
- AngularJS:如何使用自定义指令来取代ng-repeat
- 【ITOO-视频系统】——进度条
- 基于bootstrap-datetimepicker.js不支持IE8的快速解决方法