Commits

Yuki KODAMA committed 6e6c6fb

vim: add keymaps to insert new line w/o comment completion

  • Participants
  • Parent commits 4e826fe
  • Branches p183

Comments (0)

Files changed (1)

 " clipboard copy
 nmap <silent> gy      <s-v><c-insert>
 vmap <silent> gy      <c-insert>
+
+" insert a new line w/o comment completion
+nmap <silent> go          :setlocal formatoptions-=o<cr>o
+nmap <silent> gO          :setlocal formatoptions-=o<cr>O
+inoremap <silent> <esc>   <esc>:setlocal formatoptions+=o<cr>