Created
December 9, 2012 19:17
-
-
Save mxwell/4246602 to your computer and use it in GitHub Desktop.
Basic config for Linux Kernel C Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set noexpandtab " use tabs, not spaces | |
set tabstop=8 " tabstops of 8 | |
set shiftwidth=8 " indents of 8 | |
set textwidth=78 " screen in 80 columns wide, wrap at 78 | |
set autoindent smartindent " turn on auto/smart indenting | |
set smarttab " make <tab> and <backspace> smarter | |
set backspace=eol,start,indent " allow backspacing over indent, eol, & start | |
filetype plugin indent on | |
syntax on | |
syn keyword cType uint ubyte ulong uint64_t uint32_t uint16_t uint8_t boolean_t int64_t int32_t int16_t int8_t u_int64_t u_int32_t u_int16_t u_int8_t | |
syn keyword cOperator likely unlikely | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment