Skip to content

Instantly share code, notes, and snippets.

@ruslanjan
Last active October 11, 2018 06:16
Show Gist options
  • Select an option

  • Save ruslanjan/f264e869165ccef8039444d36d7643fb to your computer and use it in GitHub Desktop.

Select an option

Save ruslanjan/f264e869165ccef8039444d36d7643fb to your computer and use it in GitHub Desktop.
command! T !clang++ -g -W -DTEST -std=c++14 %:r.cpp -o %:r && ./%:r
command! R !clang++ -g -W -DDEBUG -std=c++14 %:r.cpp -o %:r && ./%:r
colorscheme evening
" " Set 7 lines to the cursor - when moving vertically using j/k
set so=7
"Always show current position
set ruler
" For regular expressions turn magic on
set magic
" Add a bit extra margin to the left
set foldcolumn=1
" Show line numbers column
set number
" Use spaces instead of tabs
set expandtab
" Be smart when using tabs ;)
set smarttab
set autoindent
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
" A buffer becomes hidden when it is abandoned
" set hid
" ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Makes search act like search in modern browsers
set incsearch
" Don't redraw while executing macros (good performance config)
set lazyredraw
" Highlight search results
set hlsearch
abbr ll long long
abbr pb push_back
syntax enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment