aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc34
1 files 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 <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
-" I hate escape more than anything else
+" Using jk and kj instead of Esc
inoremap jk <Esc>
inoremap kj <Esc>
-":help ftplugin
-"autocmd FileType md nmap <buffer> <F10> !./gen.sh <enter> " doesn't work...
-nnoremap <silent> <F10> :!./gen.sh <enter>
-
-" 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 <afile> > plain.html
-" autocmd BufWritePost *.md silent !markdown <afile> > <afile>:r.html
-
-" run on current filename
-" :autocmd BufWritePost * silent !run_tests.sh <afile>
-" list auto commands
-" :autocmd BufWritePost *
-" remove all current auto commands
-" :autocmd! BufWritePost *