I'm trying to get a command I can run within vim to get jscs auto correct formatting issues in my code. So far I've come up with :
:nmap <F5> :!jscs -x .<CR>
which is ok, but it runs it on the entire directory and I need to confirm to vim that I want to reload the buffer. Is there a way to get vim to fix the current file only and didsplay the changes without reloading?