Created
July 26, 2018 23:15
-
-
Save joseph-montanez/cfa8aa4faa3f7d88b8eed2166953f3a0 to your computer and use it in GitHub Desktop.
My NeoVim Configuration
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
" mkdir -p ~/.config/nvim | |
" nvim ~/.config/nvim/init.vim | |
" 1) Install Vim Plug | |
" NeoVim - Unix | |
" | |
" curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" NeoVim - Windows | |
" | |
" md ~\AppData\Local\nvim\autoload | |
" $uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
" (New-Object Net.WebClient).DownloadFile( | |
" $uri, | |
" $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath( | |
" "~\AppData\Local\nvim\autoload\plug.vim" | |
" ) | |
" ) | |
" 2) Install Plugins | |
" Type :source $MYVIMRC | |
" Type :PlugInstall | |
call plug#begin('~/nvim/plugged') | |
" Git | |
Plug 'tpope/vim-fugitive' | |
Plug 'mhinz/vim-signify' | |
" Buffers | |
Plug 'ap/vim-buftabline' | |
" Status Line | |
" Plug 'powerline/powerline' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'enricobacis/vim-airline-clock' | |
" CTags | |
Plug 'ludovicchabant/vim-gutentags' | |
" Autocomplete | |
Plug 'roxma/nvim-completion-manager' | |
Plug 'phpactor/phpactor' | |
Plug 'roxma/ncm-phpactor' | |
" Filebrowser | |
" Plug 'scrooloose/nerdtree' | |
Plug 'bfredl/nvim-miniyank' | |
Plug 'moll/vim-bbye' | |
Plug 'itchyny/lightline.vim' | |
Plug 'tpope/vim-commentary' | |
Plug 'tpope/vim-abolish' | |
" Project Manager | |
Plug 'tpope/vim-projectionist' | |
Plug 'amiorin/vim-project' | |
Plug 'mhinz/vim-startify' | |
" Search / Replace | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'terryma/vim-expand-region' | |
" Linting | |
Plug 'neomake/neomake' | |
" Colors | |
Plug 'sts10/vim-pink-moon' | |
Plug 'KKPMW/sacredforest-vim' | |
Plug 'lmintmate/blue-mood-vim' | |
Plug 'junegunn/limelight.vim' | |
Plug 'Jimeno0/vim-chito' | |
Plug 'sonph/onehalf', {'rtp': 'vim/'} | |
" Terminal | |
Plug 'Lenovsky/nuake' | |
" Line Numbers | |
Plug 'myusuf3/numbers.vim' | |
" Rsync / SFTP Sync | |
Plug 'skywind3000/asyncrun.vim' | |
Plug 'eshion/vim-sync' | |
call plug#end() | |
" Setup ColorScheme | |
syntax on | |
set cursorline | |
colorscheme onehalfdark | |
" Copy / Paste | |
set clipboard=unnamed | |
"map <D-c> "+y<CR> | |
"--- Fix tabs to spaces!! | |
filetype plugin indent on | |
" show existing tab with 4 spaces width | |
set tabstop=4 | |
" when indenting with '>', use 4 spaces width | |
set shiftwidth=4 | |
" On pressing tab, insert 4 spaces | |
set expandtab | |
"--- Terminal | |
nnoremap <F4> :Nuake<CR> | |
inoremap <F4> <C-\><C-n>:Nuake<CR> | |
tnoremap <F4> <C-\><C-n>:Nuake<CR> | |
let g:neoterm_autoscroll=1 | |
"--- Linting | |
call neomake#configure#automake('nrwi', 500) | |
"--- Selection Expand | |
"--- Fonts | |
set guifont=Fira\ Mono:h18 | |
"--- Mouse Support | |
:set mouse=a | |
noremap <MiddleMouse> <4-LeftMouse> | |
noremap <MiddleDrag> <LeftDrag> | |
noremap <MiddleRelease> <C-g> | |
"--- Indenting With Tab Key | |
nnoremap <Tab> >>_ | |
nnoremap <S-Tab> <<_ | |
inoremap <S-Tab> <C-D> | |
vnoremap <Tab> >gv | |
vnoremap <S-Tab> <gv | |
"--- Status Line | |
":set statusline+=%{FugitiveStatusline()} | |
let g:airline_theme='onehalfdark' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#formatter = 'unique_tail_improved' | |
let g:airline#extensions#clock#format = '%H:%M:%S' | |
"-- Column Gutter | |
set colorcolumn=80 | |
" Buffers | |
set hidden | |
nnoremap <C-N> :bnext<CR> | |
nnoremap <C-P> :bprev<CR> | |
" Saving | |
inoremap <C-s> <c-o>:w<cr> | |
nnoremap <C-s> :w<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment