From 66c963bb41213bc09dac88b201ba67ba4d0835ad Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 28 Mar 2020 22:25:24 +0100 Subject: Added vim pluggin: quick-scope --- .pluggins.vim | 1 + .vimrc | 22 +++++++++++++++------- xmonad.hs | 6 ++++-- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.pluggins.vim b/.pluggins.vim index c3951a5..2312e9a 100644 --- a/.pluggins.vim +++ b/.pluggins.vim @@ -5,6 +5,7 @@ call plug#begin() Plug 'tpope/vim-eunuch' " basic unix command in vim Plug 'tomtom/tcomment_vim' " mininal commenter Plug 'itchyny/lightline.vim' " minimal status bar + Plug 'unblevable/quick-scope' " highlight first char to jump to word " bloat?? Plug 'romainl/vim-cool' " disable highlight after search diff --git a/.vimrc b/.vimrc index cc4fdad..684528c 100644 --- a/.vimrc +++ b/.vimrc @@ -66,13 +66,6 @@ set noshowmode " dont show current mode (i.e --INSERT--) set foldmethod=indent " create fold based on the text indent " }}} -" ctrlp pluggin {{{ -" directory to ignore when searching in file tree -set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/* -" ctrlp ignore all stuff in the .gitignore -let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] -" }}} - """"""""""""""" " colorscheme " """"""""""""""" @@ -172,3 +165,18 @@ autocmd Filetype c setlocal noexpandtab " vim fold method to marker autocmd Filetype vim setlocal foldmethod=marker " }}} + +"""""""""""" +" pluggins " +"""""""""""" + +" ctrlp {{{ +" directory to ignore when searching in file tree +set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/* +" ctrlp ignore all stuff in the .gitignore +let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] +" }}} + +" quick-scope {{{ +let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] +" }}} diff --git a/xmonad.hs b/xmonad.hs index 99a35e8..90c536e 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -21,8 +21,10 @@ main = do , startupHook = myStartupHook } `additionalKeysP` myKeys -myLayouts = tiled ||| Mirror tiled ||| noBorders Full - where tiled = Tall 1 (3 / 100) (3 / 5) +myLayouts = tiledBigMaster ||| Mirror tiledEven ||| noBorders Full + where tiledBigMaster = Tall 1 (3 / 100) (3 / 5) + tiledEven = Tall 1 (3 / 100) (1 / 2) + myStartupHook = do spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- cgit