.vimrc 872 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. " let's not worry about vi
  2. set nocompatible
  3. " force plugins to load correctly when we turn it back on below
  4. filetype off
  5. " syntax highlights by default
  6. syntax on
  7. " for stupid plugins
  8. filetype plugin indent on
  9. " lead us, brave comma
  10. let mapleader=","
  11. " show file stats
  12. set ruler
  13. " UTF8!
  14. set encoding=utf-8
  15. " relative line number, jump at will!
  16. " set relativenumber
  17. set number
  18. " status bar
  19. set laststatus=2
  20. " Cursor motion
  21. set scrolloff=3
  22. set backspace=indent,eol,start
  23. set matchpairs+=<:> " use % to jump between pairs
  24. runtime! macros/matchit.vim
  25. " Formatting
  26. map <leader>q gqip
  27. " security detail
  28. set modelines=0
  29. " no beeping here
  30. set visualbell
  31. " we can hide buffers if we want
  32. set hidden
  33. " Searching
  34. set hlsearch
  35. set incsearch
  36. set ignorecase
  37. set smartcase
  38. set showmatch
  39. map <leader><space> :let @/=''<cr> " clear search
  40. set noswapfile " disable swap file