Created
December 7, 2012 15:16
-
-
Save mageekguy/4233871 to your computer and use it in GitHub Desktop.
My atoum's vim commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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