Last active
September 18, 2015 02:59
-
-
Save andybarilla/0a6a6d41abd6ce6ee9a0 to your computer and use it in GitHub Desktop.
.vimrc
This file contains 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 characters
" my vimrc with some chunks borrowed from | |
" https://gist.github.com/benfrain/f09dd39e66fe2da9cf0a | |
set nocompatible | |
filetype off | |
" install Vundle | |
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'chriskempson/base16-vim' | |
Plugin 'gmarik/vundle' | |
Plugin 'klen/python-mode' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'godlygeek/tabular' | |
Plugin 'plasticboy/vim-markdown' | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
set background=dark | |
let base16colorspace=256 | |
colorscheme base16-bright | |
set tabstop=4 | |
set ignorecase | |
set smartcase | |
set title | |
set showmode | |
set autochdir | |
" Python file type tabs | |
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 | |
autocmd Filetype markdown setlocal expandtab tabstop=4 shiftwidth=4 | |
" Shortcuts for the neverending vimrc tweeks | |
map ,e <Esc>:e ~/.vimrc<CR> | |
map ,s <Esc>:so ~/.vimrc<CR> | |
" Status line settings | |
set laststatus=2 | |
set statusline=[%n]\ %<%F\ \ \ [%M%R%H%W%Y][%{&ff}]\ \ %=\ line:%l/%L\ col:%c\ \ \ %p%% | |
for i in range(1, 99) | |
execute printf('nnoremap <Leader>%d :%db<CR>', i, i) | |
endfor | |
" Nerdtree settings | |
map <leader>t :NERDTreeToggle<cr> | |
" Markdown settings | |
let g:vim_markdown_folding_disabled=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment