Skip to content

Instantly share code, notes, and snippets.

@andybarilla
Last active September 18, 2015 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andybarilla/0a6a6d41abd6ce6ee9a0 to your computer and use it in GitHub Desktop.
Save andybarilla/0a6a6d41abd6ce6ee9a0 to your computer and use it in GitHub Desktop.
.vimrc
" 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