Last active
January 14, 2016 10:32
-
-
Save nihil0/9696e2bebca74c270f66 to your computer and use it in GitHub Desktop.
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
" Backspace | |
set bs=2 " make backspace behave like normal again | |
" Map ESC key to jj | |
imap jj <ESC> | |
" bind Ctrl+<movement> keys to move around the windows, instead of using Ctrl+w + <movement> | |
" Every unnecessary keystroke that can be saved is good for your health :) | |
map <c-j> <c-w>j | |
map <c-k> <c-w>k | |
map <c-l> <c-w>l | |
map <c-h> <c-w>h | |
" Show whitespace | |
" MUST be inserted BEFORE the colorscheme command | |
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red | |
au InsertLeave * match ExtraWhitespace /\s\+$/ | |
" Enable syntax highlighting | |
" You need to reload this file for the change to apply | |
filetype off | |
filetype plugin indent on | |
syntax on | |
" Showing line numbers and length | |
set number " show line numbers | |
set tw=79 " width of document (used by gd) | |
set nowrap " don't automatically wrap on load | |
set fo-=t " don't automatically wrap text when typing | |
set colorcolumn=80 | |
highlight ColorColumn ctermbg=233 | |
" Real programmers don't use TABs but spaces | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set shiftround | |
set expandtab | |
" Disable stupid backup and swap files - they trigger too many events | |
" for file system watchers | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
" Setup Pathogen to manage your plugins | |
"mkdir -p ~/.vim/autoload ~/.vim/bundle | |
"curl -so ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
" Now you can install any plugin into a .vim/bundle/plugin-name/ folder | |
call pathogen#infect() | |
" ============================================================================ | |
" Python IDE Setup | |
" ============================================================================ | |
" solarized settings | |
syntax enable | |
set hlsearch | |
set background=dark | |
let g:solarized_termcolors=256 | |
let g:solarized_termtrans=1 | |
colorscheme solarized | |
" Settings for vim-powerline | |
set laststatus=2 | |
" Settings for jedi-vim | |
let g:jedi#usages_command = "<leader>z" | |
let g:jedi#popup_on_dot = 0 | |
let g:jedi#popup_select_first = 0 | |
map <Leader>b Oimport ipdb; ipdb.set_trace() # BREAKPOINT<C-c> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment