From 2cf52e0d49e2206070ca0f41d555d8d11124f108 Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 26 Feb 2021 16:12:16 +0100 Subject: [PATCH] vim stuff --- .config/nvim/init.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 358512c..ce0617c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -21,10 +21,16 @@ set tabstop=4 set shiftwidth=4 +" yaml indentation +autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab + " Start NERDTree when Vim is started without file arguments. autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif +" Mouse support +set mouse=a + let g:airline#extensions#tabline#enabled = 1 let g:airline_powerline_fonts = 1 @@ -38,3 +44,6 @@ Plug 'vim-airline/vim-airline' call plug#end() nnoremap :NERDTreeToggle + +nnoremap :bnext +nnoremap :bprevious