@@ -233,7 +233,7 @@ map <A-9> 9gt
233
233
234
234
" blowout trailing whitespaces,
235
235
" 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>
237
237
" toggle paste mode
238
238
map <F8> :set paste!<Bar> set paste?<CR>
239
239
" toggle spell checking
@@ -252,7 +252,7 @@ if !exists("mm_filetype_config")
252
252
autocmd BufNewFile ,BufRead svn-commit.* set spell
253
253
autocmd BufNewFile ,BufRead COMMIT_EDITMSG set spell
254
254
255
- " chage :make for different languages
255
+ " change :make for different languages
256
256
autocmd FileType php set makeprg = php\ - l \ %
257
257
" error format for both php -l and phpcs
258
258
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")
261
261
262
262
" source code gets wrapped
263
263
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
264
270
endif
265
271
266
272
" setup PHP Code Sniffer
0 commit comments