aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorDavid Hong <davidhong.code@gmail.com>2012-07-12 18:04:32 +1000
committerMathias Bynens <mathias@qiwi.be>2012-07-12 10:15:45 +0200
commitb4f677b7dc6049561834b9530dbbea77306ce3d8 (patch)
treee075ff4459ddac7da9fc236c66fce1376fa95d14 /.vimrc
parentc53f22232ea2e5c891da5135837bd705f4328049 (diff)
downloaddotfiles-b4f677b7dc6049561834b9530dbbea77306ce3d8.tar.gz
dotfiles-b4f677b7dc6049561834b9530dbbea77306ce3d8.tar.bz2
dotfiles-b4f677b7dc6049561834b9530dbbea77306ce3d8.zip
.vimrc: Respect modeline by default
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index 4e53b40..b5d2f11 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,4 +1,4 @@
-" Make vim more useful
+" Make Vim more useful
set nocompatible
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed
@@ -26,6 +26,9 @@ if exists("&undodir")
set undodir=~/.vim/undo
endif
+" Respect modeline in files
+set modeline
+set modelines=4
" Enable line numbers
set number
" Enable syntax highlighting
@@ -53,7 +56,7 @@ set noerrorbells
set nostartofline
" Show the cursor position
set ruler
-" Don’t show the intro message when starting vim
+" Don’t show the intro message when starting Vim
set shortmess=atI
" Show the current mode
set showmode