Skip to content

Instantly share code, notes, and snippets.

@smoitra87
Created October 26, 2013 15:06
Show Gist options
  • Save smoitra87/7170426 to your computer and use it in GitHub Desktop.
Save smoitra87/7170426 to your computer and use it in GitHub Desktop.
My vimrc
"" Modified from Mahdi
set nocompatible
syntax enable
set encoding=utf-8
set showcmd
set t_Co=256
filetype off
execute pathogen#infect()
call pathogen#helptags()
syntax on
filetype plugin indent on
"" Whitespace
set nowrap
set tabstop=4
set relativenumber
set shiftwidth=4
set expandtab
set list
set backspace=indent,eol,start
"" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
"Abbreviations
:iabbrev @@ subhodeep.moitra@gmail.com
:iabbrev ppython #!/usr/bin/env python <cr>#-*- coding: utf-8 -*-
:iabbrev pdb # --- BREAKPOINT --- <cr>import pdb; pdb.set_trace()
:iabbrev ccopy Copyright 2013 Subhodeep Moitra, all rights reserved
set colorcolumn=81
set cursorline
set laststatus=2
nmap <F2> :NERDTreeToggle<CR> " mapping f2 to NERDTreeToggle
noremap <F9> :Gcommit<CR> " mapping f9 to Gcommit
nnoremap <F5> :GundoToggle<CR>
" Enable python folding
let g:pymode_folding = 0 " python-mode
" Load show documentation plugin
let g:pymode_doc = 1
"
" " Key for show python documentation
let g:pymode_doc_key = 'K'
" Load run code plugin
let g:pymode_run = 1
" Key for run python code
let g:pymode_run_key = '<leader>r'
@smoitra87
Copy link
Author

:iabbrev ipdb import ipdb; ipdb.set_trace()# --- BREAKPOINT ---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment