Last active
May 19, 2020 19:27
-
-
Save i-am-tom/7834572bc1c7fd052588466d488d661d to your computer and use it in GitHub Desktop.
Neovim config :)
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
call plug#begin('~/.vim/plugged') | |
Plug 'godlygeek/tabular' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'kcsongor/vim-monochrome' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-unimpaired' | |
call plug#end() | |
colorscheme monochrome | |
set autoindent | |
set colorcolumn=+1 | |
set copyindent | |
set expandtab | |
set grepprg=rg\ --vimgrep | |
set inccommand=nosplit | |
set laststatus=2 | |
set nolist | |
set noswapfile | |
set nowrap | |
set number | |
set relativenumber | |
set ruler | |
set shiftwidth=2 | |
set tabstop=2 | |
set textwidth=79 | |
func! DeleteTrailingWhitespace() | |
norm mz | |
%s/\s\+$//ge | |
norm `z | |
endfunc | |
autocmd BufWritePre * :call DeleteTrailingWhitespace() | |
vmap <silent> <Leader>a :Tabularize/^[^A-Z]*\zs[A-Z][a-zA-Z0-9\\.]*<CR> | |
nmap <Leader>f :FZF<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment