From 4441dc5a7495f65fd2d80799cb828ddac7a61101 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 25 Nov 2015 05:57:06 +0100 Subject: nvim: init: Organize setting of options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/init.vim | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 57aeae0..57ce4c4 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -17,9 +17,14 @@ Plug 'kyrias/neomake', { 'branch': 'clang-check' } call plug#end() + +""" +" Set options +" + syntax on filetype plugin indent on -set copyindent +set hidden " Automatically hide buffers instead of requiring bangcommands set number " always show line numbers set ignorecase " Ignore case of normal letters set smartcase " ignore case if search pattern is all lowercase, @@ -52,9 +57,13 @@ set tabstop=4 set shiftwidth=4 set softtabstop=4 set noexpandtab +set copyindent + +" Show tabs and end-of-line whitespace +set listchars=tab:»·,trail:· +set list + -" Automatically hide buffers instead of requiring bangcommands -set hidden " Easier window moving map h @@ -67,10 +76,6 @@ vmap gk nmap gj nmap gk -" Show tabs and end-of-line whitespace -set listchars=tab:»·,trail:· -set list - " Use clang_check for syntax checking let g:syntastic_c_checkers = ['clang_check'] let g:syntastic_cpp_checkers = ['clang_check'] -- cgit v1.2.3-54-g00ecf