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

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

Issue 523673002: [tools/vim/clang-format] Remove spurious echo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 " Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 2 " Use of this source code is governed by a BSD-style license that can be
3 " found in the LICENSE file. 3 " found in the LICENSE file.
4 4
5 " Binds cmd-shift-i (on Mac) or ctrl-shift-i (elsewhere) to invoking 5 " Binds cmd-shift-i (on Mac) or ctrl-shift-i (elsewhere) to invoking
6 " clang-format.py. 6 " clang-format.py.
7 " It will format the current selection (and if there's no selection, the 7 " It will format the current selection (and if there's no selection, the
8 " current line.) 8 " current line.)
9 9
10 let s:script = expand('<sfile>:p:h') . 10 let s:script = expand('<sfile>:p:h') .
11 \'/../../buildtools/clang_format/script/clang-format.py' 11 \'/../../buildtools/clang_format/script/clang-format.py'
12 echo s:script
13 12
14 if has('mac') 13 if has('mac')
15 execute "map <D-I> :pyf " . s:script . "<CR>" 14 execute "map <D-I> :pyf " . s:script . "<CR>"
16 execute "imap <D-I> <ESC>:pyf " . s:script . "<CR>i" 15 execute "imap <D-I> <ESC>:pyf " . s:script . "<CR>i"
17 else 16 else
18 execute "map <C-I> :pyf " . s:script . "<CR>" 17 execute "map <C-I> :pyf " . s:script . "<CR>"
19 execute "imap <C-I> <ESC>:pyf " . s:script . "<CR>i" 18 execute "imap <C-I> <ESC>:pyf " . s:script . "<CR>i"
20 endif 19 endif
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