Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: tools/vim/filetypes.vim

Issue 2101703002: [vim] Detect git-cl description files as gitcommit files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 " To get syntax highlighting and tab settings for gyp(i) and DEPS files, 1 " To get syntax highlighting and tab settings for gyp(i), DEPS, and 'git cl'
2 " add the following to your .vimrc file: 2 " changelist description files, add the following to your .vimrc file:
3 " so /path/to/src/tools/vim/filetypes.vim 3 " so /path/to/src/tools/vim/filetypes.vim
4 4 "
5 augroup filetype 5 augroup filetype
6 au! BufRead,BufNewFile *.gyp set filetype=python expandtab tabstop=2 shiftwidth=2 6 au! BufRead,BufNewFile *.gyp set filetype=python expandtab tabstop=2 shiftwidth=2
7 au! BufRead,BufNewFile *.gypi set filetype=python expandtab tabstop=2 shiftwidth=2 7 au! BufRead,BufNewFile *.gypi set filetype=python expandtab tabstop=2 shiftwidth=2
8 au! BufRead,BufNewFile DEPS set filetype=python expandtab tabstop=2 shiftwidth=2 8 au! BufRead,BufNewFile DEPS set filetype=python expandtab tabstop=2 shiftwidth=2
9 au! BufRead,BufNewFile cl_description* set filetype=gitcommit
9 augroup END 10 augroup END
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698