一下脱离Windows,比较痛苦的是没有source insight
配置了一下vim,可以比较舒服的读代码了
附件图片,是配置之后的效果
vim plugin
2 ===============
3 TagList
4 ====
5 Tag list
6
7 mru.vim
8 ====
9
10
11 BlockComment.vim
12 ====
13 '.c' to comment code
14 '.C' to uncomment code
15
16 BufExlorer
17 ====
18 '\be' open buf list
19
20 Mark
21 ====
22 '\m' mark or unmark the word under the cursor
23 '\r' manually input a regular expression
24 '\n' clear this mark, or clear all highlighted
25
26 SearchComplete
27 ====
28 / or ? 搜索时 Tab 补全单词
29
30 NERDTree
31 ====
32 'o' open file or dir
33 't' open file in tab
34 'T' open it in background tab
35 '!' exec this file
36 'p' goto parent dir
37 'P' goto root dir
38 'K' goto first node
39 'J' goto last node
40 'm' show file system menu
41 '?' help
42 'q' close
vim map
48 =====
49 map <f7> :Tlist<cr>
50 map <f8> :Mru<cr>
51 map <f6> :NERDTree<cr>
52 注意:在.vimrc中写该命令,一定注意有"<f7> :"之间的空格
配置了一下vim,可以比较舒服的读代码了
附件图片,是配置之后的效果
vim plugin
2 ===============
3 TagList
4 ====
5 Tag list
6
7 mru.vim
8 ====
9
10
11 BlockComment.vim
12 ====
13 '.c' to comment code
14 '.C' to uncomment code
15
16 BufExlorer
17 ====
18 '\be' open buf list
19
20 Mark
21 ====
22 '\m' mark or unmark the word under the cursor
23 '\r' manually input a regular expression
24 '\n' clear this mark, or clear all highlighted
25
26 SearchComplete
27 ====
28 / or ? 搜索时 Tab 补全单词
29
30 NERDTree
31 ====
32 'o' open file or dir
33 't' open file in tab
34 'T' open it in background tab
35 '!' exec this file
36 'p' goto parent dir
37 'P' goto root dir
38 'K' goto first node
39 'J' goto last node
40 'm' show file system menu
41 '?' help
42 'q' close
vim map
48 =====
49 map <f7> :Tlist<cr>
50 map <f8> :Mru<cr>
51 map <f6> :NERDTree<cr>
52 注意:在.vimrc中写该命令,一定注意有"<f7> :"之间的空格
本文分享了一套 Vim 的配置方案,包括多种插件的安装与使用,如 TagList、mru.vim、BlockComment.vim 等,以及自定义快捷键设置,例如通过 F7 打开 Tlist、F8 打开 mru 和 F6 打开 NERDTree。这些配置极大地提升了代码阅读与编辑效率。
682

被折叠的 条评论
为什么被折叠?



