summaryrefslogtreecommitdiffstats
path: root/tools/vim
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-06 22:29:37 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-06 22:29:37 +0000
commit4cc9f223d8b5cffc303bb177eee960008fc2bf1e (patch)
tree3c2b3e6398f44790c3ca8832d58d6a0d64127ee2 /tools/vim
parentf8a9a87b2554ac2bd7127ab4c62c4fe5ce0afc28 (diff)
downloadchromium_src-4cc9f223d8b5cffc303bb177eee960008fc2bf1e.zip
chromium_src-4cc9f223d8b5cffc303bb177eee960008fc2bf1e.tar.gz
chromium_src-4cc9f223d8b5cffc303bb177eee960008fc2bf1e.tar.bz2
Add emacs and vim helper config files for gyp settings.
Review URL: http://codereview.chromium.org/7300011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/vim')
-rw-r--r--tools/vim/filetypes.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/vim/filetypes.vim b/tools/vim/filetypes.vim
new file mode 100644
index 0000000..930b7ae
--- /dev/null
+++ b/tools/vim/filetypes.vim
@@ -0,0 +1,8 @@
+" To get syntax highlighting and tab settings for gyp(i) files, add the
+" following to your .vimrc file:
+" so /path/to/src/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
+augroup END