diff mbox

vimrc: fix TAB settings

Message ID alpine.LSU.2.20.1701041714040.2438@anthias.pfeifer.com
State New
Headers show

Commit Message

Gerald Pfeifer Jan. 4, 2017, 9:14 p.m. UTC
On Mon, 14 Nov 2016, Martin Liška wrote:
> Following patch adds TAB settings to contrib/vimrc file.

> Hope it looks reasonable?


This does not appear applied, are you waiting for approval?  If
so, for something like this in contrib we don't need to get overly
strict and I'd say go ahead.

Gerald

Comments

Martin Liška Jan. 5, 2017, 8:56 a.m. UTC | #1
On 01/04/2017 10:14 PM, Gerald Pfeifer wrote:
> On Mon, 14 Nov 2016, Martin Liška wrote:

>> Following patch adds TAB settings to contrib/vimrc file.

>> Hope it looks reasonable?

> 

> This does not appear applied, are you waiting for approval?  If

> so, for something like this in contrib we don't need to get overly

> strict and I'd say go ahead.

> 

> Gerald

> 


Yep, I've been waiting for approval :) Installed as r244094.

Thanks
Martin
diff mbox

Patch

>From 84eb32c4e84b87d690033f7505b8570427ab8468 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Sun, 13 Nov 2016 12:05:48 +0100
Subject: [PATCH] vimrc: fix TAB settings

---
 contrib/vimrc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/vimrc b/contrib/vimrc
index 34e8f35..7c0c587 100644
--- a/contrib/vimrc
+++ b/contrib/vimrc
@@ -35,7 +35,10 @@  function! SetStyle()
   let l:c_exts = ['c', 'h', 'cpp', 'cc', 'C', 'H', 'def', 'java']
   if index(l:c_exts, l:ext) != -1
     setlocal cindent
+    setlocal tabstop=8
     setlocal softtabstop=2
+    setlocal shiftwidth=2
+    setlocal noexpandtab
     setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0
     setlocal textwidth=80
     setlocal formatoptions-=ro formatoptions+=cqlt
-- 
2.10.1