Skip to content

Instantly share code, notes, and snippets.

@shercoder
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shercoder/8910372 to your computer and use it in GitHub Desktop.
Save shercoder/8910372 to your computer and use it in GitHub Desktop.
set wrapmargin=8
set ruler
set number
" ts = tabstop, sw = shiftwidth, sts = softtabstop
set ts=4 sw=4 sts=2
" expandtab: appropriate number of spaces in insert mode
set expandtab
" autocomplete parenthesis, brackets and braces
" inoremap ( ()<Left>
" inoremap [ []<Left>
" inoremap { {}<Left>
" Syntax highlighting on
syntax on
" Filetype plugins
filetype plugin indent on
" share windows clipboard
set clipboard+=unnamed
" Hightlight the curent column
" set cursorcolumn
" Hightlight the current line
set cursorline
" While typing a search command, show where the pattern, as it was typed
" so far, matches
set incsearch
set autoindent
set title " changte the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
set pastetoggle=<F2>
" disable arrow keys
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" Easy window navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
" sudo privilege after opening file without sudo
cmap w!! w !sudo tee % >/dev/null
set colorcolumn 81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment