Ubuntu,Vim,gedit支持GBK,gb2312
2012-09-20 22:09
501 查看
1,首先下载 arduino 语法高亮 vim syntax file
http://www.vim.org/scripts/script.php?script_id=2654
2.生成ctags文件
在linux下,可使用如下命令:
ctags -f tags.cpp `find . -name "*.cpp" -o -name "*.h"`
ctags -f tags.pde --langmap=c++:.pde `find . -name "*.pde"`
cat tags.cpp tags.pde > tags
sort tags -o tags
rm -f tags.*
在windows下:
#递归找出当前文件夹内的*.h 和 *.cpp文件,结果输出到a.txt
find -name "*.h" -o -name ".cpp" > a.txt
#同上
find -name "*.ino" > c.txt
#将a.txt中的换行符替换为空格,结果输出到b.txt
cat a.txt | tr "\r\n" " " > b.txt
#同上
cat c.txt | tr "\r\n" " " > d.txt
ctags -f tags.cpp (将b.txt的内容复制过来)
ctags ctags -f tags.pde --langmap=c++:.pde (将d.txt的内容复制过来)
cat tags.cpp tags.pde > tags
sort tags -o tags
http://www.vim.org/scripts/script.php?script_id=2654
2.生成ctags文件
在linux下,可使用如下命令:
ctags -f tags.cpp `find . -name "*.cpp" -o -name "*.h"`
ctags -f tags.pde --langmap=c++:.pde `find . -name "*.pde"`
cat tags.cpp tags.pde > tags
sort tags -o tags
rm -f tags.*
在windows下:
#递归找出当前文件夹内的*.h 和 *.cpp文件,结果输出到a.txt
find -name "*.h" -o -name ".cpp" > a.txt
#同上
find -name "*.ino" > c.txt
#将a.txt中的换行符替换为空格,结果输出到b.txt
cat a.txt | tr "\r\n" " " > b.txt
#同上
cat c.txt | tr "\r\n" " " > d.txt
ctags -f tags.cpp (将b.txt的内容复制过来)
ctags ctags -f tags.pde --langmap=c++:.pde (将d.txt的内容复制过来)
cat tags.cpp tags.pde > tags
sort tags -o tags
相关文章推荐
- ubuntu支持GBK(系统\gedit\vim)
- Ubuntu下如何设置Eclipse支持GBK和GB2312编码
- ubuntu下 gedit兼容gbk、gb2312
- Ubuntu下设置Eclipse支持GBK和GB2312
- Ubuntu下如何设置Eclipse支持GBK和GB2312编码
- Ubuntu下设置Eclipse支持GBK和GB2312
- Ubuntu下terminal、vim、gedit对中文的支持
- Ubuntu下terminal、vim、gedit对中文的支持 (真正有效而简单的方法)
- ubuntu中gedit支持GB2312
- Ubuntu下设置Eclipse支持GBK和GB2312
- Ubuntu下设置Eclipse支持GBK和GB2312
- 解决乱码,让Sublime Text 2支持GB2312和GBK
- 使Mac系统下的eclipse支持GBK GB2312编码
- ubuntu/vim/terminal/gedit...快捷键
- Ubuntu: Vim和gedit乱码问题的解决
- 解决ubuntu16.04中vim和gedit乱码以及fcitx卸载残余导致的问题
- phpstorm设置编码 gbk gb2312 支持 asp
- ubuntu中vim和gedit中文乱码
- 【linux学习笔记】Sublime Text3支持GB2312和GBK编码以及中文输入法
- 解决乱码,让Sublime Text 2支持GB2312和GBK