Created
September 8, 2020 21:42
-
-
Save veggiemonk/362b1e55933203485f74b79899c02b7e to your computer and use it in GitHub Desktop.
vimrc
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
let $RTP=split(&runtimepath, ',')[0] | |
let $RC="$HOME/.vim/vimrc" | |
filetype plugin indent on | |
syntax on | |
set shiftwidth=4 tabstop=4 softtabstop=4 expandtab autoindent smartindent | |
set path=.,** | |
set backspace=start,eol,indent | |
set hidden | |
set noswapfile | |
set nobackup | |
set nu | |
set relativenumber | |
set nowrap | |
set noerrorbells | |
set smartcase | |
set undodir=~/.vim/undodir | |
set undofile | |
set incsearch | |
set noshowmode | |
call plug#begin('~/.vim/plugged') | |
"Plug 'joshdick/onedark.vim' | |
Plug 'connorholyday/vim-snazzy' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'itchyny/lightline.vim' | |
Plug 'ap/vim-css-color' | |
Plug 'frazrepo/vim-rainbow' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-commentary' | |
Plug 'christoomey/vim-sort-motion' | |
Plug 'christoomey/vim-system-copy' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'mbbill/undotree' | |
Plug 'vifm/vifm.vim' | |
call plug#end() | |
set laststatus=2 | |
"colorscheme onedark | |
colorscheme snazzy | |
set colorcolumn=80 | |
set background=dark | |
highlight ColorColumn ctermbg=red guibg=red | |
if executable('rg') | |
let g:rg_derive_root='true' | |
endif | |
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } } | |
let loaded_matchparen = 1 | |
let g:rainbow_active = 1 | |
let g:lightline = { | |
\ 'colorscheme': 'wombat', | |
\ 'active': { | |
\ 'left': [ [ 'mode', 'paste' ], | |
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] | |
\ }, | |
\ 'component_function': { | |
\ 'gitbranch': 'FugitiveHead' | |
\ }, | |
\ } | |
let mapleader = " " | |
nnoremap <leader>h :wincmd h<CR> | |
nnoremap <leader>j :wincmd j<CR> | |
nnoremap <leader>k :wincmd k<CR> | |
nnoremap <leader>l :wincmd l<CR> | |
nnoremap <leader>u :UndotreeShow<CR> | |
nnoremap <leader>pv :wincmd v<bar> :Ex <bar> :vertical resize 30<CR> | |
nnoremap <Leader>ps :Rg<SPACE> | |
" nnoremap <Leader><CR> :so ~/.config/nvim/init.vim<CR> | |
nnoremap <Leader><CR> :so ~/.vim/vimrc<CR> | |
nnoremap <Leader>+ :vertical resize +5<CR> | |
nnoremap <Leader>- :vertical resize -5<CR> | |
nnoremap <Leader>rp :resize 100<CR> | |
inoremap <C-c> <esc> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment