实用工具

该工具箱, 用于存放博主工作生活中用到的软件工具, 不定期更新.

hexdum 安装

有时需要将 bin 文件转换为十六进制数组, cscode 中的 hexdum 插件提供了快捷转换工具非常好用, 然而官方不在推荐该插件, 因此无法直接安装. 收录两篇有用的博客提供安装教程.

1
2
https://marketplace.visualstudio.com/items?itemName=slevesque.vscode-hexdump
https://blog.csdn.net/u012814856/article/details/80684376

谷歌浏览器插件推荐

  • 谷歌上网助手: 如果仅仅用器来看视频, google 搜索东西也还是可以接受的. 每个月 15 块. 如果是需要全局模式就被用了, 完全没法使用.
  • Checker Plus for Gmail: 无需打开 Gmail 或 Inbox,即可收到桌面邮件通知,方便地查看、收听或删除邮件,并且支持多账户。搞了半天 outlook 始终无法登录, 使用这个插件完美解决问题.
  • Infinity 云端高清壁纸, 自由添加网站图标这个功能个人非常喜欢. 可以很方便的使用常用的软件工具.
  • AdBlock 在YouTube、Facebook、Twitch和其他你喜爱的网站上拦截广告和弹窗。
  • Click&Clean 当浏览器关闭时,这款应用程序删除你的浏览历史,防止他人跟踪你的网上活动。
  • 划词翻译 : 最近学习英语, 该工具非常好用

vim

博主的主流浏览工具, 并没有太多客制化, 下载vim-plug插件

1
curl -fLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused/etc/hosts 写入下面内容解决

1
2
3
4
5

199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com

又报错 curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104 , 更新清华源 https://blog.csdn.net/CAU_Ayao/article/details/83507338 , 成功下载,
./.vimrc 中添加下面内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
if version >= 603
set helplang=cn
endif

" 语法高亮
syntax enable
syntax on

set hlsearch " 搜索高亮设置
set nu " 显示行号
set ts=4 " table 缩进 4 个空格
set sw=4 " 自动缩进的时候缩进 4 个空格
set noexpandtab " 让 table 还原成 table 而非空格

set autoindent " 自动缩进
set incsearch " 逐步搜索模式,对当前键入的字符进行搜索而不必等待键入完成

" 字符编码相关设置
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936
set fileencoding=gb2312
set termencoding=utf-8

" 分割窗口改变窗口的尺寸
nnoremap t= :resize +5<CR> " 垂直
nnoremap t- :resize -5<CR>
nnoremap t, :vertical resize +5<CR>
nnoremap t. :vertical resize -5<CR> " 水平
nnoremap tj :resize +5<CR>

" 每次保存文件时,自动更新 tags
" autocmd BufWritePost *.cpp,*.c,*.h silent! :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q

"高亮当前行
set cursorline
hi CursorLine cterm=NONE ctermbg=black ctermfg=NONE
" hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white

" 字符高亮
nmap <silent><F4> :nohl<CR> "取消高亮

"窗口上下左右选择键
nnoremap th <C-W>h
nnoremap tj <C-W>j
nnoremap tk <C-W>k
nnoremap tl <C-W>l

""""""""""""""""""""""""""""""
" cscope
""""""""""""""""""""""""""""""
if filereadable("cscope.out")
cs add cscope.out
endif

nmap <F2>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <F2>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <F2>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <F2>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <F2>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <F2>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <F2>i :cs find i <C-R>=expand("<cfile>")<CR><CR>
nmap <F2>d :cs find d <C-R>=expand("<cword>")<CR><CR>

call plug#begin('~/.vim/plugged') " 插件会被安装到这里
Plug 'theniceboy/vim-deus'
Plug 'itchyny/lightline.vim'

" ------------------------------------------------------ 括号颜色插件 rainbow_parentheses 以及配置
Plug 'kien/rainbow_parentheses.vim'
let g:rbpt_colorpairs = [
\ ['brown', 'RoyalBlue3'],
\ ['Darkblue', 'SeaGreen3'],
\ ['darkgray', 'DarkOrchid3'],
\ ['darkgreen', 'firebrick3'],
\ ['darkcyan', 'RoyalBlue3'],
\ ['darkred', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['brown', 'firebrick3'],
\ ['gray', 'RoyalBlue3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['Darkblue', 'firebrick3'],
\ ['darkgreen', 'RoyalBlue3'],
\ ['darkcyan', 'SeaGreen3'],
\ ['darkred', 'DarkOrchid3'],
\ ['red', 'firebrick3'],
\ ]

let g:rbpt_max = 16
let g:rbpt_loadcmd_toggle = 0
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
" 通过 :RainbowParenthesesToggle 命令启动插件 ---------- rainbow_parentheses 完成配置

call plug#end()

运行 PlugInstall 安装插件, 报错 Error detected while processing Syntax Auto commands for "*":, 多运行几次 PlugInstall 安装成功. 最后通过 :RainbowParenthesesToggle 命令启动括号颜色插件, 完成配置.

常用工具项

  • 科学上网工具: 可全局的科学上网工具
  • mobaxterm : 非常好用的 ssh 工具, 集 串口, cmd 等工具于一体, 免费可以保存 8 个 ssh 完全够用. 顺便说一下, windows terminal 是 lj.
  • 有道云笔记 : 体验感还不错, 取代了使用多年的 MarkdownPad
  • visio : 流程图绘制软件.
  • 文件对比工具 : 除了不能对比二进制文件之外, 最好的文件对比工具
  • COSBrowser: 图床软件
0%