From e8ee701d3573c860b09c2634647e9d00a0bb111c Mon Sep 17 00:00:00 2001 From: Lakshman Date: Mon, 10 Mar 2014 12:19:40 -0500 Subject: Fixed Subsurface coding style for classes in vim. With the current suggested settings in `CodingStyle` content of class blocks gets indented. To avoid this, value `g0` is added to cinoptions. In addition to this `TODO` thing, few additional options are suggested. - Included the value `(0` to cinoptions, to comply with the discontinuation of continuous lines as per Subsurface coding style recommendations. Add two options that aren't exactly about coding style but about convenience: - `hls` option to highlight all search options. - `is` option to do incremental search Signed-off-by: Lakshman Anumolu Signed-off-by: Dirk Hohndel --- CodingStyle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CodingStyle') diff --git a/CodingStyle b/CodingStyle index cee23dc6d..f35fc0fa4 100644 --- a/CodingStyle +++ b/CodingStyle @@ -209,14 +209,15 @@ close to our coding standards. " Subsurface coding style filetype plugin indent on filetype detect -set cindent tabstop=8 shiftwidth=8 cinoptions=l1,:0 +set cindent tabstop=8 shiftwidth=8 cinoptions=l1,:0,(0,g0 " TODO: extern "C" gets indented -" TODO: content of class blocks gets indented " And some sane defaults, optional, but quite nice set nocompatible syntax on colorscheme default +set hls +set is " The default blue is just impossible to see on a black terminal highlight Comment ctermfg=Brown -- cgit v1.2.3-70-g09d2