From 77be9de6b82ee30fe1a6a3724952dac13a63a495 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 8 Aug 2020 05:44:54 +0200 Subject: Added scripts, vim fugitive/markdown-preview --- .vimrc | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index b867ed2..ac764ef 100644 --- a/.vimrc +++ b/.vimrc @@ -29,6 +29,7 @@ set wrapmargin=0 " disable auto line wrapping set encoding=utf-8 " utf-8 encoding set formatoptions-=t " do not auto break line > 89 character filetype plugin indent on " allow to add specific rules for certain type of file +set mouse=a " mouse scrolling (heretic) " }}} " browse list with tab {{{ @@ -93,8 +94,18 @@ colorscheme solarized " }}} " lightline {{{ let g:lightline = {} -let g:lightline.colorscheme = 'solarized' " lightline theme to solarized +" let g:lightline.colorscheme = 'solarized' " lightline theme to solarized " let g:lightline.colorscheme = 'jellybeans' " lightline theme to onedark +let g:lightline = { + \ 'colorscheme': 'solarized', + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'gitbranch': 'FugitiveHead' + \ }, + \ } " }}} """""""""""" @@ -143,10 +154,10 @@ nnoremap c, ct, " }}} " buffer navigation {{{ -nnoremap n :bn -nnoremap p :bp +nnoremap bn :bn +nnoremap bp :bp nnoremap :b# -nnoremap l :ls +nnoremap bl :ls " }}} " vimrc {{{ @@ -192,9 +203,9 @@ command! -nargs=1 PutCoplienForm call PutCoplienFormFunc("") " }}} " quickfix window toggle {{{ -nnoremap qt :call QuickfixToggle() -nnoremap qn :cnext -nnoremap qp :cprevious +nnoremap t :call QuickfixToggle() +nnoremap n :cnext +nnoremap p :cprevious let g:quickfix_is_open = 0 if !exists('*QuickfixToggle') function QuickfixToggle() -- cgit