Skip to content

Instantly share code, notes, and snippets.

@d-dmytro
Created February 12, 2017 20:08
Show Gist options
  • Save d-dmytro/52162d6991c04c7b8ba510907db25a77 to your computer and use it in GitHub Desktop.
Save d-dmytro/52162d6991c04c7b8ba510907db25a77 to your computer and use it in GitHub Desktop.
set encoding=utf-8
set history=500
filetype plugin on
filetype indent on
" Set leader key
let mapleader = "\<Space>"
" Remove search highlight
map <silent> <Leader><cr> :noh<cr>
" Always show current position
set ruler
" Backspace
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" Ignore case when searching
set ignorecase
" Try to be smart about cases when searching
set smartcase
" Highlight search results
set hlsearch
" Make search act like search in modern browsers
set incsearch
" Show matching brackets
set showmatch
" Syntax
syntax enable
set background=dark
let g:solarized_termcolors=256
let g:solarized_visibility='low'
colorscheme solarized
set ffs=unix,dos,mac
set number
" Backup
set nobackup
set nowb
set noswapfile
" Tab
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set ai
set si
set nowrap
set autochdir
" Listchars
"highlight NonText ctermfg=DarkGray
"highlight SpecialKey ctermfg=DarkGray
set listchars=tab:>~,nbsp:_,trail:.
set list
" Configure tabs based on the file type
autocmd filetype php setlocal ts=4 sw=4 sts=0 noexpandtab
autocmd filetype javascript setlocal ts=4 sw=4 sts=0 noexpandtab
" Shortcuts
inoremap jj <ESC>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment