set ruler set nonu set ff=unix set modeline "from sontek "loads plugins filetype off call pathogen#incubate() "call pathogen#runtime_append_all_bundles() call pathogen#helptags() syntax on filetype on filetype plugin indent on " "code folding set foldmethod=indent set foldlevel=1 set foldnestmax=10 set nofoldenable "Window SPlits "Vertical Split : Ctrl+w + v "Horizontal Split: Ctrl+w + s "Close current windows: Ctrl+w + q " PyFlake let g:pyflakes_use_quickfix = 0 " maps moving window directly avoid ctrl+w+key map j map k map l map h " TODOS map td Tasklist " PEP8 let g:pep8_map='8' " Revision History map g :GundoToggle "tab completion au FileType python set omnifunc=pythoncomplete#Complete let g:SuperTabDefaultCompletionType = "context" "pydoc menu set completeopt=menuone,longest,preview "rope stuff map j :RopeGotoDefinition map r :RopeRename "Ack stuff nmap a :Ack! let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 map T :TaskList map PP :TlistToggle set expandtab set textwidth=79 set tabstop=4 set softtabstop=4 set shiftwidth=4 set autoindent autocmd BufEnter * silent! lcd %:p:h set clipboard=unnamed set hidden set viminfo='25,\"50,n~/.viminfo set formatoptions-=tc set backupskip=/tmp/*,/private/tmp/* set smartcase function! ResCur() if line("'\"") <= line("$") normal! g`" return 1 endif endfunction augroup resCur autocmd! autocmd BufWinEnter * call ResCur() augroup END