diff options
author | typebrook <typebrook@gmail.com> | 2018-10-06 21:10:04 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2018-10-06 21:10:04 +0800 |
commit | 79030f6e4f7ff843c7027e87a88df20e9ed9903a (patch) | |
tree | 34c7a93f1e79f1962bf4af5e405652cd0acf9274 | |
parent | 12b3d79e0c865f78f366b54d9152801e6a8b84e2 (diff) |
update
-rw-r--r-- | .vimrc | 68 |
1 files changed, 9 insertions, 59 deletions
@@ -1,63 +1,13 @@ | |||
1 | " Vundle Settings | 1 | set runtimepath+=~/.vim_runtime |
2 | 2 | ||
3 | set nocompatible " be iMproved, required | 3 | source ~/.vim_runtime/vimrcs/basic.vim |
4 | filetype off " required | 4 | source ~/.vim_runtime/vimrcs/filetypes.vim |
5 | source ~/.vim_runtime/vimrcs/plugins_config.vim | ||
6 | source ~/.vim_runtime/vimrcs/extended.vim | ||
5 | 7 | ||
6 | " set the runtime path to include Vundle and initialize | 8 | try |
7 | set rtp+=~/.vim/bundle/Vundle.vim | 9 | source ~/.vim_runtime/my_configs.vim |
8 | call vundle#begin() | 10 | catch |
9 | " alternatively, pass a path where Vundle should install plugins | 11 | endtry |
10 | "call vundle#begin('~/some/path/here') | ||
11 | 12 | ||
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 | Plugin 'tpope/vim-surround' | ||
20 | Plugin 'tpope/vim-sensible' | ||
21 | Plugin 'vim-airline/vim-airline' | ||
22 | Plugin 'vim-airline/vim-airline-themes' | ||
23 | |||
24 | " All of your Plugins must be added before the following line | ||
25 | call vundle#end() " required | ||
26 | filetype plugin indent on " required | ||
27 | " To ignore plugin indent changes, instead use: | ||
28 | "filetype plugin on | ||
29 | " | ||
30 | " Brief help | ||
31 | " :PluginList - lists configured plugins | ||
32 | " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | ||
33 | " :PluginSearch foo - searches for foo; append `!` to refresh local cache | ||
34 | " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | ||
35 | " | ||
36 | " see :h vundle for more details or wiki for FAQ | ||
37 | " Put your non-Plugin stuff after this line | ||
38 | |||
39 | |||
40 | " Basic settings from blog, thank you teacher Ruan !! | ||
41 | " http://www.ruanyifeng.com/blog/2018/09/vimrc.html | ||
42 | " | ||
43 | set number | ||
44 | set relativenumber | ||
45 | syntax on | ||
46 | set showcmd | ||
47 | filetype indent on | ||
48 | set autoindent | ||
49 | set cursorline | 13 | set cursorline |
50 | set hlsearch | ||
51 | set incsearch | ||
52 | set undofile | ||
53 | set visualbell | ||
54 | |||
55 | " 顯示特殊字符 | ||
56 | set list | ||
57 | set listchars=tab:»■,trail:■ | ||
58 | hi SpecialKey ctermfg=53 | ||
59 | |||
60 | " directories for tmp files in editing | ||
61 | set backupdir=~/.vim/.backup// | ||
62 | set directory=~/.vim/.swp// | ||
63 | set undodir=~/.vim/.undo// | ||