From 4bf87913313c678ec1975f493146f74d02376851 Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 4 Mar 2021 16:51:33 +0100 Subject: Cleaned vimrc. --- .vimrc | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.vimrc b/.vimrc index d9a61c0..8e1e75a 100644 --- a/.vimrc +++ b/.vimrc @@ -1,18 +1,22 @@ set number syntax on set cindent + " Disable autocomment autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o -set mouse=a " Enable your mouse -" xsel needed? -set clipboard=unnamedplus " Copy paste between vim and everything else -set tabstop=2 " The width of a TAB is set to 4. +" Enable your mouse +set mouse=a + +" xsel needed for shared clipboard? +set clipboard=unnamedplus " Copy paste between vim and everything else + +set tabstop=2 " The width of a TAB is set to 2. " Still it is a \t. It is just that " Vim will interpret it to be having - " a width of 4. + " a width of 2. -set shiftwidth=2 " Indents will have a width of 4 +set shiftwidth=2 " Indents will have a width of 2 set softtabstop=2 " Sets the number of columns for a TAB @@ -28,23 +32,9 @@ nnoremap j nnoremap k nnoremap l -" I hate escape more than anything else +" Using jk and kj instead of Esc inoremap jk inoremap kj -":help ftplugin -"autocmd FileType md nmap !./gen.sh " doesn't work... -nnoremap :!./gen.sh - -" You can't stop me +" Saving changes even if not root (not sure if it works) cmap w!! w !sudo tee % - -" autocmd BufWritePost *.md silent !markdown > plain.html -" autocmd BufWritePost *.md silent !markdown > :r.html - -" run on current filename -" :autocmd BufWritePost * silent !run_tests.sh -" list auto commands -" :autocmd BufWritePost * -" remove all current auto commands -" :autocmd! BufWritePost * -- cgit v1.2.3