Skip to content

Commit 361b512

Browse files
committed
add normal comment style
1 parent 68a4861 commit 361b512

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.vim/ftplugin/java.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ inoremap <buffer> <F9> <C-O>A = new <Esc>^yE<End>pA();<Left><Left>
7979
" To create a javadoc comment above the current line
8080
nnoremap Zc O/**<CR><CR>/<Up><Space>
8181
82+
" To create a normal multi-line comment above the current line
83+
nnoremap Zn O/*<CR><CR>/<Up><Space>
84+
8285
" Useful when editing javadoc comments
8386
nnoremap ZR :se formatoptions+=ro<CR>
8487
nnoremap Zr :se formatoptions-=ro<CR>

0 commit comments

Comments
 (0)