Skip to content

Instantly share code, notes, and snippets.

@note103
Created April 8, 2016 11:30
Show Gist options
  • Save note103/bd7ffaa54f012aa8f55e2dad365d8790 to your computer and use it in GitHub Desktop.
Save note103/bd7ffaa54f012aa8f55e2dad365d8790 to your computer and use it in GitHub Desktop.
" 改行時にインデントを一段深くする
nnoremap <Leader>rt A<CR><ESC>I<TAB><ESC>A
" 同階層インデントのまま改行
nnoremap <Leader>ri A<CR>
" インデント解除して改行
nnoremap <Leader>rh o<ESC>I
" 行頭ハイフンのリスト化
nnoremap <Leader>rr <ESC>I-
" 行頭ハイフンのリスト化を矩形選択で複数行一気に
vnoremap <Leader>rr I- <ESC>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment