Skip to content

Instantly share code, notes, and snippets.

@5minpause
Created January 23, 2017 10:39
Show Gist options
  • Save 5minpause/d4d1c385c1ba94218ed7703ca4b0ca19 to your computer and use it in GitHub Desktop.
Save 5minpause/d4d1c385c1ba94218ed7703ca4b0ca19 to your computer and use it in GitHub Desktop.
set hlsearch " Highlihgt search results while searching
set relativenumber " show relative line numbers
set encoding=utf-8
set ignorecase " Case insensitive pattern matching when searching
set smartcase " Overrides ignorecase when pattern contains upcase
nnoremap <Leader>a :call RunAllSpecs()<CR>
:command W w
" Properly indent code on whole file
map <Leader>i mmgg=G`m<CR>
" Paste code with indentation
map <Leader>p :set paste<CR>o<esc>"*]p:set nopaste<cr>
" Mapping to clear the highlight of previous searches
nmap <Leader>h :nohlsearch<CR>
colorscheme github
set textwidth=100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment