Created
December 10, 2017 07:39
-
-
Save insipx/edced436d9887b5b03017c7f29f66039 to your computer and use it in GitHub Desktop.
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
set nocompatible " be iMproved | |
filetype off " required! | |
set exrc | |
set secure | |
" Specify a directory for plugins | |
" " - For Neovim: ~/.local/share/nvim/plugged | |
" " - Avoid using standard Vim directory names like 'plugin' | |
" My Bundles here: | |
call plug#begin('~/.local/share/nvim/plugged') | |
" original repos on github | |
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} | |
" Passives | |
" Displays indentation levels within vertical lines | |
Plug 'Yggdroot/indentLine' | |
" Sexy EyeCandy | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
" Displays added/changed/removed git | |
Plug 'airblade/vim-gitgutter' | |
" Repeat last change for commands not built-in to vim | |
Plug 'tpope/vim-repeat' | |
" This plug-in provides automatic closing of quotes, parenthesis, brackets, etc., bes | |
Plug 'Raimondi/delimitMate' | |
" Colorschemes | |
Plug 'flazz/vim-colorschemes' | |
" Automatically restore files cursor position and folding | |
Plug 'vim-scripts/restore_view.vim' | |
" Vastly improved js indentation/highlight | |
Plug 'pangloss/vim-javascript' | |
" Better JSON highlighting | |
Plug 'elzr/vim-json' | |
" File Searching | |
" Awesome Fuzzy Finder | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
"Actives | |
" displays overlay for easy movement | |
Plug 'Lokaltog/vim-easymotion' | |
" Arrange things in a 'tabular' way | |
Plug 'godlygeek/tabular' | |
"figure this one out!!! (expands abbreviations) | |
Plug 'mattn/emmet-vim' | |
" ALE (lint engine) | |
Plug 'w0rp/ale' | |
"Polyglot | |
Plug 'sheerun/vim-polyglot' "https://github.com/sheerun/vim-polyglot | |
Plug 'othree/html5.vim' | |
Plug 'othree/javascript-libraries-syntax.vim' | |
Plug 'rust-lang/rust.vim' | |
Plug 'treycordova/rustpeg.vim' | |
call plug#end() | |
" Mappings | |
" | |
nmap \d :Vex<CR> | |
nmap \t :Files<CR> | |
nmap ; :Buffers<CR> | |
nmap \f :Tags<CR> | |
nmap \a :Ag<CR> | |
noremap <C-n> :call NumberToggle()<cr> | |
noremap <silent> <C-S> :update<CR> | |
vnoremap <silent> <C-S> <C-C>:update<CR> | |
inoremap <silent> <C-S> <C-O>:update<CR> | |
"move tabs | |
nnoremap <A-Left> :-tabmove<cr> | |
nnoremap <A-Right> :+tabmove<cr> | |
" General Settings | |
syntax on | |
"tabs | |
set relativenumber | |
set number | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set smarttab | |
set autoindent | |
set expandtab | |
set colorcolumn=81 | |
highlight ColorColumn ctermbg = darkgrey | |
" Language-Specific Settings | |
" JS | |
let g:ale_linters = {'js': ['eslint']} | |
let g:ale_linter_aliases = {'js': 'css'} | |
highlight clear ALEErrorSign | |
highlight clear ALEWarningSign | |
let g:ale_sign_error = '🔴' | |
let g:ale_sign_warning = '❓' | |
let g:ale_statusline_format = ['X %d', '? %d', ''] | |
let g:ale_echo_msg_format = '%linter% says %s' | |
noremap \an :ALENextWrap<cr> | |
noremap \ap :ALEPreviousWrap<cr> | |
" Rust | |
filetype plugin indent on " required! | |
set clipboard=unnamed | |
" JSON | |
au! BufRead,BufNewFile *.json set filetype=json | |
augroup json_autocmd | |
autocmd! | |
autocmd FileType json set autoindent | |
autocmd FileType json set formatoptions=tcq2l | |
autocmd FileType json set textwidth=78 shiftwidth=2 | |
autocmd FileType json set softtabstop=2 tabstop=8 | |
autocmd FileType json set expandtab | |
autocmd FileType json set foldmethod=syntax | |
augroup END | |
" Vim Settings | |
"netrw | |
let g:netrw_banner = 0 | |
let g:netrw_keepdir = 0 | |
let g:netrw_liststyle = 1 " or 3 | |
let g:netrw_sort_options = 'i' | |
let g:netrw_winsize = 20 | |
autocmd VimEnter * if !argc() | Explore | endif | |
"general | |
function! NumberToggle() | |
if(&relativenumber == 1) | |
set number | |
else | |
set relativenumber | |
endif | |
endfunc | |
" autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode() | |
" Closetag | |
let g:closetag_filenames = "*.html, *.xhtml, *.phtml, *.js, *.jsx" | |
" vertical line indentation | |
let g:indentLine_char = '|' | |
let g:indentLine_color_term = 239 | |
"folding settings | |
set foldmethod=manual | |
set fdm=manual | |
set foldnestmax=10 | |
set foldlevel=1 | |
"restore_view | |
set viewoptions=cursor,folds,slash,unix | |
let g:skipview_files= ['*\.vim'] | |
"Vim Airline | |
let g:airline_powerline_fonts=1 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_theme='powerlineish' | |
" unicode symbols | |
let g:airline_left_sep = '»' | |
let g:airline_left_sep = '▶' | |
let g:airline_right_sep = '«' | |
let g:airline_right_sep = '◀' | |
" airline symbols | |
let g:airline_left_sep = '' | |
let g:airline_left_alt_sep = '' | |
let g:airline_right_sep = '' | |
let g:airline_right_alt_sep = '' | |
"ColorStuff | |
let g:solarized_termtrans = 1 | |
colorscheme anotherdark | |
" Colorschemes i have grown to like | |
" anotherdark | |
" Revolution | |
" 0x7A69_dark | |
" 256-jungle | |
"slate | |
"OUTdelek | |
"elflord | |
"OUTholodark | |
"OUTron | |
"vividchalk | |
"OUTzelner | |
"desert | |
" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment