-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_vimrc
More file actions
27 lines (23 loc) · 857 Bytes
/
example_vimrc
File metadata and controls
27 lines (23 loc) · 857 Bytes
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
" Doesn't do much in modern vim, but...
" See http://stackoverflow.com/questions/5845557/in-a-vimrc-is-set-nocompatible-completely-useless
set nocompatible
" autocmds are basically vim's triggers: stuff to run onread, onwrite, etc. Generally you want a blank slate so you can
" have free working space to define your own
autocmd!
" highlight stuff matching last searched term
set hlsearch
" use case-insensitive unless mixed case search term
set smartcase
" jump to next matching on every keystroke for searching
set incsearch
" Check out the :h for each of these options! However, 4-space expand tab is a pretty good default. ;)
" Also useful, http://tedlogan.com/techblog3.html
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
" Vim built-in lang indent, syntax, etc on
syntax enable
filetype on
filetype indent on
filetype plugin on