Some old stuff, some ruby
This commit is contained in:
parent
7705380dce
commit
8ed71cb139
2 changed files with 15 additions and 2 deletions
15
vimrc
15
vimrc
|
@ -19,12 +19,16 @@ Plugin 'godlygeek/tabular'
|
||||||
Plugin 'itchyny/lightline.vim'
|
Plugin 'itchyny/lightline.vim'
|
||||||
Plugin 'nathanaelkane/vim-indent-guides'
|
Plugin 'nathanaelkane/vim-indent-guides'
|
||||||
Plugin 'rodjek/vim-puppet'
|
Plugin 'rodjek/vim-puppet'
|
||||||
|
Plugin 'thoughtbot/vim-rspec'
|
||||||
|
Plugin 'tpope/vim-dispatch'
|
||||||
|
Plugin 'tpope/vim-endwise'
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
Plugin 'tpope/vim-markdown'
|
Plugin 'tpope/vim-markdown'
|
||||||
Plugin 'tpope/vim-rails'
|
Plugin 'tpope/vim-rails'
|
||||||
Plugin 'tpope/vim-repeat'
|
Plugin 'tpope/vim-repeat'
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
Plugin 'tpope/vim-vividchalk'
|
Plugin 'tpope/vim-vividchalk'
|
||||||
|
Plugin 'vim-ruby/vim-ruby'
|
||||||
|
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
@ -134,7 +138,6 @@ map <Leader>k :wincmd k<cr>
|
||||||
map <Leader>l :wincmd l<cr>
|
map <Leader>l :wincmd l<cr>
|
||||||
|
|
||||||
" auto character alignment
|
" auto character alignment
|
||||||
map <Leader>t :Tabularize /
|
|
||||||
map <Leader>t> :Tabularize /=><cr>
|
map <Leader>t> :Tabularize /=><cr>
|
||||||
map <Leader>te :Tabularize /=<cr>
|
map <Leader>te :Tabularize /=<cr>
|
||||||
|
|
||||||
|
@ -165,10 +168,20 @@ map <Leader>st :call SyntaxToggle()<cr>
|
||||||
map <Leader>sz :so ~/.vimrc<cr>
|
map <Leader>sz :so ~/.vimrc<cr>
|
||||||
map <Leader>ts :sp ~/tool-sharpener.txt<cr>
|
map <Leader>ts :sp ~/tool-sharpener.txt<cr>
|
||||||
|
|
||||||
|
" rspec
|
||||||
|
map <Leader>t :w<cr>:call RunNearestSpec()<cr>
|
||||||
|
|
||||||
" Set style
|
" Set style
|
||||||
colorscheme vividchalk
|
colorscheme vividchalk
|
||||||
" special case colors set at end of file via function
|
" special case colors set at end of file via function
|
||||||
|
|
||||||
|
" dispatch fix for bundle exec rspec always quickfixing
|
||||||
|
let g:dispatch_compilers = {
|
||||||
|
\ 'bundle exec': ''}
|
||||||
|
|
||||||
|
" rspec
|
||||||
|
let g:rspec_command = "Dispatch bundle exec rspec {spec}"
|
||||||
|
|
||||||
" Indentation
|
" Indentation
|
||||||
let g:indent_guides_guide_size=1
|
let g:indent_guides_guide_size=1
|
||||||
let g:indent_guides_enable_on_vim_startup=1
|
let g:indent_guides_enable_on_vim_startup=1
|
||||||
|
|
|
@ -19,7 +19,7 @@ precmd() {
|
||||||
|
|
||||||
zstyle ':vcs_info:*' enable git hg svn
|
zstyle ':vcs_info:*' enable git hg svn
|
||||||
zstyle ':vcs_info:*:prompt:*' nvcsformats ""
|
zstyle ':vcs_info:*:prompt:*' nvcsformats ""
|
||||||
zstyle ':vcs_info:*:prompt:*' formats "[%F{yellow}%b%f%u%c]"
|
zstyle ':vcs_info:*:prompt:*' formats "[%F{cyan}%b%f%u%c]"
|
||||||
vcs_info 'prompt'
|
vcs_info 'prompt'
|
||||||
}
|
}
|
||||||
local vcs='${vcs_info_msg_0_}'
|
local vcs='${vcs_info_msg_0_}'
|
||||||
|
|
Loading…
Add table
Reference in a new issue