]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Documentation improvement.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index de7dc05c18d5276e0781b0d6ecf7bbd054fc85a0..7d8ebf35f983f408c538fcfee99dcf48cc25dede 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -11,6 +11,10 @@ set nocompatible
 set runtimepath-=~/.vim
 set runtimepath^=~/.vim,~/.vim/plugins,~/.vim/runtime
 
+" Disable modelines as they may cause security problems. Instead use
+" securemodelines (Vim script #1876).
+set nomodeline
+
 " When completing paths first use the longest path then display a list of all
 " possible files.
 set wildmode=longest,list
@@ -64,7 +68,7 @@ set formatoptions+=l
 set virtualedit=block
 
 " Already display matches while typing the search command. This makes spotting
-" errors easily.
+" errors easy.
 set incsearch
 
 " Activate syntax folding.
@@ -169,7 +173,8 @@ else
 endif
 
 " Make sure xa0 (alt + space) is automatically changed to a normal whitespace
-" if pressed accidentally while in insert mode (happens on Mac sometimes).
+" if pressed accidentally while in insert mode (happens on Mac when alt
+" doesn't send escape).
 if has("mac")
     imap <Char-0xa0> <Space>
 endif