1. " https://github.com/ChrisKempson/Vim-Tomorrow-Theme/tree/37f32f96dcd88796ad32920c7861f1c9fa89bc02
  2. colorscheme Tomorrow-Night-Eighties
  3.  
  4. syntax on
  5. set encoding=utf-8
  6. set ruler
  7. set number
  8. set nowrapscan
  9. set ai
  10. set modeline
  11. set number
  12. set pastetoggle=<F2>
  13.  
  14. " two spaces replacing tab
  15. set nowrap
  16. set tabstop=2
  17. set shiftwidth=2
  18. set softtabstop=2
  19. set expandtab
  20.  
  21. " show blank spaces at the end of the file
  22. set list listchars=tab:\ \ ,trail:ยท
  23.  
  24. set bs=2
  25.  
  26. set binary
  27. set ruler
  28. set history=200
  29. set showcmd
  30.  
  31. set ts=2
  32. set sw=2
  33.  
  34. " Directories for swp files
  35. set backupdir=~/.vim/backup
  36. set directory=~/.vim/backup
  37.  
  38. " searching
  39. set hlsearch
  40. set incsearch
  41. set ignorecase
  42. set smartcase
  43.  
  44. " resize
  45. map <c-down> <c-w>+
  46. map <c-up> <c-w>-
  47. map <c-left> <c-w>>
  48. map <c-right> <c-w><
  49.  
  50. " tabs/windows mappings
  51. nnoremap <C-T> :tabnew<CR>:e .<CR>
  52. nnoremap <C-P> :tabprev<CR>
  53. nnoremap <C-N> :tabnext<CR>
  54. nnoremap <C-V> :vsplit .<CR>
  55. nnoremap <C-H> :split .<CR>
  56. nnoremap <C-Q> :q<CR>
  57.  
  58. au BufNewFile,BufRead *.thtml setfiletype php
  59. au BufNewFile,BufRead *.tpl setfiletype php
  60. au BufNewFile,BufRead *.ctp setfiletype php
  61. au BufNewFile,BufRead *.module setfiletype php
  62. au BufNewFile,BufRead Makefile* set noexpandtab