summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-07 16:57:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-07 16:57:57 +0100
commitd44a638bda51ec80154f17981fd8bc779deed781 (patch)
tree30ab51dbb3d6213604869ae0d02a7abf12624c08
parentc (diff)
downloaddotfiles-bsd-d44a638bda51ec80154f17981fd8bc779deed781.tar.gz
dotfiles-bsd-d44a638bda51ec80154f17981fd8bc779deed781.tar.bz2
dotfiles-bsd-d44a638bda51ec80154f17981fd8bc779deed781.tar.xz
dotfiles-bsd-d44a638bda51ec80154f17981fd8bc779deed781.tar.zst
dotfiles-bsd-d44a638bda51ec80154f17981fd8bc779deed781.zip
Added cinoptions
-rw-r--r--.config/nvim/langs.vim4
-rw-r--r--.config/nvim/settings.vim4
2 files changed, 4 insertions, 4 deletions
diff --git a/.config/nvim/langs.vim b/.config/nvim/langs.vim
index f81affa..e70d714 100644
--- a/.config/nvim/langs.vim
+++ b/.config/nvim/langs.vim
@@ -3,19 +3,15 @@ let perl_include_pod = 1
autocmd BufNewFile,BufRead *.c
\ set
\ filetype=c
- \ cinoptions+=t0
autocmd BufNewFile,BufRead *.h
\ set
\ filetype=c
- \ cinoptions+=t0
autocmd BufNewFile,BufRead *.cxx
\ set
\ filetype=cpp
- \ cinoptions+=t0
autocmd BufNewFile,BufRead *.hxx
\ set
\ filetype=cpp
- \ cinoptions+=t0
autocmd FileType fish
\ compiler fish
autocmd FileType perl
diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim
index 6cbc124..71fb2da 100644
--- a/.config/nvim/settings.vim
+++ b/.config/nvim/settings.vim
@@ -1,5 +1,8 @@
set noautochdir
set bg=dark
+set cindent
+set cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l1,b0,gs,h0,N0,E0,p0,t0,i0,+s
+set cinoptions+=c1,C0,/0,(s,us,U0,w0,Ws,k0,m1,M0,)20,*70,#0
set clipboard^=unnamedplus
set cursorline
set encoding=utf-8
@@ -8,6 +11,7 @@ set hidden
set makeprg=gmake
set mouse=a
set nocompatible
+set noexpandtab
set nohlsearch
set number
set shiftwidth=4