Advertisement
Guest User

vimrc

a guest
Sep 16th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.90 KB | None | 0 0
  1. syntax on
  2. set number
  3. set ruler
  4. set hlsearch
  5. set smartcase
  6. set autoindent
  7. set ignorecase
  8.  
  9. set gdefault                " RegExp global by default
  10. set magic                   " Enable extended regexes.
  11. set incsearch
  12.  
  13.  
  14. " -----------------------------------------------------------------------------
  15. " UI
  16. " -----------------------------------------------------------------------------
  17.  
  18. set t_Co=256                " 256 colors terminal
  19.  
  20. let g:molokai_original=0
  21. "colorscheme dark  " molokai
  22. " make 'var' keyword easier to spot
  23. hi link javascriptType Keyword
  24. " default ColorColumn is too distractive
  25. hi clear ColorColumn
  26. hi link ColorColumn FoldColumn
  27. " defaul line number is too distractive
  28. hi clear LineNr
  29. hi link LineNr Comment
  30. hi link OverLength Error
  31.  
  32. " --- UI settings ---
  33.  
  34.  
  35. if has('gui_running')
  36.     "set guifont=Menlo:h13
  37.     set gfn:Monaco:h14
  38.     set transp=0
  39.  
  40.     " toolbar and scrollbars
  41.     set guioptions-=T       " remove toolbar
  42.     set guioptions-=L       " left scroll bar
  43.     set guioptions-=r       " right scroll bar
  44.     set guioptions-=b       " bottom scroll bar
  45.     set guioptions-=h      " only calculate bottom scroll size of current line
  46.     set shortmess=atI       " Don't show the intro message at start and
  47.                             "   truncate msgs (avoid press ENTER msgs).
  48. endif
  49.  
  50.  
  51. set cursorline              " Highlight current line
  52. set laststatus=2            " Always show status line
  53. "set number                  " Enable line numbers.
  54. set numberwidth=5           " width of numbers line (default on gvim is 4)
  55. set report=0                " Show all changes.
  56. set showmode                " Show the current mode.
  57. set showcmd                 " show partial command on last line of screen.
  58. set showmatch               " show matching parenthesis
  59. set splitbelow splitright   " how to split new windows.
  60. set title                   " Show the filename in the window title bar.
  61.  
  62. set scrolloff=5             " Start scrolling n lines before horizontal
  63.                             "   border of window.
  64. set sidescrolloff=7         " Start scrolling n chars before end of screen.
  65. set sidescroll=1            " The minimal number of columns to scroll
  66.                             "   horizontally.
  67.  
  68. " add useful stuff to title bar (file name, flags, cwd)
  69. " based on @factorylabs
  70. if has('title') && (has('gui_running') || &title)
  71.     set titlestring=
  72.     set titlestring+=%f
  73.     set titlestring+=%h%m%r%w
  74.     set titlestring+=\ -\ %{v:progname}
  75.     set titlestring+=\ -\ %{substitute(getcwd(),\ $HOME,\ '~',\ '')}
  76. endif
  77.  
  78. " use relative line number by default
  79. if exists('+relativenumber')
  80.   set relativenumber
  81. endif
  82.  
  83. " --- command completion ---
  84. set wildmenu                " Hitting TAB in command mode will
  85. set wildchar=<TAB>          "   show possible completions.
  86. set wildmode=list:longest
  87. set wildignore+=*.DS_STORE,*.db,node_modules/**,*.jpg,*.png,*.gif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement