aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 68108f1..02cad08 100644
--- a/.vimrc
+++ b/.vimrc
@@ -268,7 +268,9 @@ function! Settings_c()
setlocal tabstop=4
setlocal softtabstop=4
"mappings
+ "note: these mappings are in weird reverse order to avoid opening folds
nnoremap <buffer> -- O<Space>*/<Esc>hhi/*<Space>
+ inoremap {<CR> }<Esc>i{<CR><Esc>O
endfunction
function! Settings_coffee()