You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

4 years ago
4 years ago
4 years ago
  1. " Um vim-plug zu installieren:
  2. " curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  3. " Usage :PlugInstall [name]
  4. call plug#begin()
  5. Plug 'itchyny/lightline.vim'
  6. "Plug 'ap/vim-css-color' " doesn't work on all files
  7. Plug 'chrisbra/colorizer'
  8. call plug#end()
  9. " themes sind im Unterordner ./colors/
  10. colorscheme plastic
  11. "set t_Co=256
  12. set termguicolors
  13. "doesnt work
  14. "let g:colorizer_auto_color = 1
  15. "workaround:
  16. augroup autocolor
  17. autocmd!
  18. autocmd BufEnter,BufLeave * ColorHighlight
  19. augroup END
  20. set number " add line numbers
  21. set nocompatible " disable compatibility to vi
  22. set tabstop=4 " number of columns by tab
  23. set softtabstop=4 " see multiple spaces as tab
  24. set expandtab " converts tab to whitespaces
  25. set shiftwidth=4 " width for autoindents
  26. set hlsearch " highlight search results
  27. set showmatch " show matching brackets
  28. set mouse=v " middle-click paste with mouse
  29. set ignorecase " case insensitive matching
  30. set wildmode=longest,list " bash-like tab completions
  31. "set cc=80 " 80 column border for good coding style
  32. syntax on " syntax highlighting
  33. augroup numbertoggle
  34. autocmd!
  35. autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
  36. autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
  37. augroup END