Skip to content

Instantly share code, notes, and snippets.

@phaberest
Created March 7, 2016 15:48
Show Gist options
  • Save phaberest/26df1c34e105f36228d7 to your computer and use it in GitHub Desktop.
Save phaberest/26df1c34e105f36228d7 to your computer and use it in GitHub Desktop.

Revisions

  1. phaberest created this gist Mar 7, 2016.
    29 changes: 29 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    set encoding=utf8
    set autoread
    set backspace=indent,eol,start
    set nu
    set showcmd
    set cursorline
    set incsearch
    set hlsearch
    set lazyredraw
    set showmatch

    set splitright
    set splitbelow
    set clipboard=unnamed
    let backspace=2

    " turn off search highlight
    nnoremap <leader><space> :nohlsearch<CR>
    " move vertically by visual line
    nnoremap j gj
    nnoremap k gk
    " move to beginning/end of line
    nnoremap B ^
    nnoremap E $
    set background=dark
    syntax on