Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " == Strip trailing white spaces =============================================
- fun! <SID>StripTrailingWhitespaces()
- let l = line(".")
- let c = col(".")
- %s/\s\+$//e
- call cursor(l, c)
- endfun
- set pastetoggle=<F2>
- " Vim test -> useful with byebug
- autocmd FileType ruby nmap <leader>ta :call RspecRunAll()<CR>
- autocmd FileType ruby nmap <silent> <leader>td :TestNearest -strategy=neovim<CR>
- autocmd FileType ruby nmap <leader>tn :split \| e term://./bin/rspec %:<C-r>=line('.')<CR><CR>
- autocmd FileType ruby nmap <leader>a :A<CR>
- NeoBundle 'janko-m/vim-test'
- NeoBundle 'tpope/vim-rails'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement