Last active
July 13, 2016 15:35
-
-
Save missingdays/9b62fadf57c93c7b0c21 to your computer and use it in GitHub Desktop.
my .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
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