Skip to content

Instantly share code, notes, and snippets.

@easymoney322
Last active March 13, 2025 06:31
Show Gist options
  • Save easymoney322/713b04083e9ceef89f1a1485d7ca828f to your computer and use it in GitHub Desktop.
Save easymoney322/713b04083e9ceef89f1a1485d7ca828f to your computer and use it in GitHub Desktop.
basic nvim config
set autoindent
set tabstop=2
set shiftwidth=2
set expandtab
set smartcase
set mouse=
set laststatus=2
set signcolumn=yes
set numberwidth=2
set nofixeol
set nofixendofline
" set statuscolumn=%@SignCb@%s%=%T%@NumCb@%l│%T
" let &stc='%#NonText#%{&nu?v:lnum:""}' .
" '%=%{&rnu&&(v:lnum%2)?"\ ".v:relnum:""}' .
" '%#LineNr#%{&rnu&&!(v:lnum%2)?"\ ".v:relnum:""}'
" The config file is located at:
" Unix ~/.config/nvim/init.vim (or init.lua)
" Windows ~/AppData/Local/nvim/init.vim (or init.lua)
" $XDG_CONFIG_HOME $XDG_CONFIG_HOME/nvim/init.vim (or init.lua)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment