Skip to content

Instantly share code, notes, and snippets.

@mxwell
Created December 9, 2012 19:17
Show Gist options
  • Save mxwell/4246602 to your computer and use it in GitHub Desktop.
Save mxwell/4246602 to your computer and use it in GitHub Desktop.
Basic config for Linux Kernel C Style
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