Skip to content

Instantly share code, notes, and snippets.

@navasvarela
Created August 19, 2011 23:43
Show Gist options
  • Save navasvarela/1158322 to your computer and use it in GitHub Desktop.
Save navasvarela/1158322 to your computer and use it in GitHub Desktop.
My .vimrc
filetype plugin on
syntax on
set tabstop=4
set shiftwidth=4
set showmatch
set number
map <F3> <Esc>gg=G<CR>
imap <F3> <Esc>gg=G<CR>
map <F5> :w<CR>:!node %:p<CR>
imap <F5> <Esc>:w<CR>:!node %:p<CR>
map <F2> <Esc>:wqa<CR>
map <F6> <Esc>gg"*yG<CR>
nmap <F4> :w<CR>:make<CR>:cw<CR>
nmap <C-k> :tabprev<CR>
nmap <C-l> :tabnext<CR>
nmap <C-n> :tabnew<CR>
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
autocmd BufNewFile,BufRead *.json set ft=javascript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment