Skip to content

Instantly share code, notes, and snippets.

@missingdays
Last active July 13, 2016 15:35
Show Gist options
  • Save missingdays/9b62fadf57c93c7b0c21 to your computer and use it in GitHub Desktop.
Save missingdays/9b62fadf57c93c7b0c21 to your computer and use it in GitHub Desktop.
my .vimrc
call plug#begin('~/.config/nvim/plugged')
Plug 'https://github.com/flazz/vim-colorschemes'
Plug 'https://github.com/scrooloose/nerdtree'
Plug 'https://github.com/moll/vim-node'
Plug 'https://github.com/pangloss/vim-javascript'
Plug 'https://github.com/jelera/vim-javascript-syntax'
call plug#end()
set ruler
set laststatus=2
set relativenumber
set title
set hlsearch
filetype plugin indent on
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
autocmd vimenter * NERDTree
map <C-n> :NERDTreeToggle<CR>
color elda
let g:gitgutter_max_signs = 1000000000
" For local replace
nnoremap gr gd[{V%::s/<C-R>///gc<left><left><left>
" Colors for nerdtree
function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)
exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg
exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#'
endfunction
call NERDTreeHighlightFile('jade', 'red', 'none', 'green', '#151515')
call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515')
call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515')
call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515')
call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515')
call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515')
call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515')
call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515')
call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515')
call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515')
call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515')
call NERDTreeHighlightFile('js', 'Red', 'none', '#ff0000', '#151515')
call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#151515')
hi Directory guifg=#99FF99 ctermfg=green
command -nargs=1 Ba execute "echo system(" string(<q-args>) ")"
inoremap jk <esc>
abbrev fun function
abbrev define define(function(require, exports, module){});
abbrev exports module.exports =
let NEDRTreeShowHidden=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment