diff options
-rw-r--r-- | .vimrc | 42 |
1 files changed, 40 insertions, 2 deletions
@@ -1,5 +1,41 @@ | |||
1 | " Thank you teacher Ruan !! | 1 | " Vundle Settings |
2 | |||
3 | set nocompatible " be iMproved, required | ||
4 | filetype off " required | ||
5 | |||
6 | " set the runtime path to include Vundle and initialize | ||
7 | set rtp+=~/.vim/bundle/Vundle.vim | ||
8 | call vundle#begin() | ||
9 | " alternatively, pass a path where Vundle should install plugins | ||
10 | "call vundle#begin('~/some/path/here') | ||
11 | |||
12 | " let Vundle manage Vundle, required | ||
13 | Plugin 'VundleVim/Vundle.vim' | ||
14 | |||
15 | " The following are examples of different formats supported. | ||
16 | " Keep Plugin commands between vundle#begin/end. | ||
17 | " plugin on GitHub repo | ||
18 | Plugin 'tpope/vim-fugitive' | ||
19 | |||
20 | " All of your Plugins must be added before the following line | ||
21 | call vundle#end() " required | ||
22 | filetype plugin indent on " required | ||
23 | " To ignore plugin indent changes, instead use: | ||
24 | "filetype plugin on | ||
25 | " | ||
26 | " Brief help | ||
27 | " :PluginList - lists configured plugins | ||
28 | " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | ||
29 | " :PluginSearch foo - searches for foo; append `!` to refresh local cache | ||
30 | " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | ||
31 | " | ||
32 | " see :h vundle for more details or wiki for FAQ | ||
33 | " Put your non-Plugin stuff after this line | ||
34 | |||
35 | |||
36 | " Basic settings from blog, thank you teacher Ruan !! | ||
2 | " http://www.ruanyifeng.com/blog/2018/09/vimrc.html | 37 | " http://www.ruanyifeng.com/blog/2018/09/vimrc.html |
38 | " | ||
3 | set number | 39 | set number |
4 | set relativenumber | 40 | set relativenumber |
5 | syntax on | 41 | syntax on |
@@ -13,9 +49,11 @@ set undofile | |||
13 | set visualbell | 49 | set visualbell |
14 | 50 | ||
15 | " 如果行尾有多余的空格(包括 Tab 键),该配置将让这些空格显示成可见的小方块。 | 51 | " 如果行尾有多余的空格(包括 Tab 键),该配置将让这些空格显示成可见的小方块。 |
16 | set listchars=tab:»■,trail:■ | ||
17 | set list | 52 | set list |
53 | set listchars=tab:»■,trail:■ | ||
54 | hi SpecialKey ctermfg=53 | ||
18 | 55 | ||
56 | " directories for tmp files in editing | ||
19 | set backupdir=~/.vim/.backup// | 57 | set backupdir=~/.vim/.backup// |
20 | set directory=~/.vim/.swp// | 58 | set directory=~/.vim/.swp// |
21 | set undodir=~/.vim/.undo// | 59 | set undodir=~/.vim/.undo// |