]> git.rmz.io Git - dotfiles.git/blobdiff - vimrc
replace volume progressbar with text widget
[dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 9a611f15d60b9c144ccf7675ccf9dc4c7a41d804..baf2aed0eb3799cfcb9d605f203938187b05a6c5 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -142,6 +142,8 @@ set shiftwidth=4
 set expandtab
 
 set showbreak=▒▒
+" show these chars for tabs and trailing spaces
+set list listchars=tab:»·,trail:·
 
 set pastetoggle=<F11>
 " split right when using :vsp
@@ -153,6 +155,17 @@ imap ii <Esc>
 " Press `` to toggle insert and replace mode (no <Insert> key on Mac keyboard)
 imap `` <Insert> 
 
+" fold between {{{ }}}
+set foldmethod=marker
+set foldlevelstart=99
+" space will toggle current fold in normal mode, if not in a fold, normal
+" behaviour
+nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
+vnoremap <Space> zf
+" save and restore folds
+autocmd BufWinLeave *.* mkview
+autocmd BufWinEnter *.* silent loadview
+
 " Jump to the next or previous line that has the same level or a lower
 " level of indentation than the current line.
 "