64 lines
2.8 KiB
VimL
64 lines
2.8 KiB
VimL
" Katt's (n)VimRC UwU
|
|
"" http://vimdoc.sourceforge.net/htmldoc/options.html
|
|
"" Lua snippets can be embedded with 'lua << [trim] foobar', and 'foobar'. See 'lua-heredoc'.
|
|
|
|
"" If compatible, set to nocp. Better than setting it permanently due to
|
|
"" certain vim utilities not liking :set nocp. Does nothing in nVim.
|
|
if &compatible
|
|
set nocompatible
|
|
endif
|
|
|
|
if has('nvim')
|
|
"" Load mini.deps and plugins
|
|
lua << trim
|
|
require('minideps-init')
|
|
.
|
|
endif
|
|
|
|
"" Disable providers not used (from :che)
|
|
let g:loaded_ruby_provider = 0
|
|
let g:loaded_perl_provider = 0
|
|
""let g:loaded_python3_provider = 0
|
|
let g:loaded_node_provider = 0
|
|
|
|
"" Clipboard provider
|
|
set clipboard+=unnamedplus "" Clipboard shared with the system one.
|
|
|
|
"" Persistent undo, localized ENTIERLY within the Vim directory.
|
|
set undofile
|
|
set undodir=~/.config/nvim/undo
|
|
|
|
"" User-settings
|
|
set termguicolors "" Enables full color support explicitly
|
|
set colorcolumn=80 "" Column line at 80 chars
|
|
set number "" Show line-numbers
|
|
set bs=2 "" Modern backspace behaviour, same as "indent,eol,start"
|
|
set virtualedit=onemore "" Enable free-range cursor
|
|
set undolevels=10666 "" Number of undo levels
|
|
set mouse=a "" Enables mouse support for all levels. Odd behavour with ConEmu?
|
|
set ruler "" Show row and column ruler information
|
|
set showmatch "" Highlight matching brace
|
|
set nowrap "" Do not wrap lines
|
|
""set showbreak=+++ "" Wrap-broken line prefix
|
|
""set textwidth=80 "" Line wrap (number of cols)
|
|
set visualbell "" Use visual bell (no beeping)
|
|
set hlsearch "" Highlight all search results
|
|
set smartcase "" Enable smart-case search (ignore case unless uppercase used)
|
|
set ignorecase "" Always case-insensitive
|
|
set incsearch "" Searches for strings incrementally
|
|
set autoindent "" Auto-indent new lines
|
|
set cindent "" Use 'C' style program indenting
|
|
set shiftwidth=4 "" Number of auto-indent spaces
|
|
set smartindent "" Enable smart-indent
|
|
set smarttab "" Enable smart-tabs
|
|
set softtabstop=3 "" Number of spaces per Tab
|
|
set hidden "" Change between buffers without having to save.
|
|
set whichwrap+=<,> "" Cursor wraps at BOL/EOL. Removed h,l because not recommended?
|
|
set showtabline=2 "" Always show tabline (default showing only if two tabs open
|
|
set title "" Enables window title reflecting filepath.
|
|
set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%) "" Sets the titlestring. See 'statusline' for options.
|
|
|
|
"" Keybinds
|
|
|
|
nmap <esc><esc> :noh<return> "" Double-tap escape to stop search highlight (instead of permanently setting it off)
|