Created
March 22, 2020 01:47
-
-
Save snarkyboojum/090b617c4a2b649513ab2eb12d3d875c to your computer and use it in GitHub Desktop.
Configuration for Neovim on Windows 10
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
syntax on | |
set noerrorbells | |
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent | |
set nu | |
set nowrap | |
set smartcase | |
set noswapfile | |
set nobackup | |
set undodir=~/AppData/Local/nvim/undodir | |
set undofile | |
set incsearch | |
set encoding=utf-8 | |
set colorcolumn=80 | |
highlight ColorColumn ctermbg=0 guibg=lightgrey | |
" TODO: these python hosts aren't being picked up properly? | |
" disable Python 2 | |
let g:loaded_python_provider = 0 | |
let g:python3_host_prog = 'C:/Users/snark/Envs/neovim3/Scripts/python' | |
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'jremmen/vim-ripgrep' | |
Plug 'tpope/vim-fugitive' | |
Plug 'rust-lang/rust.vim' | |
Plug 'vim-utils/vim-man' | |
Plug 'lyuts/vim-rtags' | |
Plug 'git@github.com:kien/ctrlp.vim.git' | |
Plug 'git@github.com:Valloric/YouCompleteMe.git' | |
Plug 'mbbill/undotree' | |
call plug#end() | |
colorscheme gruvbox | |
set background=dark | |
let mapleader=" " | |
let g:netrw_browse_split=2 | |
let g:netrw_banner=0 | |
let g:netrw_winsize=25 | |
nnoremap <leader>h :wincmd h<CR> | |
nnoremap <leader>l :wincmd l<CR> | |
nnoremap <leader>j :wincmd j<CR> | |
nnoremap <leader>k :wincmd k<CR> | |
nnoremap <leader>u :UndotreeShow<CR> | |
nnoremap <leader>pv: wincmd v<bar> :Ex <bar> :vertical resize 30<CR> | |
"nnoremap <leader>ps :Rg<SPACE> | |
nnoremap <silent> <Leader>+ :vertical resize +5<CR> | |
nnoremap <silent> <Leader>- :vertical resize -5<CR> | |
nnoremap <silent> <Leader>gd :YcmCompleter GoTo<CR> | |
nnoremap <silent> <Leader>gf :YcmCompleter FixIt<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment