My Vim Settings and a script to auto setup them
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

75 lines
1.5 KiB

  1. " Display filename at bottom of window
  2. set ls=2
  3. "enable line numbers
  4. set nu
  5. " Highlights the line the cursor is on
  6. set cursorline
  7. :hi CursorLine cterm=NONE ctermbg=darkred guibg=darkred guifg=white
  8. " Syntax Hightlighting
  9. syntax on
  10. " Enable search highlighting
  11. set hls
  12. " Color Schemes {{
  13. " Set theme based on $VIM_COLOR variable
  14. try
  15. if !empty($VIM_COLOR)
  16. colorscheme $VIM_COLOR
  17. else
  18. " Prefered default colorscheme
  19. colorscheme wombat256mod
  20. endif
  21. catch /^Vim\%((\a\+)\)\=:E185/
  22. " Colorschemes not installed yet
  23. " This happens when first installing bundles
  24. colorscheme default
  25. endtry
  26. " Override gui colorscheme
  27. if IsGuiApp()
  28. colorscheme wombat256mod
  29. endif
  30. " Set Airline theme
  31. if g:colors_name == 'github'
  32. let g:airline_theme = 'solarized'
  33. endif
  34. " }}
  35. " Set gui fonts {{
  36. if IsGuiApp()
  37. if IsWindows()
  38. set guifont=Consolas:h10:b
  39. elseif IsMac()
  40. try
  41. set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h11
  42. catch
  43. " Failed to set font
  44. endtry
  45. endif
  46. endif
  47. " }}
  48. " Set xterm and screen/tmux's title {{
  49. set titlestring=vim\ %{expand(\"%t\")}
  50. if &term =~ "^screen"
  51. " pretend this is xterm. it probably is anyway, but if term is left as
  52. " `screen`, vim doesn't understand ctrl-arrow.
  53. if &term == "screen-256color"
  54. set term=xterm-256color
  55. else
  56. set term=xterm
  57. endif
  58. " gotta set these *last*, since `set term` resets everything
  59. set t_ts=k
  60. set t_fs=\
  61. set t_ut=
  62. endif
  63. set notitle
  64. " set title
  65. " }}