[vim] various additions
- more keymaps
- don't autocomment on `o`
- restore `ignorecase`
diff --git a/.vimrc b/.vimrc
index d4e67a11..bc421366 100644
--- a/.vimrc
+++ b/.vimrc
@@ -12,11 +12,17 @@ noremap <right> <nop>
nnoremap ' `
nnoremap ` '
" nnoremap Y y$
+nnoremap H ^
+nnoremap L $
+nnoremap Q @@
nnoremap <leader>/ :nohlsearch<cr>
" don't unindent lines starting with #
inoremap # X#
+nnoremap \\ :write<cr>
+inoremap \\ <esc>:write<cr>
+
" rerun the last command
nnoremap !! :!!<cr>
inoremap !! <esc>:!!<cr>
@@ -115,6 +121,10 @@ augroup netrw_buf_hidden_fix
\| endif
augroup end
+augroup AutoComment
+ autocmd FileType * setlocal formatoptions-=o
+augroup END
+
" }}}
" GUI {{{
@@ -151,6 +161,7 @@ set undofile
set gdefault
set hlsearch
+set ignorecase
set smartcase
" }}}