Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (54 sloc) 1.61 KB
set nocompatible "No Vi Compatibility
set undodir=~/.vim/undodir
set undofile
set undolevels=1000 "maximum number of changes that can be undone
set undoreload=10000 "maximum number lines to save for undo on a buffer reload
"this does indent on return
"imap <silent> <CR> <ESC>gg=G<C-O><C-O>o
set number " line count
set smartcase "ignore case in search if no caps
set title
set backspace=2 "Enable Backspacing
set autoindent "Enable Autoindenting
set smartindent "Enable Smartindenting
set tabstop=3 "Set Tabs at 3 Spaces
set expandtab
set shiftwidth=3 "Set Shifts at 3 Spaces
"set nohls "Do Not Highlight Search Results
set incsearch "Search Incrementally
set ruler "Show Line Number
"set background=dark "Use 'Dark' Color Scheme
"set mouse=a "Enable Using the Mouse
set whichwrap+=<
set whichwrap+=>
set whichwrap+=[
set whichwrap+=]
syntax on
set gfn=Monaco:h10
set encoding=utf-8
match Todo /\s\+$/
nnoremap / :M/
nnoremap ? :M?
nnoremap ,/ /
nnoremap ,? ?
filetype plugin on
"save position
au BufWinLeave * mkview
au BufWinEnter * silent loadview
"center after n
nnoremap n nzzzv
"nnoremap n nzzzv<cr>
"fat finger helpers
command W w
command Wq wq
" insert FIOC breakpoint with C-b in insert mode
command Pythonbreakpoint :normal iimport code; code.interact(local=locals())<CR><ESC>
inoremap <C-b> <ESC>:Pythonbreakpoint<CR>i
"makefile force real tabs
autocmd BufEnter ?akefile* set noet ts=8 sw=8 nocindent
autocmd BufEnter *.lib setf sh
autocmd BufEnter *.module setf php
autocmd BufEnter *.theme setf php
autocmd BufEnter *.py :inoremap # X<C-H>#