Last active
October 18, 2019 06:52
-
-
Save jcppman/8949211 to your computer and use it in GitHub Desktop.
My .vimrc
This file contains 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
if $SHELL =~ "bin/fish" | |
set shell=/bin/bash | |
endif | |
set nocompatible | |
filetype off | |
set rtp+=~/.config/nvim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/vundle' | |
" colortheme | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'nanotech/jellybeans.vim' | |
Plugin 'iCyMind/NeoSolarized' | |
Plugin 'ayu-theme/ayu-vim' | |
" productivity | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
Plugin 'jlanzarotta/bufexplorer' | |
Plugin 'ervandew/supertab' | |
Plugin 'tpope/vim-surround' | |
Plugin 'vimoutliner/vimoutliner' | |
Plugin 'eugen0329/vim-esearch' | |
Plugin 'cloudhead/neovim-fuzzy' | |
Plugin 'mattn/emmet-vim' | |
" syntax & filetype | |
Plugin 'groenewege/vim-less' | |
Plugin 'hail2u/vim-css3-syntax' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'digitaltoad/vim-jade' | |
Plugin 'jtratner/vim-flavored-markdown' | |
Plugin 'dag/vim-fish' | |
Plugin 'mxw/vim-jsx' | |
Plugin 'rdolgushin/groovy.vim' | |
Plugin 'HerringtonDarkholme/yats.vim' | |
" others | |
Plugin 'editorconfig/editorconfig-vim' | |
Plugin 'neomake/neomake' | |
Plugin 'bling/vim-airline' | |
call vundle#end() | |
filetype plugin indent on | |
syntax enable | |
" Scheme | |
set termguicolors | |
let ayucolor="mirage" | |
colorscheme ayu | |
set nu | |
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set laststatus=2 | |
set cursorline | |
set backspace=2 | |
set colorcolumn=81 | |
hi ColorColumn ctermbg=Brown | |
set mouse=a | |
nnoremap <C-e> :NERDTreeToggle<CR> | |
nnoremap <C-a> :set hlsearch!<CR> | |
nnoremap <C-l> :lopen<CR> | |
nnoremap <C-q> :q<CR> | |
nnoremap <C-t> :term fish<CR> | |
nnoremap <C-s> :sp term://fish<CR>i | |
nnoremap <C-d> :vsp term://fish<CR>i | |
nnoremap ∆ :resize +5<CR> | |
nnoremap ˚ :resize -5<CR> | |
nnoremap ˙ :vertical resize +5<CR> | |
nnoremap ¬ :vertical resize -5<CR> | |
nnoremap <C-p> :FuzzyOpen<CR> | |
inoremap jj <ESC> | |
tnoremap <ESC> <C-\><C-n> | |
tnoremap <C-w> <C-\><C-n><C-w> | |
tnoremap <C-q> <C-\><C-n>:q<CR> | |
augroup markdown | |
au! | |
au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown | |
augroup END | |
augroup html | |
au! | |
au BufNewFile,BufRead *.html,*.htm set colorcolumn=0 | |
augroup END | |
augroup colorcolumn | |
au! | |
au BufNewFile,BufRead *.js,*.less,*.markdown,*.md set colorcolumn=81 | |
augroup END | |
augroup pcss | |
au! | |
au BufNewFile,BufRead *.pcss,*.pcssm setlocal filetype=css | |
augroup END | |
augroup as3 | |
au! | |
autocmd BufRead,BufNewFile *.as set filetype=as3 | |
augroup END | |
augroup syntaxCheck | |
au! | |
au BufWritePost *.html,*.js,*.jsx,*.python,*.css,*.pcss,*.pcssm Neomake | |
augroup END | |
" Close NERDTree automatically | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | |
" NERDTree Git | |
let g:NERDTreeIndicatorMapCustom = { | |
\ "Modified" : "✹", | |
\ "Staged" : "✚", | |
\ "Untracked" : "✭", | |
\ "Renamed" : "➜", | |
\ "Unmerged" : "═", | |
\ "Deleted" : "✖", | |
\ "Dirty" : "✗", | |
\ "Clean" : "✔︎", | |
\ "Unknown" : "?" | |
\ } | |
" vim-jsx | |
let g:jsx_ext_required = 0 | |
" Airline | |
let g:airline_powerline_fonts = 1 | |
" ESearch | |
let g:esearch = { | |
\ 'adapter': 'rg', | |
\ 'backend': 'nvim', | |
\ 'out': 'win', | |
\ 'batch_size': 1000, | |
\ 'use': ['visual', 'hlsearch', 'last'], | |
\} | |
call esearch#map('<C-_>', 'esearch') "map to ctrl + / | |
" Neomake | |
let g:neomake_html_tidy_exec = 'tidy' | |
let g:neomake_javascript_enabled_makers = ['eslint'] | |
let g:neomake_javascript_eslint_exe = 'eslint_d' | |
let g:neomake_css_makers = ['stylelint'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment