Skip to content

Commit

Permalink
Added bufftabline, startify
Browse files Browse the repository at this point in the history
  • Loading branch information
akash0x53 committed Jun 27, 2020
1 parent 2d21ffd commit 8d5cf86
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ function ToggleLineNumber()
execute "set relativenumber!"
endfunction

function OpenFZF()
if argc() == 0
exe 'FZF'
endif
endfunction
"---------- Basic ----------
set nocompatible
set noswapfile "disable ugly .swp files
Expand Down Expand Up @@ -75,6 +70,8 @@ Plug 'junegunn/fzf.vim'
Plug 'itchyny/lightline.vim'
Plug 'sheerun/vim-wombat-scheme'
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-startify'
Plug 'ap/vim-buftabline'
call plug#end()

"---------- Appearance ----------
Expand Down Expand Up @@ -127,13 +124,16 @@ noremap <leader><space> :nohl<CR>
nnoremap <leader>gb :Git blame<CR>
nnoremap <leader>gd :Git diff %<CR>
nnoremap <leader>gc :Git commit %<CR>
nnoremap <leader>b :Buffers<CR>
map <C-J> :bnext<CR>
map <silent><F3> :call ToggleLineNumber()<CR>
execute "noremap <silent><leader>t :botright terminal ++close ++rows=10 bash --rcfile ".s:bashrc."<CR>"
execute "noremap <silent><leader>p :botright terminal ++close ++rows=10 ".s:python."<CR>"

map <C-n> :NERDTreeToggle<CR>
map <C-p> :FZF<CR>
map :vcopy :0r ~/.vim/vcopy.txt
command! -nargs=1 Config :call OpenConfigFile(<f-args>)
Expand All @@ -145,7 +145,6 @@ if executable('ag')
let $FZF_DEFAULT_COMMAND='ag --literal --files-with-matches --nocolor -g ""'
let $FZF_DEFAULT_OPTS="--height 100% --layout=reverse --border --info=inline"
endif
autocmd VimEnter * call OpenFZF()

"----------- On Startup -----------
"autocmd StdinReadPre * let s:std_in=1
Expand Down Expand Up @@ -276,3 +275,10 @@ nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR>
" Resume latest coc list.
nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR>

"---------- Startify -------------
let g:startify_lists = [
\ { 'header': [' Sessions'], 'type': 'sessions' },
\ { 'header': [' MRU '. getcwd()], 'type': 'dir' },
\ { 'header': [' MRU'], 'type': 'files' },
\ ]

0 comments on commit 8d5cf86

Please sign in to comment.