I use Vim to edit a Java file, but I find that the Vim formats of Java file formats are very different from Eclipse.
If I select the following code and press = , Vim does not format the code as I would like. Can anybody help me?
Before format:
case RINGTONE_PICKED: { Uri pickedUri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI); handleRingtonePicked(pickedUri); break; } case PHOTO_PICKED_WITH_DATA: { if (mPhotoEditorView != null) { final Bitmap photo = data.getParcelableExtra("data"); mPhotoEditorView.setPhotoBitmap(photo); } else {
After format:
case RINGTONE_PICKED: { Uri pickedUri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI); handleRingtonePicked(pickedUri); break; } case PHOTO_PICKED_WITH_DATA: { if (mPhotoEditorView != null) { final Bitmap photo = data.getParcelableExtra("data"); mPhotoEditorView.setPhotoBitmap(photo); } else {
This is what I want:
case RINGTONE_PICKED: { Uri pickedUri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI); handleRingtonePicked(pickedUri); break; } case PHOTO_PICKED_WITH_DATA: { if (mPhotoEditorView != null) { final Bitmap photo = data.getParcelableExtra("data"); mPhotoEditorView.setPhotoBitmap(photo); } else {
source share