OLD | NEW |
---|---|
(Empty) | |
1 " Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
scottmg
2014/01/16 19:42:12
LIVE IN THE NOW
Nico
2014/01/16 19:44:12
but i was younger back then
| |
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 \'/../../third_party/clang_format/scripts/clang-format.py' | |
12 echo s:script | |
13 | |
14 if has('mac') | |
15 execute "map <D-I> :pyf " . s:script . "<CR>" | |
16 execute "imap <D-I> <ESC>:pyf " . s:script . "<CR>i" | |
17 else | |
18 execute "map <C-I> :pyf " . s:script . "<CR>" | |
19 execute "imap <C-I> <ESC>:pyf " . s:script . "<CR>i" | |
20 endif | |
21 | |
OLD | NEW |