aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.vimrc42
1 files changed, 40 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index d31c6f0..0d2645c 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,5 +1,41 @@
1" Thank you teacher Ruan !! 1" Vundle Settings
2
3set nocompatible " be iMproved, required
4filetype off " required
5
6" set the runtime path to include Vundle and initialize
7set rtp+=~/.vim/bundle/Vundle.vim
8call 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
13Plugin '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
18Plugin 'tpope/vim-fugitive'
19
20" All of your Plugins must be added before the following line
21call vundle#end() " required
22filetype 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"
3set number 39set number
4set relativenumber 40set relativenumber
5syntax on 41syntax on
@@ -13,9 +49,11 @@ set undofile
13set visualbell 49set visualbell
14 50
15" 如果行尾有多余的空格(包括 Tab 键),该配置将让这些空格显示成可见的小方块。 51" 如果行尾有多余的空格(包括 Tab 键),该配置将让这些空格显示成可见的小方块。
16set listchars=tab:»■,trail:■
17set list 52set list
53set listchars=tab:»■,trail:■
54hi SpecialKey ctermfg=53
18 55
56" directories for tmp files in editing
19set backupdir=~/.vim/.backup// 57set backupdir=~/.vim/.backup//
20set directory=~/.vim/.swp// 58set directory=~/.vim/.swp//
21set undodir=~/.vim/.undo// 59set undodir=~/.vim/.undo//