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 --- emacs.el | 4 ++-- vimrc | 16 ++++++---------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/emacs.el b/emacs.el index 7ad08c0..0c719d5 100755 --- a/emacs.el +++ b/emacs.el @@ -115,10 +115,10 @@ (add-to-list 'auto-mode-alist '("\\.twig\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.django\\'" . web-mode)) -(setq web-mode-enable-auto-pairing t) -(setq web-mode-enable-auto-closing t) (setq web-mode-enable-current-element-highlight t) (setq web-mode-enable-current-column-highlight t) +;; (setq web-mode-enable-auto-pairing t) +;; (setq web-mode-enable-auto-closing t) ;; RSS Feeds (setq elfeed-search-filter "@48-months-ago") 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