Skip to content

Commit

Permalink
vim: Improve autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samba committed Jun 26, 2021
1 parent 4eafedb commit d001c62
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dotfiles/.vimrc
Expand Up @@ -108,7 +108,13 @@ set modeline " Enable per-file configuration lines

set regexpengine=1

set formatoptions=qrn1 " sensible auto-format behavior
" Reformats text in comments and text
" `gq` formats multiple (selected) lines
" `gw` formats lines but returns the cursor to its original position
set formatoptions=qrncjp1 " sensible auto-format behavior



" =}}}

" Shortcuts, many toggling above behaviors {{{
Expand Down

0 comments on commit d001c62

Please sign in to comment.