[vim] various additions

- more keymaps
- don't autocomment on `o`
- restore `ignorecase`
pull/28/head
Alpha Chen 6 years ago
parent 7c2dfbaa51
commit 345b9ee94e

@ -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
" }}}

Loading…
Cancel
Save