diff --git a/.bashrc.d/neovim.sh b/.bashrc.d/neovim.sh index b7aa004..2a31073 100644 --- a/.bashrc.d/neovim.sh +++ b/.bashrc.d/neovim.sh @@ -4,3 +4,4 @@ if command -v nvim >/dev/null 2>&1 then alias vim="nvim" fi + diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..41038ce --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,28 @@ +call plug#begin() +" Display if updates for plugins are available +Plug 'semanser/vim-outdated-plugins' +" Show trailing whitespaces (this could also easaly be achieved by settings +Plug 'ntpeters/vim-better-whitespace' +call plug#end() + +" Add a set of commands that will make the 80th column of a document visible +highlight ColorColumn ctermbg=244 guibg=lightgrey +command Col let &colorcolumn=join(range(81,999),",") +command NoCol set colorcolumn= +Col + +" Disable line wrapping and use some Unicode characters to signify overflow +" instead. This might obviously cause problems. Also make tabs and +" non-breaking spaces visible. Tab visibility may be toggled using ShowTabs +" and HideTabs. +set nowrap +set list +command ShowTabs let &l:listchars = 'tab:╾─,extends:┃,precedes:┃,nbsp:␣' +command HideTabs let &l:listchars = 'tab: ,extends:┃,precedes:┃,nbsp:␣' +ShowTabs +set sidescroll=1 +set sidescrolloff=8 + +" Classic +set number +