nixpkgs/home/programs/neovim/configuration/ftdetect/au_basics.vim
Daniel Siepmann e64f6b8030
Migrate whole Neovim configuration into expected structure
That way I can load my whole configuration as a plugin.
I no longer need to explicitly set any configuration via nix as init.vim
or such things.
2022-03-22 09:38:34 +01:00

21 lines
889 B
VimL

augroup general
autocmd!
" What does this do?! Were does it come from?
" autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
" Delete fugitive buffer on leave
autocmd BufReadPost fugitive://* set bufhidden=delete
" To prevent ui from switching back and forth, always activate gutter
" Doesn't seem to work anymore, not too important
" sign define dummy
" autocmd BufEnter *.* :execute 'sign place 9999 line=1 name=dummy buffer=' . bufnr('')
" Remove whitespace at end of line
autocmd BufWritePre,BufRead *.xlf,*.xml,*.html,*.php,*.js,*.css,*.scss,*.vim,*.vimrc :call StripTrailingWhitespace()
" I'm working to much on foreign code, so do not retab on read or prior write anymore
" autocmd BufWritePre,BufRead *.xlf,*.xml,*.html,*.php,*.js,*.css,*.scss,*.vim,*.vimrc :retab!
augroup END