From bb31dbfd4e788f0efcbb0e6ab8264a12116aa672 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 7 Mar 2020 23:40:57 +0100 Subject: xmonad brightness handling --- .vimrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 9d7059e..7a329af 100644 --- a/.vimrc +++ b/.vimrc @@ -106,26 +106,27 @@ nnoremap l :ls " file manipulation with leader nnoremap w :w nnoremap x :x - " open vimrc in split nnoremap rc :vsplit $MYVIMRC " source vimrc 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 +" grep +" nnoremap gw :silent grep -R .:copen +" nnoremap gW :silent execute "grep! -R " . shellescape(expand("")) . " .":copen +" nnoremap gn :cnext +" nnoremap gp :cprevious + + " remove trailing white space on save autocmd BufWritePre * %s/\s\+$//e - " initialise buf for fold toggle autocmd BufReadPre * :normal zMzi - " real tab in c file for school projects autocmd Filetype c setlocal noexpandtab -- cgit