Last active
June 13, 2019 18:38
-
-
Save Swivelgames/6bb6c565aa19528795870140f2985eb0 to your computer and use it in GitHub Desktop.
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
" Get the defaults that most users want. | |
source $VIMRUNTIME/defaults.vim | |
if has("vms") | |
set nobackup " do not keep a backup file, use versions instead | |
else | |
set backup " keep a backup file (restore to previous version) | |
if has('persistent_undo') | |
set undofile " keep an undo file (undo changes after closing) | |
endif | |
endif | |
if &t_Co > 2 || has("gui_running") | |
" Switch on highlighting the last used search pattern. | |
set hlsearch | |
endif | |
" Only do this part when compiled with support for autocommands. | |
if has("autocmd") | |
" Put these in an autocmd group, so that we can delete them easily. | |
augroup vimrcEx | |
au! | |
" For all text files set 'textwidth' to 78 characters. | |
autocmd FileType text setlocal textwidth=78 | |
augroup END | |
else | |
set autoindent " always set autoindenting on | |
endif " has("autocmd") | |
" Add optional packages. | |
" | |
" The matchit plugin makes the % command work better, but it is not backwards | |
" compatible. | |
" The ! means the package won't be loaded right away but when plugins are | |
" loaded during initialization. | |
if has('syntax') && has('eval') | |
packadd! matchit | |
endif | |
call plug#begin('~/.vim/plugged') | |
Plug 'tpope/vim-vinegar' | |
Plug 'jeffkreeftmeijer/vim-numbertoggle' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'mhinz/vim-signify' | |
Plug 'tpope/vim-fugitive' | |
Plug 'pangloss/vim-javascript' | |
Plug 'scrooloose/nerdtree' | |
Plug 'blueyed/vim-diminactive' | |
Plug 'https://gitlab.com/rj-white/vim-colors-paramountblue' | |
call plug#end() | |
set listchars=eol:↓,tab:┉┉,trail:●,extends:…,precedes:…,space:· | |
set list | |
set nowrap | |
set wildmenu | |
set number | |
set hls | |
set ts=4 | |
set scrolloff=4 | |
let g:airline#extensions#disable_rtp_load = 0 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
let g:airline#extensions#branch#enabled = 1 | |
let g:airline#extensions#branch#vcs_priority = ["git", "mercurial"] | |
let g:airline#extensions#whitespace#mixed_indent_algo = 1 | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
let mapleader = ";" | |
map <Tab> :bn<cr> | |
map <S-Tab> :bp<cr> | |
map <Leader>q :bp\|bd #<cr> | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
let g:NERDTreeDirArrowExpandable = '▸' | |
let g:NERDTreeDirArrowCollapsible = '▾' | |
let g:NERDTreeHijackNetrw = 0 | |
let g:NERDTreeShowHidden = 1 | |
let g:NERDTreeIgnore = ['\~$','\.swp$','\.orig'] | |
let g:airline_theme='jellybeans' | |
nnoremap - :E<CR> | |
nnoremap <Bslash> :NERDTreeToggle<CR> | |
nnoremap <C-p> :e **/* | |
set wildignore=',.*\.swp,.*\~,.*\.orig,' | |
set backupdir=/tmp// | |
set directory=/tmp// | |
set undodir=/tmp// | |
colorscheme paramountblue | |
hi! Search ctermbg=blue guibg=DarkBlue | |
hi! ColorColumn ctermbg=0 guibg=DarkGray | |
hi! SpecialKey ctermfg=0 guifg=DarkGray | |
hi! NonText ctermfg=0 guifg=DarkGray | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment