basic.vim 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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