ILD

ctags
2018-7-22
使用cscope发现了一个重大的缺点,就是它包含了太多的输出,比如你要查找platform_driver结构体的定义,它会输出platform_driver的声明,很多变量等。真正的定义被淹没在输出中。因此又回过头来学习ctags。建立数据库ctags只能生成数据库,本身不能查询。支持的语言,可以使

vim使用系统剪切板
2018-7-22
检查VIM是否支持GUI不支持GUI版本的vim不能使用x-window的剪切板。$ vim --versionVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)Included patches: 1-1689Extr

vim设置文件编码
2018-10-20
vim有3种encodingfileencodings termencoding encodingfileencodings表示文件的编码,要想支持gb2312,添加cp936set fileencodings=ucs-bom,utf-8,cp936cp936就是指系统里第936号编码格式,也就是

vim高亮当前word
2019-3-12
:set hlsearch然后按 * 或者 #

vim添加gtags支持
2019-8-26
cscope的一个严重的缺陷是,它会把结构体声明等也当成定义,当你要查看一个结构体的定义时,很多没有用的输出。int (*setup)(struct platform_device *, struct legacy_probe *probe,struct platform_device;发现gtag

vim中的tabstop shiftwidth softtabstop expandtab
2021-4-5
tabstop表示一个tab显示多宽。softtabstop是编辑的时候按tab键缩进的宽度。如果它和tabstop不相等,可能有空格。 比如tabstop为8,softtabstop为4,按第一个tab时,插入4个空格,再按一次,变成一个tab。 比如tabstop为4,softtab

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.