Skip to content

Instantly share code, notes, and snippets.

@benjaesq
Last active February 28, 2018 05:32
Show Gist options
  • Save benjaesq/78595742b1eacf2b49f8 to your computer and use it in GitHub Desktop.
Save benjaesq/78595742b1eacf2b49f8 to your computer and use it in GitHub Desktop.
saving vimrc for future reference
" [email protected]
" .vimrc file. Based on:
" http://vim.wikia.com/wiki/Example_vimrc
" some coding perks here below
" ----------------------------
set autoindent
syntax on
filetype plugin on
filetype indent plugin on
" 4 spaces for tab presses expanded to spaces :)
set shiftwidth=4 softtabstop=4
set expandtab
set incsearch hlsearch
" Press space to clear search highlighting and any message displayed
nnoremap <silent> <Space> :silent noh<Bar>echo<CR>
set wildmenu showcmd
" File type associations
" ----------------------
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
" The trunk
" ---------
"
" I dislike the fact that the line numbers take so much space
" set number
" for highlighting EOL whitespaces I installed this vim utility:
" http://vim.sourceforge.net/scripts/script.php?script_id=3966
" set backspace=indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment