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.

48 lines
1.7 KiB

5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
4 years ago
5 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, but seems faster than chrisbra/colorizer
  7. "Plug 'chrisbra/colorizer'
  8. "Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' } " requires golang, roughly 250mb
  9. "Plug 'norcalli/nvim-colorizer.lua' "requires vim > 0.4
  10. call plug#end()
  11. " themes sind im Unterordner ./colors/
  12. colorscheme plastic
  13. "colorscheme papercolor-light
  14. "set t_Co=256
  15. set termguicolors
  16. "requires vim > 0.4
  17. "lua require'colorizer'.setup()
  18. "doesnt work
  19. "let g:colorizer_auto_color = 1
  20. "workaround:
  21. "augroup autocolor
  22. " autocmd!
  23. " autocmd BufEnter,BufLeave * ColorHighlight
  24. "augroup END
  25. set number " add line numbers
  26. set nocompatible " disable compatibility to vi
  27. set tabstop=4 " number of columns by tab
  28. set softtabstop=4 " see multiple spaces as tab
  29. set expandtab " converts tab to whitespaces
  30. set shiftwidth=4 " width for autoindents
  31. set hlsearch " highlight search results
  32. set showmatch " show matching brackets
  33. set mouse=v " middle-click paste with mouse
  34. set ignorecase " case insensitive matching
  35. set wildmode=longest,list " bash-like tab completions
  36. "set cc=80 " 80 column border for good coding style
  37. syntax on " syntax highlighting
  38. augroup numbertoggle
  39. autocmd!
  40. autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
  41. autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
  42. augroup END