basic.vim 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. " set vim paths
  2. set undodir="~/.cache/vim/undo"
  3. " make :find recursive
  4. set path+=**
  5. set wildignore+=*/node_modules/*
  6. set wildignore+=*/__pycache__/*
  7. " display all files for tab completion
  8. set wildmenu
  9. " making me comfortable
  10. set number
  11. set tabstop=4 softtabstop=4
  12. set shiftwidth=4
  13. "convert tabs to spaces
  14. set expandtab
  15. set nosmartindent
  16. set nocindent
  17. set smartcase
  18. " disable swapfiles (mostly to avoid problems)
  19. set noswapfile
  20. set nobackup
  21. set spelllang=de_ch,en
  22. set noshowmode
  23. " set height below statusline
  24. set cmdheight=1
  25. " faster update time for diagnostic messages (default is 4000)
  26. set updatetime=300
  27. " always show signcolumns
  28. set signcolumn=yes
  29. set colorcolumn=80
  30. " horizontal splits will automatically be below
  31. set splitbelow
  32. " vertical splits will automatically be to the right
  33. set splitright
  34. " so that I can see `` in markdown files
  35. set conceallevel=0
  36. " always show tabs
  37. "set showtabline=2
  38. " don't redraw while executing macros (good performance config)
  39. set lazyredraw
  40. " ignore case when searching
  41. set ignorecase
  42. " Show next 3 lines while scrolling.
  43. if !&scrolloff
  44. set scrolloff=3
  45. endif
  46. " Show next 5 columns while side-scrolling.
  47. if !&sidescrolloff
  48. set sidescrolloff=5
  49. endif
  50. " needed for colorizer plugin
  51. set termguicolors