Created
March 22, 2018 23:02
-
-
Save ph4un00b/610fcd83cc109903bcf3e9a3926d6acd to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set foldmethod=indent | |
:set foldlevelstart=20 | |
:set enc=utf-8 | |
:set relativenumber | |
:set number | |
:set autoindent | |
:set expandtab | |
:set smarttab | |
:set softtabstop=2 | |
:set shiftwidth=2 | |
:set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:· | |
":set listchars=tab:'t',eol:'e'" | |
"switchbuf=useopen,usetab | |
:set ruler | |
:set showcmd | |
:set wrap | |
:set list | |
:set cmdheight=3 | |
:set ts=2 | |
:set noswapfile | |
:syntax enable | |
', 'c')etreg('j', ':!clear; RAILS_ENV=test rake spec:javascripts | |
:call setreg('t', ':!clear; RAILS_ENV=test rake test', 'c') | |
:call setreg('u', ':!clear; RAILS_ENV=test rake test:units', 'c') | |
:call setreg('f', ':!clear; RAILS_ENV=test rake test:functionals', 'c') | |
:call setreg('c', ':!clear; RAILS_ENV=test ruby -Ilib:test % -l ' . line("."), 'c') | |
let coffee_compiler = "/usr/local/bin/coffee" | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
if executable("ag") | |
" Use ag over grep | |
set grepprg=ag\ --nogroup\ --nocolor | |
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore | |
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | |
" ag is fast enough that CtrlP doesn't need to cache | |
let g:ctrlp_use_caching = 0 | |
endif | |
" bind K to grep word under cursor | |
nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR> | |
let g:hardtime_default_on = 1 | |
" filenames like *.xml, *.html, *.xhtml, ... | |
" Then after you press <kbd>></kbd> in these files, this plugin will try to close the current tag. | |
" | |
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.vue,*.erb' | |
" integer value [0|1] | |
" This will make the list of non closing tags case sensitive (e.g. `<Link>` will be closed while `<link>` won't.) | |
" | |
let g:closetag_emptyTags_caseSensitive = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment