diff options
author | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
commit | 6e528248414e330c9e25e81596ab47b8b8a5b701 (patch) | |
tree | e1aa41a7f3198eeac187e6177ec7d4a33db229d3 /vim | |
download | scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip |
first commitmaster
Diffstat (limited to '')
-rwxr-xr-x | vim/install.sh | 41 | ||||
-rwxr-xr-x | vimium-options.json | 42 |
2 files changed, 83 insertions, 0 deletions
diff --git a/vim/install.sh b/vim/install.sh new file mode 100755 index 0000000..5114105 --- /dev/null +++ b/vim/install.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env sh + +VIM_VERSION=8.2.2536 + +sudo apt remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common +sudo rm -rf /usr/local/share/vim /usr/bin/vim +sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev + +mkdir -p ~/vimsrc && \ + cd ~/vimsrc && \ + wget https://github.com/vim/vim/archive/v"$VIM_VERSION".tar.gz && \ + tar -xvf v"$VIM_VERSION".tar.gz -C ~/vimsrc + +cd vim-"$VIM_VERSION" && ./configure \ + --with-features=huge \ + --enable-multibyte \ + --enable-perlinterp=yes \ + --enable-rubyinterp=yes \ + --with-ruby-command=/usr/bin/ruby \ + --enable-luainterp=yes \ + --with-luajit \ + --enable-python3interp=yes \ + --with-python3-config-dir=/usr/lib/python3.8/config-3.8m-x86_64-linux-gnu \ + --with-python3-command=python3 \ + --enable-cscope \ + --enable-gui=auto \ + --with-features=huge \ + --with-x \ + --enable-fontset \ + --enable-largefile \ + --disable-netbeans \ + --prefix=/usr/local \ + --enable-terminal \ + --with-compiledby="farzadsadeghi <thabogre@gmail.com>" \ + --enable-fail-if-missing +# --enable-pythoninterp=yes \ +# --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \ + +make -j4 && sudo make install +# run :helptags path-to-where-the-docs-are +sudo vim -c "helptags $VIMRUNRIME" diff --git a/vimium-options.json b/vimium-options.json new file mode 100755 index 0000000..193a6e6 --- /dev/null +++ b/vimium-options.json @@ -0,0 +1,42 @@ +{ + "settingsVersion": "1.66", + "exclusionRules": [ + { + "pattern": "https?://mail.google.com/*", + "passKeys": "" + }, + { + "pattern": "https?://localhost:9000/*", + "passKeys": "" + }, + { + "pattern": "https?://localhost:9000/*", + "passKeys": "" + }, + { + "pattern": "https?://fscdn.r2games.com/*", + "passKeys": "" + }, + { + "pattern": "https?://fscdn.r2games.com/*", + "passKeys": "" + } + ], + "filterLinkHints": false, + "waitForEnterForFilteredHints": true, + "hideHud": false, + "keyMappings": "# Insert your preferred key mappings here.\nmap <C-f> scrollFullPageDown\nmap <C-b> scrollFullPageUp", + "linkHintCharacters": "sadfjklewcmpgh", + "linkHintNumbers": "0123456789", + "newTabUrl": "about:newtab", + "nextPatterns": "next,more,newer,>,›,→,»,≫,>>", + "previousPatterns": "prev,previous,back,older,<,‹,←,«,≪,<<", + "regexFindMode": false, + "ignoreKeyboardLayout": false, + "scrollStepSize": 60, + "smoothScroll": true, + "grabBackFocus": false, + "searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\n# g: https://www.google.com/search?q=%s Google\n# l: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\n# y: https://www.youtube.com/results?search_query=%s Youtube\n# gm: https://www.google.com/maps?q=%s Google maps\n# b: https://www.bing.com/search?q=%s Bing\n# d: https://duckduckgo.com/?q=%s DuckDuckGo\n# az: https://www.amazon.com/s/?field-keywords=%s Amazon\n# qw: https://www.qwant.com/?q=%s Qwant", + "searchUrl": "https://duckduckgo.com/?q=", + "userDefinedLinkHintCss": "/*\nDracula theme for Vimium\nby Trollwut (trollwut@trollwut.org). This code is in the public domain.\nTo use:\n 1. Copy the code.\n 2. Go to the Vimium options.\n 3. Click Show Advanced Options.\n 4. Under Advanced Options, scroll down to CSS for link hints.\n 5. Paste the code in the text field.\n 6. Click Save Changes.\n 7. Go to the website of your choice (or, if you have it open already, reload it) and check out the results.\n*/\n\n/* Link hint boxes */\ndiv > .vimiumHintMarker {\n background: #282a36;\n font-size: 12px;\n border: 0.25em solid #ffb86c;\n border-radius: 0.34em;\n box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);\n}\n\n/* Link hint text */\ndiv > .vimiumHintMarker span {\n color: #f8f8f2;\n font-size: inherit;\n text-shadow: none;\n}\n\n/* Link hint matching characters */\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #6272a4;\n}\n\n/* HUD (\"heads-up display\") bar */\ndiv.vimiumHUD {\n background: #282a36;\n border: 1px solid #6272a4;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background: #282a36;\n}\n\ndiv.vimiumHUD .hud-find {\n background: #282a36;\n border: none;\n color: #f8f8f2;\n}\n\ndiv.vimiumHUD span#hud-find-input{\n color: #f8f8f2; /* 'Foreground' color */\n}\n\ndiv.vimiumHUD span#hud-match-count {\n color: #6272a4; /* 'Comment' color */\n}\n\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #6272a4; /* 'Comment' color */\n}\n\n#vomnibar{\n background-color: #44475A;\n}\n\n#vomnibar input {\n color: #f8f8f2;\n font: -moz-window;\n /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/\n font-size: 20px;\n height: 34px;\n margin-bottom: 0;\n padding: 4px;\n background-color: #282a36;\n border-radius: 3px;\n border: 1px solid #6272a4;\n box-shadow: #bd93f9 0px 0px 1px;\n width: 100%;\n outline: none;\n box-sizing: border-box;\n}\n\n#vomnibar .vomnibarSearchArea {\n display: block;\n padding: 10px;\n background-color: #6272a4;\n border-radius: 4px 4px 0 0;\n border-bottom: 0px solid #bd93f9;\n}\n\n#vomnibar ul {\n background-color: #44475a;\n border-radius: 0 0 4px 4px;\n list-style: none;\n padding-top: 0;\n padding-bottom: 0;\n margin-block-start: 2px;\n margin-block-end: 0px;\n}\n\n#vomnibar li {\n border-bottom: 1px solid #6272a4;\n line-height: 1.1em;\n padding: 7px 10px;\n font-size: 16px;\n color: #f8f8f2;\n position: relative;\n display: list-item;\n margin: auto;\n}\n\n#vomnibar li .vomnibarBottomHalf {\n font-size: 15px;\n margin-top: 3px;\n padding: 2px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #bd93f9;\n margin-right: 4px;\n}\n#vomnibar li .vomnibarRelevancy {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n background-color: #282a36;\n color: #f8f8f2;\n font-family: monospace;\n width: 100px;\n overflow: hidden;\n}\n\n#vomnibar li .vomnibarUrl {\n white-space: nowrap;\n color: #50fa7b;\n}\n\n#vomnibar li .vomnibarMatch {\n font-weight: bold;\n color: #ffb86c;\n}\n\n#vomnibar li em, #vomnibar li .vomnibarTitle {\n color: #f8f8f2;\n margin-left: 4px;\n font-weight: normal;\n}\n#vomnibar li em { font-style: italic; }\n#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {\n color: #ffb86c;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #6272a4;\n font-weight: normal;\n}\n\n#vomnibarInput::selection {\n background-color: #8be9fd;\n}" +}
\ No newline at end of file |