Skip to content

Commit

Permalink
.vimrc:
Browse files Browse the repository at this point in the history
Show an error if .js files have a line > 79 chars (same as python).
  • Loading branch information
larsbutler committed Apr 10, 2013
1 parent 26872f7 commit 4252158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .vimrc
Expand Up @@ -29,6 +29,8 @@
" If the open file is a .py file, show a visual error if line length >= 80 chars.
" This makes pep8 happy.
:autocmd BufRead,BufNewFile *.py match ErrorMsg '\%>79v.\+'
" Display an error in .js files as well if the line grows beyond 79 chars.
:autocmd BufRead,BufNewFile *.js match ErrorMsg '\%>79v.\+'
" When a .py file is written, recreate tags in the current dir.
" au BufWritePost *.py silent! !ctags -R &

Expand Down

0 comments on commit 4252158

Please sign in to comment.