[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 ` ' nnoremap ` '
" nnoremap Y y$ " nnoremap Y y$
nnoremap H ^
nnoremap L $
nnoremap Q @@
nnoremap <leader>/ :nohlsearch<cr> nnoremap <leader>/ :nohlsearch<cr>
" don't unindent lines starting with # " don't unindent lines starting with #
inoremap # X# inoremap # X#
nnoremap \\ :write<cr>
inoremap \\ <esc>:write<cr>
" rerun the last command " rerun the last command
nnoremap !! :!!<cr> nnoremap !! :!!<cr>
inoremap !! <esc>:!!<cr> inoremap !! <esc>:!!<cr>
@ -115,6 +121,10 @@ augroup netrw_buf_hidden_fix
\| endif \| endif
augroup end augroup end
augroup AutoComment
autocmd FileType * setlocal formatoptions-=o
augroup END
" }}} " }}}
" GUI {{{ " GUI {{{
@ -151,6 +161,7 @@ set undofile
set gdefault set gdefault
set hlsearch set hlsearch
set ignorecase
set smartcase set smartcase
" }}} " }}}

Loading…
Cancel
Save