Last active
August 29, 2015 14:05
-
-
Save antoniom13/98bc4e8d1d564bfb95df to your computer and use it in GitHub Desktop.
Revisions
-
antoniom13 revised this gist
Oct 9, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,6 @@ set showcmd set hidden set visualbell set ttyfast set backspace=indent,eol,start set norelativenumber set history=1000 -
antoniom13 renamed this gist
Aug 11, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
antoniom13 revised this gist
Aug 10, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -182,9 +182,9 @@ nnoremap U :syntax sync fromstart<cr>:redraw!<cr> set backup " enable backups set noswapfile " It's 2012, Vim. set undodir=~/.vim/tmp/undo/ " undo files set backupdir=~/.vim/tmp/backup/ " backups set directory=~/.vim/tmp/swap/ " swap files " Make folders automatically if they don't already exist. if !isdirectory(expand(&undodir)) -
antoniom13 created this gist
Aug 10, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,198 @@ " Ctrl-W t Ctrl-W K -> Moves vsplit to hsplit " Ctrl-W t Ctrl-W H -> Moves hsplit to vsplit " Ctrl-W [s/v] take same buffer and split vertically / horizontally execute pathogen#infect() syntax on filetype plugin indent on set ruler set cursorline set t_Co=256 set wrapscan set number set autoindent set expandtab set tabstop=2 set sw=2 set background=light set foldmethod=syntax set showmode set showcmd set hidden set visualbell set ttyfast set ruler set backspace=indent,eol,start set norelativenumber set history=1000 set undofile set undoreload=10000 set autowrite set autoread set shiftround set title set linebreak set notimeout " Performance set ttimeout " Performance set ttimeoutlen=10 " Performance "set list "set lazyredraw "set matchtime=3 "set showbreak=↪ "set splitbelow "set splitright let mapleader = ';' let g:ruby_fold = 1 colorscheme molokai let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_auto_colors=0 let g:indent_guides_start_level=2 let g:indent_guides_guide_size=1 let g:indent_guides_color_change_percent=100 hi IndentGuidesOdd ctermbg=235 hi IndentGuidesEven ctermbg=243 let g:ctrlp_map = '<c-p>' let g:ctrlp_cmd = 'CtrlP' autocmd FileType php set omnifunc=phpcomplete#CompletePHP autocmd Filetype javascript set omnifunc=javascriptcomplete#CompleteJS autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags source /Users/tinymonkey/Library/Python/2.7/lib/python/site-packages/powerline/bindings/vim/plugin/powerline.vim python from powerline.vim import setup as powerline_setup python powerline_setup() python del powerline_setup let g:Powerline_symbols = 'fancy' set fillchars+=stl:\ ,stlnc:\ set laststatus=2 set clipboard=unnamed set splitbelow set splitright nnoremap <C-J> <C-W><C-J> nnoremap <C-K> <C-W><C-K> nnoremap <C-L> <C-W><C-L> nnoremap <C-H> <C-W><C-H> " Force hjkl navigation in Normal Mode noremap <Up> <NOP> noremap <Down> <NOP> noremap <Left> <NOP> noremap <Right> <NOP> " Remove line numbers nnoremap <leader># :setlocal number!<cr> " Buffer navigation map <leader>n :bn<cr> map <leader>x :bw<cr> map <leader>p :bp<cr> map <leader>a :badd map <leader>w :w!<cr> map <leader>q :q!<cr> nnoremap <leader>b :buffers<cr>:vert sb<Space> " Wildmenu and wildignores for files set wildmenu set wildignore+=.git,.svn set wildignore+=*.jpg,*.png,*.bmp,*.gif,*.jpeg set wildignore+=*.sw? " Clean trailing whitespace nnoremap <leader>w mz:%s/\s\+$//<cr>:let @/=''<cr>`z " Remove u when when trying to hit y for yank vnoremap u <nop> vnoremap gu u " Diffoff nnoremap <leader>D :diffoff!<cr> " Fugitive nnoremap <leader>gd :Gdiff<cr> nnoremap <leader>gs :Gstatus<cr> nnoremap <leader>gw :Gwrite<cr> nnoremap <leader>ga :Gadd<cr> nnoremap <leader>gb :Gblame<cr> nnoremap <leader>gco :Gcheckout<cr> nnoremap <leader>gci :Gcommit<cr> nnoremap <leader>gm :Gmove<cr> nnoremap <leader>gr :Gremove<cr> nnoremap <leader>gl :Shell git gl -18<cr>:wincmd \|<cr> " Resize splits when window is resized au VimResized * :wincmd = " Used to expand all folds and easy access for fold toggle autocmd VimEnter * execute "normal zR" " Space to toggle folds. nnoremap <Space> za vnoremap <Space> za " Sudo to write cnoremap w!! w !sudo tee % >/dev/null " Typos command! -bang E e<bang> command! -bang Q q<bang> command! -bang W w<bang> command! -bang QA qa<bang> command! -bang Qa qa<bang> command! -bang Wa wa<bang> command! -bang WA wa<bang> command! -bang Wq wq<bang> command! -bang WQ wq<bang> " Use sane regexes. nnoremap / /\v vnoremap / /\v " Searches set ignorecase set smartcase set incsearch set showmatch set hlsearch set gdefault set scrolloff=3 set sidescroll=1 set sidescrolloff=10 set virtualedit+=block " Clear search highlighting noremap <silent> <leader><space> :noh<cr>:call clearmatches()<cr> " Redraw screen on hiccups nnoremap U :syntax sync fromstart<cr>:redraw!<cr> " Backups set backup " enable backups set noswapfile " It's 2012, Vim. set undodir=~/.vim/tmp/undo// " undo files set backupdir=~/.vim/tmp/backup// " backups set directory=~/.vim/tmp/swap// " swap files " Make folders automatically if they don't already exist. if !isdirectory(expand(&undodir)) call mkdir(expand(&undodir), "p") endif if !isdirectory(expand(&backupdir)) call mkdir(expand(&backupdir), "p") endif if !isdirectory(expand(&directory)) call mkdir(expand(&directory), "p") endif