Skip to content

Instantly share code, notes, and snippets.

@mhebing
Last active June 10, 2020 07:28
Show Gist options
  • Select an option

  • Save mhebing/bf39b6915e592f7d57e2 to your computer and use it in GitHub Desktop.

Select an option

Save mhebing/bf39b6915e592f7d57e2 to your computer and use it in GitHub Desktop.
Basic .vimrc
" --- VUNDLE ---
set nocompatible " be iMproved, required
filetype off " required
" Set Vundle path + initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Formats supported
Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" ALL PLUGINS HERE
Bundle 'Valloric/YouCompleteMe'
Plugin 'vim-syntastic/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'mattn/emmet-vim'
Plugin 'tpope/vim-surround'
call vundle#end() " required
filetype plugin indent on " required
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
map <C-o> :NERDTreeToggle<CR>
" --- MHEBING ---
set expandtab
set autoindent
set tabstop=4
set shiftwidth=4
set textwidth=0
set pastetoggle=<F10>
set spell
au BufNewFile,BufRead *.md set filetype=markdown
au BufNewFile,BufRead *.py set nospell
" au BufNewFile,BufRead *.rst set nowrap
au BufNewFile,BufRead *-de.* set spelllang=de
" New
au BufNewFile,BufRead *.js, *.html, *.css, *scss
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
\ set nospell
set mouse=a
set nu
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Folding, using <space>
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
set softtabstop=4
" set fileformat=unix
" set encoding=utf-8
"python with virtualenv support
" py << EOF
" import os
" import sys
" if 'VIRTUAL_ENV' in os.environ:
" project_base_dir = os.environ['VIRTUAL_ENV']
" activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
" execfile(activate_this, dict(__file__=activate_this))
" EOF
" let python_highlight_all=1
" syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment