Skip to content

Instantly share code, notes, and snippets.

@farfanoide
Last active August 29, 2015 14:07
Show Gist options
  • Save farfanoide/c4f995e805462f386dab to your computer and use it in GitHub Desktop.
Save farfanoide/c4f995e805462f386dab to your computer and use it in GitHub Desktop.
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
set autoindent
set complete-=i
set smarttab " Insert tabs according to 'shiftwidth'
set number " Use normal numbers
set relativenumber " and relative line numbers
set backspace=2 " Make backspace work like most other apps
set clipboard=unnamedplus " Use system wide clipboard by default
set laststatus=2 " Always show status line (not needed when using airline)
set ruler " Show the line and column number of the cursor position
set showcmd " Show commands as you type them
set wildmenu " Enhance command-line completion
set wildchar=<TAB> " Autocomplete commands with tab key
set incsearch " Highlight dynamically as pattern is typed
" Use <C-L> to clear the highlighting of :set hlsearch.
if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment