-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.dotfile
57 lines (40 loc) · 2.76 KB
/
vimrc.dotfile
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
set nocompatible
set history =700 " setting history length to 700
syntax enable " syntax highlighting
filetype plugin indent on " type file detection
set autoread " detect changes in outside apps
set ruler " show cursor position
set number " line numbers
set ignorecase " case insensitive searching...
set smartcase " ...unless query is capitalized
set hlsearch " highlight matches...
set incsearch " ...as i type
set magic " pattern match with special characters
set showmatch " show matching braces/paren
set showcmd " display incomplete commands.
set showmode " display the mode you're in.
set shell=/bin/bash " for running things
set backspace=indent,eol,start " Intuitive backspacing.
set hidden " Handle multiple buffers better.
set wildmenu " Enhanced command line completion.
set wildmode=list:longest " Complete files like a shell.
set wrap " Turn on line wrapping.
set scrolloff=3 " Show 3 lines of context around the cursor.
set title " Set the terminal's title
set visualbell " No beeping.
set nobackup " Don't make a backup before overwriting a file.
set nowritebackup " And again.
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location
set expandtab " spaces instead of tabs
set shiftwidth=2 " shift width
set tabstop=2 " tab width
set smarttab
set laststatus=2 " Show the status line all the time
set lbr " smart word breaking
set tw=80 " line width
set ai " autoindent
set si " smart indenting
set wrap " word wrap
if exists('+colorcolumn')
set cc=+1 " character color after 80 characters
endif