From 3ce48c4323f38d3b61a08e7e2add5543adabe5d7 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 7 Jan 2021 21:10:43 +0100 Subject: Added vim Goyo plugin, changed default browser to qutebrowser, Added keybinding to go to next/prev element of command completion in qutebrowser --- .pluggins.vim | 21 ++++++++++++--------- .vimrc | 2 +- .zshrc | 2 +- qutebrowser/config.py | 9 +++++++-- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.pluggins.vim b/.pluggins.vim index 6a58b7e..49c501d 100644 --- a/.pluggins.vim +++ b/.pluggins.vim @@ -3,16 +3,19 @@ """""""""""""""" call plug#begin() - Plug 'ctrlpvim/ctrlp.vim' " Ctrl-P similar to vsc - Plug 'tpope/vim-eunuch' " basic unix command in vim - Plug 'tomtom/tcomment_vim' " mininal commenter - Plug 'itchyny/lightline.vim' " minimal status bar - Plug 'HappyTramp/vim-syntax-extra' " syntax highlight of C operators - Plug 'romainl/vim-cool' " disable highlight after search - Plug 'tpope/vim-fugitive' " git wrapper - Plug 'junegunn/vim-easy-align' " align + Plug 'ctrlpvim/ctrlp.vim' " Ctrl-P similar to vsc + Plug 'tpope/vim-eunuch' " basic unix command in vim + Plug 'tomtom/tcomment_vim' " mininal commenter + Plug 'itchyny/lightline.vim' " minimal status bar + Plug 'HappyTramp/vim-syntax-extra' " syntax highlight of C operators + Plug 'romainl/vim-cool' " disable highlight after search + Plug 'tpope/vim-fugitive' " git wrapper + Plug 'junegunn/vim-easy-align' " align + Plug 'ludovicchabant/vim-gutentags' " generate tags in project root + Plug 'junegunn/goyo.vim' " generate tags in project root + " " Plug 'easymotion/vim-easymotion' " TODO very intresting - Plug 'ludovicchabant/vim-gutentags' " generate tags in project root + " markdown preview in browser " Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} diff --git a/.vimrc b/.vimrc index 75c00f2..7f59de6 100644 --- a/.vimrc +++ b/.vimrc @@ -166,7 +166,7 @@ nnoremap bl :ls " vimrc {{{ nnoremap rc :vsplit $DOTDIR/.vimrc -nnoremap src :source $MYVIMRC +nnoremap sc :source $MYVIMRC " }}} " c {{{ diff --git a/.zshrc b/.zshrc index 5ac0ce1..50e737f 100644 --- a/.zshrc +++ b/.zshrc @@ -85,7 +85,7 @@ export XDG_DATA_HOME="/home/charles/.data/" export EDITOR="vim" export TERM="st-256color" export MAIL='me@cacharle.xyz' -export BROWSER='chromium' +export BROWSER='qutebrowser' export BROWSERCLI='w3m' # ignore filetypes in autocomplete diff --git a/qutebrowser/config.py b/qutebrowser/config.py index ce83c37..6ab0895 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -30,7 +30,7 @@ c.fonts.hints = 'bold 11pt default_family' c.hints.chars = 'asdfghjkl;' -c.statusbar.show = 'in-mode' +# c.statusbar.show = 'in-mode' c.editor.command = [ '/usr/local/bin/st', '-e', @@ -39,8 +39,13 @@ c.editor.command = [ c.messages.timeout = 4000 -config.bind('v', 'hint links spawn /usr/bin/mpv {hint-url}') +config.bind(';v', 'hint links spawn /usr/bin/mpv {hint-url} ;;' + 'message-info "opening in video player"') +config.bind('', 'completion-item-focus next', 'command') +config.bind('', 'completion-item-focus prev', 'command') + +# c.content.proxy = 'socks://localhost:9050/' # base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova -- cgit