sponsor Vim development Vim logo Vim Book Ad

linuxsty.vim : Vim plugin to respect the Linux kernel coding style

 script karma  Rating 290/135, Downloaded by 10850  Comments, bugs, improvements  Vim wiki

created by
Vivien Didelot
 
script type
indent
 
description
This plugin is meant to help you respecting the Linux kernel coding style, described at:
http://www.kernel.org/doc/Documentation/CodingStyle

It will automatically apply known rules to kernel related files, such as .c, .h, Kconfig and patch files.
The main rules are about indentation and syntax error highlighting (like exceeding 80 chars).

If you have any comments, fixes or requests, feel free to contact me or send me a patch.
The development also takes place at https://github.com/vivien/vim-linux-coding-style.
 
install details
Just copy the linuxsty.vim file in your ~/.vim/plugin directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
linuxsty.vim 0.4 2015-11-13 7.0 Vivien Didelot Don't highlight trailing whitespace in insert mode, add some kernel types, add an option to apply style conditionally as well as a LinuxCodingStyle command.
linuxsty.vim 0.3 2014-09-25 7.0 Vivien Didelot set softtabstop and align parameters with the opening parenthesis
linuxsty.vim 0.2 2013-05-01 7.0 Vivien Didelot Fix syntax highlighting
linuxsty.vim 0.1 2012-12-24 7.0 Vivien Didelot Initial upload
ip used for rating: 18.97.14.83

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github