From d7bef799c6b8a87154d00e1149ce9552e778f1b0 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 16 Dec 2023 23:00:00 +0100 Subject: Updated vim and emacs rc files --- vimrc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index b8af15e..11bbf82 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,7 @@ -set nocompatible +" https://vimhelp.org/options.txt.html " General sane defaults. +set nocompatible syntax enable colorscheme sorbet nnoremap q: @@ -15,14 +16,15 @@ set noswapfile set autoread set wildmenu set autoindent -set noesckeys set encoding=utf8 set backspace=2 set scrolloff=4 set spelllang=en_us -nnoremap :silent :bp -nnoremap :silent :bn +# Buffer navigation remaps. +nnoremap :bnext +nnoremap :bprevious +nnoremap :buffers " Commenting blocks of code. augroup commenting_blocks_of_code @@ -41,12 +43,6 @@ filetype plugin indent on autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2 -" Status Line enhancements. -" set laststatus=2 -" set statusline=%f%m%=%y\ %{strlen(&fenc)?&fenc:'none'}\ %l:%c\ %L\ %P -" hi StatusLine cterm=NONE ctermbg=black ctermfg=brown -" hi StatusLineNC cterm=NONE ctermbg=black ctermfg=darkgray - " Throwaway config. au BufReadPost *.twig set syntax=html -- cgit v1.2.3