nvim/init.vim

33 lines
541 B
VimL
Raw Normal View History

2024-05-23 08:33:22 +02:00
source /etc/vimrc
2024-06-10 12:31:29 +02:00
"autocmd BufReadPost *
" \ if line("'\"") > 0 && line ("'\"") <= line("$") |
" \ exe "normal! g'\"" |
" \ endif
2024-05-23 08:33:22 +02:00
set modeline
set nowrap
set sidescroll=1
set scrolloff=3
set nobackup
set mouse=
set completeopt-=preview
set nofoldenable
set spellcapcheck=0
2024-06-10 12:20:59 +02:00
set sw=2
set ts=2
set et
2024-05-23 08:33:22 +02:00
set smartcase
set nohlsearch
2025-04-24 10:57:08 +02:00
let g:c_syntax_for_h = 1
2024-11-24 22:17:23 +01:00
autocmd FileType c,cpp set cindent
autocmd FileType c,cpp set cinoptions=:0,l0,t0,g0,(0
2024-05-23 08:33:22 +02:00
if has('nvim')
2024-06-10 12:31:29 +02:00
exec 'source' expand('~/.config/nvim/nvim.vim')
"source nvim.vim
2024-05-23 08:33:22 +02:00
endif