diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-18 18:29:32 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-18 18:29:32 +0200 |
commit | e9e3805205027c5c95f5a5763e5c01c32e08efe6 (patch) | |
tree | 6e4462992e4ab3a4cc8a60e82c3b2f85a70aa8aa /.vimrc | |
parent | 70c5c7eeda1de97e3a31ac9b02e232741657403e (diff) |
Some vim+nvim config cleanup + simple vim statusbar
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 33 |
1 files changed, 17 insertions, 16 deletions
@@ -6,18 +6,9 @@ call plug#begin('~/.vim/plugged') Plug 'mhinz/vim-startify' call plug#end() -if has('filetype') - filetype indent plugin on -endif - -if has('syntax') - syntax on -endif - -if has('mouse') - set mouse=a -endif - +filetype indent plugin on +syntax enable +set mouse=a set nocompatible set hidden set wildmenu @@ -31,12 +22,9 @@ set smartcase set backspace=indent,eol,start set autoindent set ruler -set laststatus=0 set confirm set visualbell -set cmdheight=2 -set number -set relativenumber +set number relativenumber set notimeout ttimeout ttimeoutlen=200 set pastetoggle=<F11> set shiftwidth=4 @@ -46,6 +34,19 @@ set noswapfile set nowrap set background=dark +set laststatus=2 +set statusline= +set statusline+=%#Directory# +set statusline=\ %f\ +set statusline+=%#LineNr# +set statusline+=%= +set statusline+=%#Normal# +set statusline+=\ Lines: +set statusline+=%L\ +set statusline+=\ %p%%\ +set statusline+=%#Constant# +set statusline+=%y + map Y y$ nnoremap <C-L> :nohl<CR><C-L> nnoremap n nzzzv |