updated .vimrc

pull/16/head
Hari Sekhon 2 years ago
parent 3092b4d4f6
commit 5e3ab02ded

@ -352,6 +352,7 @@ nmap ;t :set list!<CR>
nmap ;q :q<CR> nmap ;q :q<CR>
nmap ;r :call WriteRun()<CR> nmap ;r :call WriteRun()<CR>
nmap ;R :call WriteRunDebug()<CR> nmap ;R :call WriteRunDebug()<CR>
"nmap ;R :!run.sh %:p<CR>
"nmap <silent> ;s :call ToggleSyntax()<CR> "nmap <silent> ;s :call ToggleSyntax()<CR>
nmap <silent> ;s :,!sqlcase.pl<CR> nmap <silent> ;s :,!sqlcase.pl<CR>
"nmap ;u :call HgGitU()<CR> "nmap ;u :call HgGitU()<CR>
@ -380,6 +381,7 @@ nmap ;v :source ~/.vimrc<CR>
nmap ;V :call WriteRunVerbose()<CR> nmap ;V :call WriteRunVerbose()<CR>
nmap ;w :w<CR> nmap ;w :w<CR>
"nmap ;x :x<CR> "nmap ;x :x<CR>
nmap ;z :call ToggleDebug()<CR>
nmap ;§ :call ToggleScrollLock()<CR> nmap ;§ :call ToggleScrollLock()<CR>
"noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_char,'\/')<CR>/<CR>:nohlsearch<CR> "noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_char,'\/')<CR>/<CR>:nohlsearch<CR>
@ -456,6 +458,16 @@ function! ToggleGutter()
"endif "endif
endfunction endfunction
function! ToggleDebug()
if $DEBUG
echo "DEBUG disabled"
let $DEBUG=""
else
echo "DEBUG enabled"
let $DEBUG=1
endif
endfunction
:command! Hr :normal a# <ESC>76a=<ESC>a #<ESC> :command! Hr :normal a# <ESC>76a=<ESC>a #<ESC>
":function Hr() ":function Hr()
":s/^/# ============================================================================ #/ ":s/^/# ============================================================================ #/

Loading…
Cancel
Save