1*7249d1a6SKrzysztof Kosiński" Copyright 2015 Google Inc. All Rights Reserved. 2*7249d1a6SKrzysztof Kosiński" 3*7249d1a6SKrzysztof Kosiński" Licensed under the Apache License, Version 2.0 (the "License"); 4*7249d1a6SKrzysztof Kosiński" you may not use this file except in compliance with the License. 5*7249d1a6SKrzysztof Kosiński" You may obtain a copy of the License at 6*7249d1a6SKrzysztof Kosiński" 7*7249d1a6SKrzysztof Kosiński" http://www.apache.org/licenses/LICENSE-2.0 8*7249d1a6SKrzysztof Kosiński" 9*7249d1a6SKrzysztof Kosiński" Unless required by applicable law or agreed to in writing, software 10*7249d1a6SKrzysztof Kosiński" distributed under the License is distributed on an "AS IS" BASIS, 11*7249d1a6SKrzysztof Kosiński" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*7249d1a6SKrzysztof Kosiński" See the License for the specific language governing permissions and 13*7249d1a6SKrzysztof Kosiński" limitations under the License. 14*7249d1a6SKrzysztof Kosiński""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 15*7249d1a6SKrzysztof Kosiński" VIM command for YAPF support 16*7249d1a6SKrzysztof Kosiński" 17*7249d1a6SKrzysztof Kosiński" Place this script in your ~/.vim/plugin directory. You can call the 18*7249d1a6SKrzysztof Kosiński" command YAPF. If you omit the range, it will reformat the whole 19*7249d1a6SKrzysztof Kosiński" buffer. 20*7249d1a6SKrzysztof Kosiński" 21*7249d1a6SKrzysztof Kosiński" example: 22*7249d1a6SKrzysztof Kosiński" :YAPF " formats whole buffer 23*7249d1a6SKrzysztof Kosiński" :'<,'>YAPF " formats lines selected in visual mode 24*7249d1a6SKrzysztof Kosiński 25*7249d1a6SKrzysztof Kosińskicommand! -range=% YAPF <line1>,<line2>call yapf#YAPF() 26