Skip to content

Instantly share code, notes, and snippets.

@matthewstory
Created November 21, 2011 04:22
Show Gist options
  • Save matthewstory/1381600 to your computer and use it in GitHub Desktop.
Save matthewstory/1381600 to your computer and use it in GitHub Desktop.

Revisions

  1. matthewstory revised this gist Feb 16, 2012. 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
    @@ -7,6 +7,7 @@ set number
    autocmd FileType php set smartindent
    autocmd FileType javascript set smartindent
    autocmd FileType python set smartindent
    autocmd FileType c set smartindent noexpandtab
    set autoindent
    set encoding=utf8
    map <C-J> <C-W>j<C-W>_
  2. matthewstory revised this gist Nov 21, 2011. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,7 @@ map <C-N> :set nopaste number<Return>
    set wmw=0
    set wmh=0
    highlight OverLength ctermbg=red ctermfg=white guibg=#592929
    match OverLength /\%81v.*/
    match OverLength /\%81v.*/
    highlight TrailingSpace ctermbg=red ctermfg=white guibg=#592929
    au InsertEnter * match TrailingSpace /\s\+\%#\@<!$/
    au InsertLeave * match TrailingSpace /\s\+$/
  3. matthewstory created this gist Nov 21, 2011.
    23 changes: 23 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    syntax on
    set viminfo='20,\"500
    set tabstop=4 shiftwidth=4 expandtab
    set nohlsearch
    set ignorecase smartcase
    set number
    autocmd FileType php set smartindent
    autocmd FileType javascript set smartindent
    autocmd FileType python set smartindent
    set autoindent
    set encoding=utf8
    map <C-J> <C-W>j<C-W>_
    map <C-K> <C-W>k<C-W>_
    map <C-H> <C-W>h
    map <C-L> <C-W>l
    map <C-E> <C-W>=
    map <C-B> <C-W><bar>
    map <C-P> :set paste nonumber<Return>
    map <C-N> :set nopaste number<Return>
    set wmw=0
    set wmh=0
    highlight OverLength ctermbg=red ctermfg=white guibg=#592929
    match OverLength /\%81v.*/