Skip to content

seanvk/vim-addon-linux-coding-style

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

vim-addon-linux-coding-style

Vim plugin to respect the Linux kernel coding style

Linux Kernel coding standards, available here: https://www.kernel.org/doc/Documentation/CodingStyle

Installation

Drop the plugin into your Pathogen bundle/ directory, or your personal scripts directory. Simple!

Usage

To prevent these settings from overwriting your personal settings for C and C++ files, they will not be auto-applied to the files you open. You must invoke the appropriate 'SetLinuxFormatting' command to apply them. Also, changes will only take place in your local buffer - they are not global settings, and there is no way to apply them to all buffers at once, for now.

An example of mapping applying the settings using the command key:

nnoremap <silent> <leader>k :SetLinuxFormatting<cr><cr>

About

Vim plugin to respect the Linux kernel coding style http://www.vim.org/scripts/script.php?script_id=4369

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%