Created
October 26, 2013 15:06
-
-
Save smoitra87/7170426 to your computer and use it in GitHub Desktop.
My vimrc
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 characters
"" 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 @@ [email protected] | |
: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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:iabbrev ipdb import ipdb; ipdb.set_trace()# --- BREAKPOINT ---