basic.vim 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. set nocompatible
  2. " set vim paths
  3. set undodir="~/.cache/vim/undo"
  4. set viminfo="~/.cache/vim/viminfo"
  5. set runtimepath+="~/.config/vim"
  6. " make :find recursive
  7. set path+=**
  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 incsearch
  23. set spelllang=de_ch,en
  24. set noshowmode
  25. " if hidden is not set, TextEdit might fail.
  26. set hidden
  27. " set height below statusline
  28. set cmdheight=1
  29. " faster update time for diagnostic messages (default is 4000)
  30. set updatetime=300
  31. " always show signcolumns
  32. set signcolumn=yes
  33. set colorcolumn=80
  34. " set encoding
  35. set encoding=utf-8
  36. " enable mouse
  37. set mouse=a
  38. " horizontal splits will automatically be below
  39. set splitbelow
  40. " vertical splits will automatically be to the right
  41. set splitright
  42. " so that I can see `` in markdown files
  43. set conceallevel=0
  44. " make sure to enable syntax highlighting
  45. syntax enable
  46. " always show tabs
  47. "set showtabline=2