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

Side by Side Diff: tools/vim/clang-format.vim

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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 | « tools/vim/chromium.ycm_extra_conf.py ('k') | tools/vim/filetypes.vim » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 " Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 " Use of this source code is governed by a BSD-style license that can be
3 " found in the LICENSE file.
4
5 " Binds cmd-shift-i (on Mac) or ctrl-shift-i (elsewhere) to invoking
6 " clang-format.py.
7 " It will format the current selection (and if there's no selection, the
8 " current line.)
9
10 let s:script = expand('<sfile>:p:h') .
11 \'/../../buildtools/clang_format/script/clang-format.py'
12
13 if has('mac')
14 execute "map <D-I> :pyf " . s:script . "<CR>"
15 execute "imap <D-I> <ESC>:pyf " . s:script . "<CR>i"
16 else
17 execute "map <C-I> :pyf " . s:script . "<CR>"
18 execute "imap <C-I> <ESC>:pyf " . s:script . "<CR>i"
19 endif
OLDNEW
« no previous file with comments | « tools/vim/chromium.ycm_extra_conf.py ('k') | tools/vim/filetypes.vim » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698