diff options
author | Case Duckworth | 2022-01-02 09:42:51 -0600 |
---|---|---|
committer | Case Duckworth | 2022-01-02 09:42:51 -0600 |
commit | 39cd28594a3419a985e26384577c0e5341677d0e (patch) | |
tree | 8be5d67bf2bab8e770e9534ed0ebb71f992a1a48 /vim/vimrc | |
parent | bootstrap ~/.mbsyncrc (diff) | |
download | etc-39cd28594a3419a985e26384577c0e5341677d0e.tar.gz etc-39cd28594a3419a985e26384577c0e5341677d0e.zip |
Add vimrc
I've added a basic vimrc for when I use it occasionally
Diffstat (limited to 'vim/vimrc')
-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 | ||