.vimrc 857 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. " better scheme
  18. colorscheme delek
  19. " status bar
  20. set laststatus=2
  21. " Cursor motion
  22. set scrolloff=3
  23. set backspace=indent,eol,start
  24. set matchpairs+=<:> " use % to jump between pairs
  25. runtime! macros/matchit.vim
  26. " Formatting
  27. map <leader>q gqip
  28. " security detail
  29. set modelines=0
  30. " no beeping here
  31. set visualbell
  32. " we can hide buffers if we want
  33. set hidden
  34. " Searching
  35. set hlsearch
  36. set incsearch
  37. set ignorecase
  38. set smartcase
  39. set showmatch
  40. map <leader><space> :let @/=''<cr> " clear search