2014-11-13 04:16:09 -05:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" cursor line
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
highlight CursorLine ctermbg=NONE cterm=NONE gui=NONE
|
|
|
|
highlight LineNr ctermfg=darkgrey
|
|
|
|
set cursorline
|
|
|
|
|
2014-05-09 15:12:52 -04:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2014-11-22 02:21:54 -05:00
|
|
|
" => my custom settings
|
2014-05-09 15:12:52 -04:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
set number " line numbers
|
|
|
|
set nocompatible " choose no compatibility with legacy vi
|
|
|
|
set nowrap " don't wrap lines
|
2015-02-12 11:21:14 -05:00
|
|
|
let &colorcolumn="80,".join(range(120,999),",")
|
|
|
|
highlight ColorColumn ctermbg=235
|
2014-11-22 02:21:54 -05:00
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => trailing whitespaces (show & remove on save)
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
set list
|
|
|
|
set listchars=tab:▸\ ,trail:·
|
|
|
|
autocmd BufWritePre * :%s/\s\+$//e
|
2014-05-09 15:25:01 -04:00
|
|
|
|
2014-06-13 08:43:35 -04:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => custom key maps
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
" breaking the habits
|
|
|
|
noremap <Up> <NOP>
|
|
|
|
noremap <Down> <NOP>
|
|
|
|
noremap <Left> <NOP>
|
|
|
|
noremap <Right> <NOP>
|
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => custom ... WTF, don't remember ;)
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
2014-05-09 15:25:01 -04:00
|
|
|
augroup VimCSS3Syntax
|
|
|
|
autocmd!
|
|
|
|
autocmd FileType css setlocal iskeyword+=-
|
|
|
|
augroup END
|
2014-05-09 16:29:33 -04:00
|
|
|
|
|
|
|
" autoreload .vimrc
|
|
|
|
augroup reload_vimrc " {
|
|
|
|
autocmd!
|
|
|
|
autocmd BufWritePost $MYVIMRC source $MYVIMRC
|
|
|
|
augroup END " }
|
|
|
|
|
2014-06-13 08:43:35 -04:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => custom filetypes
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2014-05-09 16:29:33 -04:00
|
|
|
|
|
|
|
" ruby
|
|
|
|
au FileType ruby,eruby setl ofu=rubycomplete#Complete
|
|
|
|
au FileType html,xhtml setl ofu=htmlcomplete#CompleteTags
|
|
|
|
au FileType css setl ofu=csscomplete#CompleteCSS
|
|
|
|
|
|
|
|
" markdown
|
|
|
|
augroup markdown
|
|
|
|
au! BufRead,BufNewFile *.mkd setfiletype mkd
|
|
|
|
au! BufRead,BufNewFile *.markdown setfiletype mkd
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
" Cucumber
|
|
|
|
autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber
|
|
|
|
|
|
|
|
" haml
|
|
|
|
autocmd BufNewFile,BufRead *.haml setf haml
|
|
|
|
autocmd BufNewFile,BufRead *.sass setf sass
|
|
|
|
autocmd BufNewFile,BufRead *.scss setf scss
|