Last active
December 10, 2015 21:08
-
-
Save Macagare/4492834 to your computer and use it in GitHub Desktop.
vim configuration
(update ~/.vimrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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