forked from waerloga/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
68 lines (60 loc) · 1.4 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
" Load the pathogen script
runtime bundle/vim-pathogen/autoload/pathogen.vim
" Auto load all the extensions
call pathogen#infect()
" Turn off vi compatibility
set nocompatible
" utf8 as default
set encoding=utf8
set fileencoding=utf8
" syntax highlighting on
syntax on
set background=dark
filetype plugin indent on
set omnifunc=syntaxcomplete#Complete
" no line wrap
set nowrap
" Set tabs to 2 spaces
set shiftwidth=2
set softtabstop=2
set tabstop=2
set expandtab
" show 'invisible' characters
set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
set list
" line numbering on
set number
" always show status line, and configure status line
set laststatus=2
set statusline=%F%m%r%h%w[%L][%{&ff}][%{strlen(&fenc)?&fenc:&enc}]%y[%p%%][%04l,%04v]
" highlight the current line
set cursorline
" show matching bracket/paren/etc
set showmatch
" auto idnent
set autoindent
" spell check on
set spell
" colorscheme solarized
colorscheme solarized
if has("gui_running")
if has('win32') || has('win64')
set guifont=Consolas:h10
else
set guifont=Inconsolata\ Medium\ 10
endif
set guioptions-=T
set guioptions-=m
set guioptions-=r
endif
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
set ttymouse=xterm
set mouse=a
set backspace=2
if has('win32') || has('win64')
set backupdir=$HOME/vimfiles/vimtemp,$TMP,.
set directory=$HOME/vimfiles/vimtemp,$TMP,.
else
set backupdir=$HOME/.vim/vimtemp,.
set directory=$HOME/.vim/vimtemp,.
endif