nvim: init.vim: Miscellaneous improvements
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
adb1e875f2
commit
7db7083a37
1 changed files with 19 additions and 1 deletions
|
@ -138,6 +138,14 @@ set wildmenu
|
|||
set wildmode=list:longest,full
|
||||
set wildoptions=pum
|
||||
set pumblend=30
|
||||
set wildignore+=.hg,.git,.svn " Version control
|
||||
set wildignore+=*.aux,*.out,*.toc " LaTeX intermediate files
|
||||
set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg " binary images
|
||||
set wildignore+=*.o " compiled object files
|
||||
set wildignore+=*.sw? " Vim swap files
|
||||
set wildignore+=*.luac " Lua byte code
|
||||
set wildignore+=*.pyc " Python byte code
|
||||
set wildignore+=*.orig " Merge resolution files
|
||||
|
||||
if !&scrolloff
|
||||
set scrolloff=3 " Show next 3 lines while scrolling.
|
||||
|
@ -431,10 +439,20 @@ autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2
|
|||
autocmd BufRead,BufNewFile */gstreamer-*/*.[ch] set et sw=2
|
||||
autocmd BufRead,BufNewFile */pulseaudio/*.[ch] set et sw=4 tw=128
|
||||
" Configure expanding of tabs for various file types
|
||||
au BufRead,BufNewFile *.py set expandtab
|
||||
au BufRead,BufNewFile *.c set noexpandtab
|
||||
au BufRead,BufNewFile *.h set noexpandtab
|
||||
au BufRead,BufNewFile Makefile* set noexpandtab
|
||||
au BufNewFile,BufRead *.vim setlocal noet ts=4 sw=4 sts=4
|
||||
au BufNewFile,BufRead *.txt setlocal noet ts=4 sw=4
|
||||
" Lua settings
|
||||
autocmd BufNewFile,BufRead *.lua setlocal noet ts=4 sw=4 sts=4
|
||||
" Python indent
|
||||
autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab
|
||||
" Shell/config/systemd settings
|
||||
autocmd FileType fstab,systemd set noexpandtab
|
||||
autocmd FileType gitconfig,sh,toml set noexpandtab
|
||||
" Spell check for git commits
|
||||
autocmd FileType gitcommit setlocal spell spelllang=en_uk
|
||||
" Spell Checking
|
||||
autocmd BufRead,BufNewFile *.md,*.txt setlocal spell spelllang=en_uk
|
||||
" Automatically resize the window
|
||||
|
|
Loading…
Reference in a new issue