Skip to content

Instantly share code, notes, and snippets.

@bhalash
Created August 24, 2015 08:55
Show Gist options
  • Save bhalash/151a170e8f75733a4b12 to your computer and use it in GitHub Desktop.
Save bhalash/151a170e8f75733a4b12 to your computer and use it in GitHub Desktop.
Vimrc
" Set mode for backspace use.
set nocompatible
" Enable syntax highlighting
syntax on
" Change backspace for OSX
set backspace=indent,eol,start
" Enable line numbers.
set nu
" Open splits on right
set splitbelow
set splitright
" Testing keybinds
nnoremap <C-Right> <C-W><C-Right>
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>
" Autocomplete CSS.
set omnifunc=csscomplete#CompleteCSS
" Follow auto indent.
set autoindent
" Enable spell checking.
" setlocal spell spelllang=en_us
" Tabs
set tabstop=4
set shiftwidth=4
set expandtab
" Default theme.
colors oxeded
" Set to auto read when a file is changed from the outside
set autoread
" Highlight the current line and set the colour
set cul
hi CursorLine term=none cterm=none ctermbg=234
" Set padding when scrolling
set scrolloff=5
set sidescrolloff=5
" Scroll with mouse
set ttymouse=xterm2
set mouse=i
" Enable ruler for column count
set ruler
" Change matching bracket style
highlight MatchParen cterm=bold ctermfg=black ctermbg=white
" Enable statusbar.
set laststatus=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment