Skip to content

Instantly share code, notes, and snippets.

@i-am-tom
Last active May 19, 2020 19:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i-am-tom/7834572bc1c7fd052588466d488d661d to your computer and use it in GitHub Desktop.
Save i-am-tom/7834572bc1c7fd052588466d488d661d to your computer and use it in GitHub Desktop.
Neovim config :)
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