From: Daniel Carl Date: Sat, 29 Dec 2012 15:00:20 +0000 (+0100) Subject: Added all suggested keybindings to th default configuration. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=438b0285812c262febde5955f081371dbe60bee3;p=vimb.git Added all suggested keybindings to th default configuration. Doing it in this way allow to use the browser with full keyboard support without creating a configuration for before enjoying the great browser experience. --- diff --git a/doc/config b/doc/config deleted file mode 100644 index 3a9e587..0000000 --- a/doc/config +++ /dev/null @@ -1,36 +0,0 @@ -# default config -nmap gf=source -nmap =input -nmap o=inputopen -nmap t=inputtabopen -nmap O=inputopencurrent -nmap T=inputtabopencurrent -nmap d=quit -nmap =back -nmap =forward -nmap r=reload -nmap R=reload! -nmap =stop -nmap =pagedown -nmap =pageup -nmap =halfpagedown -nmap =halfpageup -nmap gg=jumptop -nmap G=jumpbottom -nmap 0=jumpleft -nmap $=jumpright -nmap h=scrollleft -nmap l=scrollright -nmap k=scrollup -nmap j=scrolldown -nmap f=hint-link -nmap F=hint-link-new -nmap ;o=hint-input-open -nmap ;t=hint-input-tabopen -nmap ;y=hint-yank -nmap y=yank-uri -nmap Y=yank-selection -cmap =complete -cmap =complete-back -hmap =hint-focus-next -hmap =hint-focus-prev diff --git a/src/config.h b/src/config.h index e8e1d02..75e493b 100644 --- a/src/config.h +++ b/src/config.h @@ -32,10 +32,41 @@ const struct { char* command; } default_config[] = { + {"nmap gf=source"}, + {"nmap =input"}, {"nmap o=inputopen"}, + {"nmap t=inputtabopen"}, {"nmap O=inputopencurrent"}, - {"nmap :=input"}, + {"nmap T=inputtabopencurrent"}, {"nmap d=quit"}, + {"nmap =back"}, + {"nmap =forward"}, + {"nmap r=reload"}, + {"nmap R=reload!"}, + {"nmap =stop"}, + {"nmap =pagedown"}, + {"nmap =pageup"}, + {"nmap =halfpagedown"}, + {"nmap =halfpageup"}, + {"nmap gg=jumptop"}, + {"nmap G=jumpbottom"}, + {"nmap 0=jumpleft"}, + {"nmap $=jumpright"}, + {"nmap h=scrollleft"}, + {"nmap l=scrollright"}, + {"nmap k=scrollup"}, + {"nmap j=scrolldown"}, + {"nmap f=hint-link"}, + {"nmap F=hint-link-new"}, + {"nmap ;o=hint-input-open"}, + {"nmap ;t=hint-input-tabopen"}, + {"nmap ;y=hint-yank"}, + {"nmap y=yank-uri"}, + {"nmap Y=yank-selection"}, + {"cmap =complete"}, + {"cmap =complete-back"}, + {"hmap =hint-focus-next"}, + {"hmap =hint-focus-prev"}, {NULL} };