From f65fd8327e772785c899525a2113df3f05042cf1 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 9 May 2016 23:49:32 +0200 Subject: [PATCH] Adding clang format to vim. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc b/vimrc index cb27b7a..f23f3dc 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,8 @@ if exists("*vundle#begin") Plugin 'tikhomirov/vim-glsl' Plugin 'chrisbra/vim-show-whitespace' Plugin 'krisajenkins/vim-projectlocal' + Plugin 'xolox/vim-misc' + Plugin 'rhysd/vim-clang-format' " All of your Plugins must be added before the following line call vundle#end() " required @@ -75,3 +77,7 @@ au FileType tex :map :! if [ -f Makefile ]; then; make; else; pdflatex %:t; "Highlight chars after column 80 match ErrorMsg '\%>80v.\+' + +"Map ctrl+f to ClangFormat +:nnoremap :ClangFormat +:vnoremap :ClangFormat