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.

Revisions

  1. mhebing revised this gist Jun 10, 2020. 1 changed file with 79 additions and 2 deletions.
    81 changes: 79 additions & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,40 @@

    " --- 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
    @@ -7,5 +44,45 @@ 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
    " 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
  2. mhebing revised this gist May 29, 2016. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,10 @@ set expandtab
    set autoindent
    set tabstop=4
    set shiftwidth=4
    set textwidth=80
    set textwidth=0
    set pastetoggle=<F10>
    set spell
    au BufNewFile,BufRead *.md set filetype=markdown
    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
  3. mhebing revised this gist Feb 25, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    set expandtab
    set autoindent
    set tabstop=2
    set shiftwidth=2
    set tabstop=4
    set shiftwidth=4
    set textwidth=80
    set pastetoggle=<F10>
    set spell
  4. mhebing revised this gist Feb 25, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,5 @@ set tabstop=2
    set shiftwidth=2
    set textwidth=80
    set pastetoggle=<F10>
    set spell
    au BufNewFile,BufRead *.md set filetype=markdown
  5. mhebing revised this gist Sep 15, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,5 @@ set autoindent
    set tabstop=2
    set shiftwidth=2
    set textwidth=80
    au BufNewFile,BufRead *.md set filetype=markdown
    set pastetoggle=<F10>
    au BufNewFile,BufRead *.md set filetype=markdown
  6. mhebing revised this gist Nov 10, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,5 @@ set expandtab
    set autoindent
    set tabstop=2
    set shiftwidth=2
    set textwidth=80
    au BufNewFile,BufRead *.md set filetype=markdown
  7. mhebing revised this gist Aug 25, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    set expandtab
    set autoindent
    set smartindent
    set tabstop=4
    set shiftwidth=4
    set tabstop=2
    set shiftwidth=2
    au BufNewFile,BufRead *.md set filetype=markdown
  8. mhebing created this gist Jul 5, 2014.
    5 changes: 5 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    set expandtab
    set autoindent
    set smartindent
    set tabstop=4
    set shiftwidth=4