Skip to content

Instantly share code, notes, and snippets.

@Macagare
Last active December 10, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Macagare/4492834 to your computer and use it in GitHub Desktop.
Save Macagare/4492834 to your computer and use it in GitHub Desktop.
vim configuration (update ~/.vimrc)
"Status line
set statusline=%F%m%r%h%w\ %{&ff}\ %Y\ a/h:%03.3b/%02.2B\ %04l,%04v\ %p%%\ %L\ lines
set laststatus=2
"Tabstop
set tabstop=4
set shiftwidth=4
set expandtab
set backspace=indent,eol,start
"Search
set hlsearch
set incsearch
set ignorecase
set smartcase
"Autoindent
set si
"Filetype
:filetype indent on
"Nocompatible
set nocompatible
"Cursorline
set cursorline
highlight CursorLine cterm=bold
"Key Mappings
map tn :tabn<CR>
map tp :tabp<CR>
map sh :sp<CR>
map sv :vs<CR>
"Control Mappings
map! <C-A> <C-X><C-U>
"Colorscheme
syntax on
"Mappings
let mapleader = ","
map <leader>n :w\|!node %<CR>
map <leader>l :w\|!coffee %<CR>
map <leader>v :w\|!vows --spec %<CR>
map <leader>b :w\|!sh %<CR>
"NERDTree Mappings
map <leader>t :NERDTreeToggle<CR>
"show line numbers
set number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment