Dotfiles_Generator/templates/nvim/init.vim

63 lines
1.4 KiB
VimL

colorscheme ron
set nocompatible
set mouse=a
syntax enable
filetype plugin on
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Recursive file search with `:find`
set path+=**
" Tab completion on file searches
set wildmenu
" Show commands I run
set showcmd
" (nvim) Yank/paste uses clipboard
set clipboard=unnamedplus
" Set linenumbers
set number
" Cursorline (highlights of current line)
hi CursorLine cterm=NONE ctermbg=0
set cursorline
" Search settings
set ignorecase " Ignore case
set smartcase " Unless I specify a capital
" command! MakeTags !ctags -R .
" Write as sudo *using custom script due to https://github.com/neovim/neovim/issues/1716*
" Update this as soon as tty support is built in
command! W w !~/bin/rofisudo tee %
" FILE BROWSING:
let g:netrw_banner=0 " Disable annoying banner
let g:netrw_browse_split=4 " Open in prior window
let g:netrw_altv=1 " Open splits to the right
let g:netrw_liststyle=3 " Tree view
" Statusline things
set laststatus=2
set statusline=
set statusline+=%#PmenuSel#
set statusline+=\ %f
set statusline+=%=
set statusline+=\ %y
set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
set statusline+=\[%{&fileformat}\]
set statusline+=\ %p%%
set statusline+=\ %l:%c
set statusline+=\