Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax on
- set number
- set ruler
- set hlsearch
- set smartcase
- set autoindent
- set ignorecase
- set gdefault " RegExp global by default
- set magic " Enable extended regexes.
- set incsearch
- " -----------------------------------------------------------------------------
- " UI
- " -----------------------------------------------------------------------------
- set t_Co=256 " 256 colors terminal
- let g:molokai_original=0
- "colorscheme dark " molokai
- " make 'var' keyword easier to spot
- hi link javascriptType Keyword
- " default ColorColumn is too distractive
- hi clear ColorColumn
- hi link ColorColumn FoldColumn
- " defaul line number is too distractive
- hi clear LineNr
- hi link LineNr Comment
- hi link OverLength Error
- " --- UI settings ---
- if has('gui_running')
- "set guifont=Menlo:h13
- set gfn:Monaco:h14
- set transp=0
- " toolbar and scrollbars
- set guioptions-=T " remove toolbar
- set guioptions-=L " left scroll bar
- set guioptions-=r " right scroll bar
- set guioptions-=b " bottom scroll bar
- set guioptions-=h " only calculate bottom scroll size of current line
- set shortmess=atI " Don't show the intro message at start and
- " truncate msgs (avoid press ENTER msgs).
- endif
- set cursorline " Highlight current line
- set laststatus=2 " Always show status line
- "set number " Enable line numbers.
- set numberwidth=5 " width of numbers line (default on gvim is 4)
- set report=0 " Show all changes.
- set showmode " Show the current mode.
- set showcmd " show partial command on last line of screen.
- set showmatch " show matching parenthesis
- set splitbelow splitright " how to split new windows.
- set title " Show the filename in the window title bar.
- set scrolloff=5 " Start scrolling n lines before horizontal
- " border of window.
- set sidescrolloff=7 " Start scrolling n chars before end of screen.
- set sidescroll=1 " The minimal number of columns to scroll
- " horizontally.
- " add useful stuff to title bar (file name, flags, cwd)
- " based on @factorylabs
- if has('title') && (has('gui_running') || &title)
- set titlestring=
- set titlestring+=%f
- set titlestring+=%h%m%r%w
- set titlestring+=\ -\ %{v:progname}
- set titlestring+=\ -\ %{substitute(getcwd(),\ $HOME,\ '~',\ '')}
- endif
- " use relative line number by default
- if exists('+relativenumber')
- set relativenumber
- endif
- " --- command completion ---
- set wildmenu " Hitting TAB in command mode will
- set wildchar=<TAB> " show possible completions.
- set wildmode=list:longest
- set wildignore+=*.DS_STORE,*.db,node_modules/**,*.jpg,*.png,*.gif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement