Skip to content

Instantly share code, notes, and snippets.

@kmehl
Forked from Asenar/.vimrc
Created March 10, 2016 10:58
Show Gist options
  • Save kmehl/882b7fa352ab7e696f94 to your computer and use it in GitHub Desktop.
Save kmehl/882b7fa352ab7e696f94 to your computer and use it in GitHub Desktop.

Revisions

  1. @Asenar Asenar created this gist Aug 25, 2015.
    57 changes: 57 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    " put in ~/.vimrc

    " {{{ general config
    set nocompatible " vim Improved
    set t_Co=256 " 256 colors
    set ruler " show line and column in status bar
    set showcmd " show the current command you're typing
    " }}}

    " {{{ look and feel
    set showmatch " show corresponding bracket
    set number " show line number
    syntax on " syntax color
    set hlsearch ? highlight search
    set ignorecase
    set smartcase " ignorecase + smartcase to search with no sensitive case if all is lower
    set scrolloff=5 " keep 5 line above/below the cursor
    set cursorline " different color for the current line
    " }}}

    " {{{ About tabulations
    set noexpandtab
    set softtabstop
    set shiftwidth
    set tabstop
    " }}}



    " # some shortcuts example (see :help macro )

    " ## use tabs to open multiple files
    nmap <C-t> :tabnew<CR>
    imap <C-t> <Esc>:tabnew<CR>
    nmap <Tab> gt<CR> " nextab
    nmap <S-Tab> gT<CR> " previoustab


    " ## automatically add the closing brackets/parenthesis/quote/...
    inoremap ( ()<left>
    inoremap [ []<left>
    inoremap { {}<left>
    inoremap < <><left>
    inoremap ' ''<left>
    inoremap " ""<left>
    " # some plugins
    " see https://github.com/Shougo/neobundle.vim for installation instruction
    " if has('vim_starting')
    " set runtimepath+=~/.vim/bundle/neobundle.vim/
    " endif
    " call neobundle#begin(expand('~/.vim/bundle/'));
    " Neobundle 'Shougo/neobundle.vim'
    " NeoBundle 'tomtom/quickfixsigns_vim'