Skip to content

Commit 161fb63

Browse files
committed
vimrc: Fix scoping of textwidth for git commits
1 parent a1fb576 commit 161fb63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ au FileType python nnoremap ]l :IPythonCellExecuteCellVerboseJump<CR>
8787
8888
" Define how concealed text is treated (default: 0, i.e. no conceal)
8989
au FileType tex,markdown setlocal conceallevel=2
90-
au FileType gitcommit set tw=72 " automatically wrap long commit messages
90+
au FileType gitcommit setlocal tw=72 " automatically wrap long commit messages
9191
au FileType gitcommit setlocal spell
9292

9393
" Auto-highlight current word when idle

0 commit comments

Comments
 (0)