VIM: Makes vim auto-add comment character

It will do this in insert mode when pushing <enter> or when in normal
mode when pushing o or O
Jonathan Hodgson 4 years ago
parent 925ca95619
commit 6dc5cda0d8
  1. 5
      nvim/.config/nvim/plugin/settings.vim

@ -38,3 +38,8 @@ set linebreak
" Sets tool for opening non-text files with gx
" If in netrw, this is run with just x
let g:netrw_browsex_viewer = "opout"
" Automatically insert comment leader after hitting enter
set formatoptions+=r
" Automatically insert comment leader after hitting o or O
set formatoptions+=o

Loading…
Cancel
Save