basic.vim 1.3 KB

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