Skip to content

Commit a235559

Browse files
author
Matt McKeon
committed
Try out cdebug as a DBGP debugging client.
- Vdebug eats my F5 mapping, so change it to F6. - Also make Thor files be recognized as Ruby.
1 parent cfb8dbb commit a235559

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

bundle_list

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ https://github.com/widox/vim-buffer-explorer-plugin.git
2424
https://github.com/zeis/vim-kolor.git
2525
https://github.com/scrooloose/syntastic.git
2626
https://github.com/elzr/vim-json.git
27+
# DBGP debugger client
28+
https://github.com/joonty/vdebug.git

vimrc

+8-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ map <A-9> 9gt
233233
234234
" blowout trailing whitespaces,
235235
" they make baby jesus cry
236-
nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
236+
nnoremap <silent> <F6> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
237237
" toggle paste mode
238238
map <F8> :set paste!<Bar>set paste?<CR>
239239
" toggle spell checking
@@ -252,7 +252,7 @@ if !exists("mm_filetype_config")
252252
autocmd BufNewFile,BufRead svn-commit.* set spell
253253
autocmd BufNewFile,BufRead COMMIT_EDITMSG set spell
254254

255-
" chage :make for different languages
255+
" change :make for different languages
256256
autocmd FileType php set makeprg=php\ -l\ %
257257
" error format for both php -l and phpcs
258258
autocmd FileType php set errorformat=\"%f\"\\,%l\\,%c\\,%t%*[a-zA-Z]\\,\"%m\",%m\ in\ %f\ on\ line\ %l
@@ -261,6 +261,12 @@ if !exists("mm_filetype_config")
261261

262262
" source code gets wrapped
263263
autocmd FileType javascript,php,html,python,actionscript set autoindent
264+
265+
" Thor classes are just Ruby
266+
autocmd BufNewFile,BufRead *.thor set filetype=ruby
267+
autocmd BufNewFile,BufRead *.thor set tabstop=2 " number of spaces for a tab
268+
autocmd BufNewFile,BufRead *.thor set softtabstop=2 " using 2 spaces
269+
autocmd BufNewFile,BufRead *.thor set shiftwidth=2 " number of spaces to autoindent
264270
endif
265271

266272
" setup PHP Code Sniffer

0 commit comments

Comments
 (0)