From 49550fc8c9b39dad903011a18a7bd2cfc568f12d Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 2 Sep 2015 10:35:23 +0200 Subject: [PATCH] [vim]Kernel coding style plugin --- .vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.vimrc b/.vimrc index 21e53e4..c2b65a6 100644 --- a/.vimrc +++ b/.vimrc @@ -27,6 +27,7 @@ " M-up/down vertical size " gc comment/uncomment " C-K indent selection +" \-k Set Kernel Coding style " Use snippets with tab e.g : for (see .vim/bundle/vim-snippets/snippets for available " snippets) @@ -411,6 +412,12 @@ map :NERDTreeToggle map :GitGutterSignsToggle map :GitGutterLineHighlightsToggle +"""""""""" +" KernelFormatting +"""""""""" + +nnoremap k :SetLinuxFormatting + """"""""" " Plugin" """"""""" @@ -483,4 +490,7 @@ Plugin 'vim-scripts/Align' " open file at the given line with the file.txt:20 syntax Plugin 'bogado/file-line' + +" Kernel Formatting +Plugin 'gregkh/kernel-coding-style.git' call vundle#end()