This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
executable file
·60 lines (45 loc) · 1.6 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
" Based on https://github.com/sriedel/vim-config/blob/master/.vimrc
call pathogen#infect()
call pathogen#helptags()
set showmatch "show matching parens
set ts=8 sw=2 sts=2 expandtab "tabbing options
set listchars=tab:▸\ ,eol:¬ "make nonprintable charactars visible
set showbreak=… "make line wraps visible
set ai "auto indent
set ar "auto reload changed files
set nocompatible "enable vim specific extensions
set foldcolumn=4 "show folds in the first 4 columns
set noerrorbells "no sounds on errors
" search first in current directory then file directory for tag file
set tags=.tags;/
" Swap File handling
set noswapfile
" Font
set guifont=Menlo\ for\ Powerline\ Regular\ 11
" Numbers
set number
set numberwidth=5
" printer setup
set printoptions=paper:A4 "Set :hardcopy page size to A4
" grep
set grepprg=ack-grep\ -a\ --nocolor\ --with-filename\ --noheading\ --nobreak
" syntax highlighting
syntax on
colorscheme Tomorrow-Night
highlight NonText guifg=#ff0000
highlight RedundantSpaces guibg=#00ffff ctermfg=214 ctermbg=160 cterm=bold
match RedundantSpaces / \+\ze\t/
"filetype specific stuff
filetype on "Enable Filetype plugins
filetype plugin on
autocmd FileType js setlocal foldmethod=syntax " allow syntax folding for js
" Markdown syntax
au BufRead,BufNewFile *.md set filetype=markdown
" Rabl Syntax
au BufRead,BufNewFile *.rabl setf ruby
au BufRead,BufNewFile *.rabl syn keyword rubyRabl node attribute object child collection attributes glue extends cache
au BufRead,BufNewFile *.rabl hi def link rubyRabl Function
" highlight the current line
set cursorline
"show lightline status
set laststatus=2