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

Unified Diff: tools/vim/filetypes.vim

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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 | « tools/vim/clang-format.vim ('k') | tools/vim/mojom/ftdetect/mojomfiletype.vim » ('j') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..3e7c8f9eada3264b1e8dde4da57e46c8bb131a34
--- /dev/null
+++ b/tools/vim/filetypes.vim
@@ -0,0 +1,9 @@
+" To get syntax highlighting and tab settings for gyp(i) and DEPS 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
+augroup END
« no previous file with comments | « tools/vim/clang-format.vim ('k') | tools/vim/mojom/ftdetect/mojomfiletype.vim » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698