dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 92d26a062d0fbd0ce08db5d8821f2544c62f5ee8
parent b43200539356a57e6f7e014e8cd1ec36a65c3920
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Thu, 19 Feb 2015 23:19:37 +0200

vim: Add a function to respect the Linux kernel CS

Diffstat:
.vimrc | 16++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/.vimrc b/.vimrc @@ -103,8 +103,17 @@ set pastetoggle=<F2> "Spell checking map <F7> :set spell<CR> -"Enable mouse in vim -set mouse=a +" Set options to comply with the linux kernel coding style +function Kernel() + set noexpandtab + set tabstop=8 + set softtabstop=8 + set shiftwidth=8 + set cinoptions=:0,l1,t0,g0,(0 +endfunction + +"Go in kernel mode coding style +map <F8> :call Kernel() <Enter> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Settings @@ -116,3 +125,6 @@ set cursorline set langmap=ΑA,ΒB,ΨC,ΔD,ΕE,ΦF,ΓG,ΗH,ΙI,ΞJ,ΚK,ΛL,ΜM,ΝN,ΟO,ΠP,QQ,ΡR set langmap+=ΣS,ΤT,ΘU,ΩV,WW,ΧX,ΥY,ΖZ,αa,βb,ψc,δd,εe,φf,γg,ηh,ιi,ξj set langmap+=κk,λl,μm,νn,οo,πp,qq,ρr,σs,τt,θu,ωv,ςw,χx,υy,ζz + +"Enable mouse in vim +set mouse=a