Skip to content

Instantly share code, notes, and snippets.

@lkosak
Last active December 23, 2015 09:49
Show Gist options
  • Save lkosak/6617252 to your computer and use it in GitHub Desktop.
Save lkosak/6617252 to your computer and use it in GitHub Desktop.
basic vimrc
" Basic vim settings
set nocompatible
syntax on
set encoding=utf-8
set showmode
set showcmd
set hidden
set ruler
set smartindent
set smarttab
set expandtab
set tabstop=2
set shiftwidth=2
set modelines=0
set scrolloff=3
set laststatus=2
set number
" Make new splits/vsplits open below/right of current buffer
set splitbelow
set splitright
" ctrl-based navigation of splits
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment