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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/vim/filetypes.vim
diff --git a/tools/vim/filetypes.vim b/tools/vim/filetypes.vim
index 3e7c8f9eada3264b1e8dde4da57e46c8bb131a34..8e0ed98ae5aa770629be428ad062b84f045027d1 100644
--- a/tools/vim/filetypes.vim
+++ b/tools/vim/filetypes.vim
@@ -1,9 +1,10 @@
-" To get syntax highlighting and tab settings for gyp(i) and DEPS files,
-" add the following to your .vimrc file:
+" To get syntax highlighting and tab settings for gyp(i), DEPS, and 'git cl'
+" changelist description files, add the following to your .vimrc file:
" so /path/to/src/tools/vim/filetypes.vim
-
+"
augroup filetype
au! BufRead,BufNewFile *.gyp set filetype=python expandtab tabstop=2 shiftwidth=2
au! BufRead,BufNewFile *.gypi set filetype=python expandtab tabstop=2 shiftwidth=2
au! BufRead,BufNewFile DEPS set filetype=python expandtab tabstop=2 shiftwidth=2
+ au! BufRead,BufNewFile cl_description* set filetype=gitcommit
augroup END
« 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