nvim/init.vim

38 lines
918 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=
2025-09-03 08:51:46 +02:00
set completeopt-=preview
2024-05-23 08:33:22 +02:00
set nofoldenable
set spellcapcheck=0
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
2025-09-04 11:40:42 +02:00
autocmd FileType c setlocal ts=8 sw=8 noet
autocmd FileType python setlocal ts=4 sw=4 et
autocmd FileType asciidoctor setlocal wrap lbr iskeyword+=-
2025-09-03 08:51:46 +02:00
autocmd FileType vue,javascript,typescript set completeopt=menu,menuone,noinsert,fuzzy
2025-09-04 11:40:42 +02:00
autocmd FileType lua setlocal ts=2 sw=2 et
autocmd BufNewFile,BufRead *.pio setfiletype pioasm
autocmd BufRead,BufNewFile */templates/*.html set filetype=htmldjango
2024-11-24 22:17:23 +01:00
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