From f4309c69498ae23959de904d38d23f6f8d667c09 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 6 Mar 2020 23:12:40 +0100 Subject: Few more aliases, autocomplete filetype ignore --- .vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 6ff14c7..9d7059e 100644 --- a/.vimrc +++ b/.vimrc @@ -86,10 +86,9 @@ inoremap kj noremap Q " remove command line window keybinding noremap q: -" incsearch -map / (incsearch-forward) -map ? (incsearch-backward) -map g/ (incsearch-stay) +" search with very magic +nnoremap / /\v +nnoremap ? ?\v " move line up and down nnoremap _ ddkP nnoremap + ddp @@ -116,6 +115,12 @@ nnoremap src :source $MYVIMRC " file toggle nnoremap z zi +" create c function body from prototype +nnoremap gcf A{} + +" put semicolon at the end of line +nnoremap ; mqA;`q + " remove trailing white space on save autocmd BufWritePre * %s/\s\+$//e -- cgit