Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
syntax on
"Fast finger fixes
:command W w
:command Wq wq
:command WQ wq
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
set fileencodings=utf-8
filetype plugin indent on
set expandtab
set tabstop=4
set shiftwidth=4
set t_ti= t_te=
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set incsearch " Incremental search
"colorscheme molokai
"Always do correct pasting (no weird indenting while pasting)
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
function! XTermPasteBegin()
set pastetoggle=<Esc>[201~
set paste
return ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment