diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-11-25 05:57:06 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-11-25 05:57:41 +0100 |
commit | 4441dc5a7495f65fd2d80799cb828ddac7a61101 (patch) | |
tree | d379d4236f1e6a5bed6943f67c32ff617c07f684 | |
parent | dcfa370eafba93b56ff911b60963e1b61e8162fc (diff) | |
download | dotfiles-4441dc5a7495f65fd2d80799cb828ddac7a61101.tar.xz |
nvim: init: Organize setting of options
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nvim/init.vim | 19 |
1 files 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 <C-h> <C-w>h @@ -67,10 +76,6 @@ vmap <C-k> gk nmap <C-j> gj nmap <C-k> 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'] |