Skip to content

Commit

Permalink
Automatically wrap lines in Markdown in Vim
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Oct 31, 2018
1 parent 34dcd82 commit adb505d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions programs/vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ set backspace=indent,eol,start " can erase past chars, autoindent, and newlines
set clipboard^=unnamed,unnamedplus " use the system clipboard
" disable automatic comment insertion
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Automatically wrap lines for Markdown files
au BufRead,BufNewFile *.md setlocal textwidth=80
" Extra information
set laststatus=2 " for airline plugin
set number " show line numbers
Expand Down

0 comments on commit adb505d

Please sign in to comment.