Skip to content

Instantly share code, notes, and snippets.

@agraves
Created July 17, 2012 16:02
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 agraves/3130293 to your computer and use it in GitHub Desktop.
Save agraves/3130293 to your computer and use it in GitHub Desktop.
.vimrc
set tabstop=2
set shiftwidth=2
set expandtab
set ai
syntax on
set ruler
set smarttab
nnoremap <F7> :call TogglePasteMode()<CR>
inoremap <F7> <ESC><F7>
function TogglePasteMode ()
if (&paste)
set nopaste
echo "paste mode off"
else
set paste
echo "paste mode on"
endif
endfunction
au BufRead,BufNewFile *.scss set filetype=scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment