This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
forked from nxsy/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
105 lines (74 loc) · 2.06 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
" Give up vi compatibility (nocp)
set nocompatible
filetype off
silent! call pathogen#infect()
silent! call pathogen#helptags()
filetype plugin indent on
" From http://items.sjbach.com/319/configuring-vim-right
" Hide buffers when not displayed - better for buffer management (hid)
set hidden
" Remember more (hi)
set history=1000
" Provide better options on tab of commands (wmnu, wim)
set wildmenu
set wildmode=list:longest
" Ignore patterns for globs (wig)
set wildignore=*.o,*.lo,*.la,#*#,.*.rej,*.rej,.*~,*~,.#*,*.class,*.pyc
" Ignore case for search ... (ic)
set ignorecase
" ... unless a case is used in the search (scs)
set smartcase
" Show whitespace characters (lcs)
set listchars=tab:>-,trail:·,eol:$
" Set terminal title if not using gvim
set title
" Maintain 5 lines of context around current line (so)
set scrolloff=5
set sidescrolloff=7
set sidescroll=1
" Use a local temporary directory (bdir)
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
" Show row/column details in status line (ru)
set ruler
" Make backspace behave well (bs)
set backspace=indent,eol,start
" Highlight search terms (hls)
set hlsearch
" Move dynamically to search terms as they are typed (is)
set incsearch
" Try to avoid all hit-enter prompts (shm)
set shortmess=atI
" Don't make a noise when mistakes happen (vb)
set visualbell
" Turn of bell entirely (noeb)
set t_vb=
set noerrorbells
" Syntax highlighting
syntax on
" Show last command (sc)
set showcmd
" Show matching parenthesis (sm)
set showmatch
" Show me when mode is insert, replace or visual (smd)
set showmode
" Don't reformat on paste (like paste on) (fo)
set formatoptions=1
" Only fold one level deep by default (fdn)
set foldnestmax=1
" Expand tabs to spaces (et)
set expandtab
" Do 4-space indent by default (sts,ts,sw)
set softtabstop=4
set tabstop=4
set shiftwidth=4
" Map keys
runtime mappings.vim
" Define status line
runtime statusline.vim
" Autocmds on load
runtime autocommand.vim
" Configure plugins
runtime plugins.vim
" Local overrides
runtime local.vim