-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
45 lines (33 loc) · 1.1 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
" This must be first, because it changes other options as side effect
set nocompatible " We don't want vi compatibility.
" Use pathogen to easily modify the runtime path to include all
" plugins under the ~/.vim/bundle directory
execute pathogen#infect()
call pathogen#helptags()
" Vim behaviour
" Optimize for fast terminal connections
set ttyfast
" change the mapleader from \ to ,
let mapleader=","
" Don’t add empty newlines at the end of files
set binary
set noeol
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
" Centralize backups, swapfiles and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
if exists("&undodir")
set undodir=~/.vim/undo
endif
set viminfo+=! " make sure vim history works
set modelines=0
filetype plugin on
let $LOCALFILE=expand("~/.vimrc_local")
if filereadable($LOCALFILE)
source $LOCALFILE
endif