diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..c06bdac --- /dev/null +++ b/vim/vimrc | |||
@@ -0,0 +1,54 @@ | |||
1 | " vimrc | ||
2 | " see https://github.com/liuchengxu/vim-better-default/ | ||
3 | |||
4 | set autowrite | ||
5 | set backupdir=/tmp//,. | ||
6 | set directory=/tmp//,. | ||
7 | set expandtab | ||
8 | set fileformats=unix,dos,mac | ||
9 | set fillchars=stl:\ ,stlnc:\ ,fold:\ ,vert:│ | ||
10 | set hidden | ||
11 | set ignorecase | ||
12 | set linespace=0 | ||
13 | set matchtime=5 | ||
14 | set mousehide | ||
15 | set nobackup | ||
16 | set noswapfile | ||
17 | set nowrap | ||
18 | set nowritebackup | ||
19 | set number | ||
20 | set pumheight=20 | ||
21 | set report=0 | ||
22 | set ruler | ||
23 | set scrolljump=5 | ||
24 | set scrolloff=3 | ||
25 | set shiftwidth=4 | ||
26 | set shortmess=atOI | ||
27 | set showcmd | ||
28 | set showmatch | ||
29 | set showmode | ||
30 | set smartcase | ||
31 | set softtabstop=4 | ||
32 | set splitbelow | ||
33 | set splitright | ||
34 | set tabstop=4 | ||
35 | set whichwrap+=<,>,h,l | ||
36 | set wildignore+=*/tmp/*,*.o,*.obj,*.so | ||
37 | set wildignore+=*\\tmp\\*,*.exe | ||
38 | set wildignore+=*swp,*.class,*.pyc,*.png,*.jpg,*.gif,*.zip | ||
39 | set wildmode=list:longest,full | ||
40 | set winminheight=0 | ||
41 | |||
42 | if v:version >= 703 | ||
43 | set undodir=/tmp//,. | ||
44 | endif | ||
45 | if has('unnamedplus') | ||
46 | set clipboard=unnamedplus,unnamed | ||
47 | else | ||
48 | set clipboard+=unnamed | ||
49 | endif | ||
50 | if has('persistent_undo') | ||
51 | set undofile | ||
52 | set undolevels=1000 | ||
53 | set undoreload=10000 | ||
54 | endif \ No newline at end of file | ||