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