-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
78 lines (62 loc) · 1.69 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
69
70
71
72
73
74
75
76
77
78
so ~/.vim/neobundle.vim
set ai
set ruler
set modeline
syntax on
set ruler
set textwidth=80
set shiftwidth=2
set expandtab
set tabstop=2
set hlsearch
set nowrap
set nu
set encoding=utf-8
" Fix: backspace only deletes characters of current edit
set backspace=2
runtime ftplugin/man.vim
filetype plugin indent on " Enable filetype-specific indenting and plugins
" Load matchit (% to bounce from do to end, etc.)
runtime! macros/matchit.vim
augroup myfiletypes
" Clear old autocmds in group
autocmd!
" autoindent with two spaces, always expand tabs
autocmd FileType ruby,eruby,yaml,xml set ai sw=2 sts=2 et
autocmd FileType perl set ai sw=4 sts=4 et
augroup END
syn region texZone start="\\begin{code}" end="\\end{code}\|%stopzone\>"
" Vim syntax file
" Language: SCSS (Sassy CSS)
" Author: Daniel Hofstetter ([email protected])
" Inspired by Tim Pope's sass syntax file
if exists("b:current_syntax")
finish
endif
runtime! syntax/css.vim
syn match scssVariable "$[[:alnum:]_-]\+"
syn match scssMixin "^@mixin.*"
syn match scssMixing "@include.*"
syn region scssComment start="^\z(\s*\)//" end="^\%(\z1 \)\@!"
hi def link scssVariable Identifier
hi def link scssMixin PreProc
hi def link scssMixing PreProc
hi def link scssComment Comment
let b:current_syntax = "scss"
set tags=.tags,.gemtags
nmap <c-s> :update<cr>
vmap <c-s> <c-c>:update<cr>
imap <c-s> <c-o>:update<cr>
if (has("termguicolors"))
set termguicolors
endif
colorscheme tender
highlight ExtraWhitespace ctermbg=203 guibg=red
match ExtraWhitespace /\s\+$/
" vim-airline
" set lighline theme inside lightline config
let g:lightline = { 'colorscheme': 'tender' }
set laststatus=2
set timeoutlen=50
let g:netrw_liststyle=3
let g:netrw_banner=0