Skip to content

Instantly share code, notes, and snippets.

@mrtopf
Created May 4, 2013 15:37
Show Gist options
  • Save mrtopf/5517850 to your computer and use it in GitHub Desktop.
Save mrtopf/5517850 to your computer and use it in GitHub Desktop.
meine .vimrc #cool
filetype off
"call pathogen#runtime_append_all_bundles()
"filetype plugin indent on
set nocompatible
set modelines=0
set softtabstop=4
set tabstop=4
set shiftwidth=4
set ai
set expandtab
let mapleader = ","
iab pdb import pdb; pdb.set_trace()
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
set wrap
set textwidth=79
set formatoptions=qrn1
set encoding=utf-8
set scrolloff=3
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
au FocusLost * :wa
inoremap jj <ESC>
nnoremap <C-S-h> gt
nnoremap <C-S-l> nt
nnoremap <leader>ev <C-w><C-v><C-l>:e $MYVIMRC<cr>
nnoremap <leader>w <C-w>v<C-w>l
nnoremap <leader>r :NERDTree<cr>
nnoremap <leader>q gqip
nnoremap <leader>a :Ack
nnoremap <leader>0 yyPVr=jyypVr=
nnoremap <leader>1 yypVr=
nnoremap <leader>2 yypVr-
nnoremap <leader>3 yypVr*
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
set list
set listchars=tab:▸\
set noswapfile
set foldlevel=2
let NERDTreeIgnore = ['\.pyc']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment