Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Created December 7, 2012 15:16
Show Gist options
  • Select an option

  • Save mageekguy/4233871 to your computer and use it in GitHub Desktop.

Select an option

Save mageekguy/4233871 to your computer and use it in GitHub Desktop.
My atoum's vim commands
// First install the atoum plugin (https://github.com/atoum/atoum/wiki/atoum-et-VIM)
// Second, add these lines to your .vimrc or (much better) to your php ftplugin :
nnoremap <buffer> <silent> <CR> :Atoum<CR> // Using <Enter> run atoum for all methods of the current file
nnoremap <buffer> <silent> <C-CR> :Atoum --debug<CR> Using <Ctrl-Enter> run atoum in debug mode for all methods of the current file (https://github.com/atoum/atoum/wiki/Le-mode-%22debug%22)
nnoremap <buffer> <silent> <S-CR> :execute ':Atoum -m *::' . substitute(getline(search('.*function\s\+test[^(]\+(', 'cnb')), '.*function\s\+\(test[^(]\+\)(.*$', '\1', '')<CR> // Using <Shift-Enter> run atoum only for the current method of the current file, ie the method which has the cursor in it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment