set nocompatible filetype off call pathogen#runtime_append_all_bundles() call pathogen#helptags() filetype plugin indent on syntax on filetype on set modelines=0 set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab set encoding=utf-8 set autoindent set copyindent set showmode colorscheme sourcerer set laststatus=2 " Always show the statusline set cinkeys=0{,0},:,0#,!^F set t_Co=256 inoremap jj " Folding Stuff set foldenable set foldcolumn=2 set foldmethod=marker set foldopen=block,hor,insert,jump,mark,percent,quickfix,search,tag,undo set nobackup set noswapfile set title set visualbell set noerrorbells set showcmd set relativenumber let mapleader="," "searching/moving nnoremap / /\v vnoremap / /\v set ignorecase set smartcase set gdefault set incsearch set showmatch set hlsearch nnoremap :noh nnoremap % vnoremap % "long lines set wrap set textwidth=79 set formatoptions=qrn1 set colorcolumn=85 nnoremap j gj nnoremap k gk ""F1-Esc inoremap nnoremap vnoremap nnoremap ; : au FocusLost * :wa "Learn to use leader nnoremap W :%s/\s\+$//:let @/='' nnoremap ft Vatzf nnoremap S ?{jV/^\s*\}?$k:sort:noh nnoremap w vl "Use Ctrl hjkl to move bw splits nnoremap h nnoremap j nnoremap k nnoremap l set hidden set history=1000 set undolevels=1000 set pastetoggle= nnoremap j gj nnoremap k gk cmap w!! w !sudo tee % >/dev/null map :NEXTCOLOR map :PREVCOLOR " Open nerdtree if no file was specified autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif map :NERDTreeToggle set clipboard+=unnamedplus