aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2018-10-06 21:10:04 +0800
committertypebrook <typebrook@gmail.com>2018-10-06 21:10:04 +0800
commit79030f6e4f7ff843c7027e87a88df20e9ed9903a (patch)
tree34c7a93f1e79f1962bf4af5e405652cd0acf9274
parent12b3d79e0c865f78f366b54d9152801e6a8b84e2 (diff)
update
-rw-r--r--.vimrc68
1 files changed, 9 insertions, 59 deletions
diff --git a/.vimrc b/.vimrc
index 89d0851..3435c51 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,63 +1,13 @@
1" Vundle Settings 1set runtimepath+=~/.vim_runtime
2 2
3set nocompatible " be iMproved, required 3source ~/.vim_runtime/vimrcs/basic.vim
4filetype off " required 4source ~/.vim_runtime/vimrcs/filetypes.vim
5source ~/.vim_runtime/vimrcs/plugins_config.vim
6source ~/.vim_runtime/vimrcs/extended.vim
5 7
6" set the runtime path to include Vundle and initialize 8try
7set rtp+=~/.vim/bundle/Vundle.vim 9source ~/.vim_runtime/my_configs.vim
8call vundle#begin() 10catch
9" alternatively, pass a path where Vundle should install plugins 11endtry
10"call vundle#begin('~/some/path/here')
11 12
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'
19Plugin 'tpope/vim-surround'
20Plugin 'tpope/vim-sensible'
21Plugin 'vim-airline/vim-airline'
22Plugin 'vim-airline/vim-airline-themes'
23
24" All of your Plugins must be added before the following line
25call vundle#end() " required
26filetype 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"
43set number
44set relativenumber
45syntax on
46set showcmd
47filetype indent on
48set autoindent
49set cursorline 13set cursorline
50set hlsearch
51set incsearch
52set undofile
53set visualbell
54
55" 顯示特殊字符
56set list
57set listchars=tab:»■,trail:■
58hi SpecialKey ctermfg=53
59
60" directories for tmp files in editing
61set backupdir=~/.vim/.backup//
62set directory=~/.vim/.swp//
63set undodir=~/.vim/.undo//