Skip to content

Instantly share code, notes, and snippets.

@mparker17
Last active July 10, 2022 05:39
Show Gist options
  • Save mparker17/3153578 to your computer and use it in GitHub Desktop.
Save mparker17/3153578 to your computer and use it in GitHub Desktop.
$XDG_CONFIG_HOME/nvim
" Place at $XDG_CONFIG_HOME/nvim/init.vim
" Assumes neovim (nvim) defaults.
" Grouping based on https://neovim.io/doc/user/options.html
" 2 moving around, searching and patterns
set nostartofline
set wrapscan
set smartcase
" 4 displaying text
set nowrap
set breakindent
set breakindentopt=shift:2,sbr
set showbreak='↳'
set lazyredraw
set number
" 5 syntax, highlighting and spelling
set syntax=ON
set cursorline
" 6 multiple windows
set statusline=\ %n\ [%{&ff}%M%R%H%W%Y]\ [⇃%c⊢%l/%L,%p%%]%<\ %=%f
" 7 multiple tab pages
set showtabline=2
set tabline=%T%t\ %m%(\ %w%)%X
" 9 using the mouse
set mouse=ar
set mousemodel=popup_setpos
" 11 messages and info
set visualbell
" 14 tabs and indenting
set tabstop=4
set shiftwidth=4
set softtabstop=4
set shiftround
set smartindent
set copyindent
" 15 folding
set foldcolumn=1
" 20 command line editing
set wildignorecase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment