basic.vim 1.5 KB

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