dotfiles/home/.config/nvim/rc/base.vim

36 lines
1.2 KiB
VimL
Raw Normal View History

2021-07-23 16:08:03 +00:00
filetype plugin on " Enable filetype detection
2021-07-23 17:14:22 +00:00
" Tab settings
set expandtab " Expand tabs to spaces
2021-07-23 16:08:03 +00:00
set tabstop=4 " Tab size
set shiftwidth=4 " Indentation size
set softtabstop=4 " Tabs/Spaces interrop
set tabpagemax=50 " More tabs
2021-07-23 17:14:22 +00:00
" In-file Search (/)
2021-07-23 16:08:03 +00:00
set ignorecase " Do case insensitive matching
set incsearch " Show partial matches for a search phrase
set hlsearch " Highlight Search
2021-07-23 17:14:22 +00:00
" Command-mode search
2021-07-23 16:08:03 +00:00
set path+=** " Search down into subfolders with tab completion
2021-07-23 17:14:22 +00:00
set wildmode=longest,list,full " Enable autocompletion
2021-07-23 16:08:03 +00:00
set wildmenu " Display all matching files when we tab complete
2021-07-23 17:14:22 +00:00
2021-09-25 00:42:36 +00:00
" Folding
set foldmethod=indent " Use indent to determine the fold levels
set foldnestmax=8 " Only fold up to given amount of levels
set foldlevel=2 " Set initial fold level
set nofoldenable " Hide all folds by default
2021-07-23 17:14:22 +00:00
" Misc
set autoindent " Enable autoindent
set autoread " Reload files on change
set undolevels=999 " Lots of these
set history=1000 " More history
set encoding=utf-8 " Use UTF-8 encoding
set mouse=a " Enable mouse mode
set splitbelow splitright " Split in more natural way
2021-07-23 16:08:03 +00:00