.vimrc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. " Vim Config - Minimal
  2. " ---------------------
  3. " Set compatibility to Vim only.
  4. set nocompatible
  5. "Always show current position
  6. set ruler
  7. " Turn on syntax highlighting.
  8. syntax on
  9. " Turn off modelines
  10. set modelines=0
  11. " Uncomment below to set the max textwidth. Use a value corresponding to the width of your screen.
  12. " set textwidth=80
  13. set formatoptions=tcqrn1
  14. set tabstop=4
  15. set shiftwidth=4
  16. set softtabstop=4
  17. set expandtab
  18. set noshiftround
  19. " Ignore case when searching
  20. set ignorecase
  21. " When searching try to be smart about cases
  22. set smartcase
  23. " Don't redraw while executing macros (good performance config)
  24. set lazyredraw
  25. " For regular expressions turn magic on
  26. set magic
  27. " Display 5 lines above/below the cursor when scrolling with a mouse.
  28. set scrolloff=5
  29. " Fixes common backspace problems
  30. set backspace=indent,eol,start
  31. " Display options
  32. set showmode
  33. set showcmd
  34. set cmdheight=1
  35. " Highlight matching pairs of brackets. Use the '%' character to jump between them.
  36. set matchpairs+=<:>
  37. " Display different types of white spaces.
  38. "set list
  39. "set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
  40. " Show line numbers
  41. set number
  42. highlight LineNr ctermfg=cyan
  43. " Set status line display
  44. set laststatus=2
  45. hi StatusLine ctermfg=NONE ctermbg=red cterm=NONE
  46. hi StatusLineNC ctermfg=black ctermbg=red cterm=NONE
  47. hi User1 ctermfg=black ctermbg=magenta
  48. hi User2 ctermfg=NONE ctermbg=NONE
  49. hi User3 ctermfg=black ctermbg=blue
  50. hi User4 ctermfg=black ctermbg=cyan
  51. set statusline=\ " Padding
  52. set statusline+=%f " Path to the file
  53. set statusline+=\ %1*\ " Padding & switch colour
  54. set statusline+=%y " File type
  55. set statusline+=\ %2*\ " Padding & switch colour
  56. set statusline+=%= " Switch to right-side
  57. set statusline+=\ %3*\ " Padding & switch colour
  58. set statusline+=line " of Text
  59. set statusline+=\ " Padding
  60. set statusline+=%l " Current line
  61. set statusline+=\ %4*\ " Padding & switch colour
  62. set statusline+=of " of Text
  63. set statusline+=\ " Padding
  64. set statusline+=%L " Total line
  65. set statusline+=\ " Padding
  66. " Encoding
  67. set encoding=utf-8
  68. " Highlight matching search patterns
  69. set hlsearch
  70. " Enable incremental search
  71. set incsearch
  72. " Include matching uppercase words with lowercase search term
  73. set ignorecase
  74. " Include only uppercase words with uppercase search term
  75. set smartcase
  76. " Store info from no more than 100 files at a time, 9999 lines of text
  77. " 100kb of data. Useful for copying large amounts of data between files.
  78. set viminfo='100,<9999,s100