Vim bindings
This commit is contained in:
parent
5d0645f25b
commit
2a8a61325e
1 changed files with 32 additions and 12 deletions
|
@ -26,19 +26,28 @@ set scrolloff=3
|
|||
set sidescrolloff=5
|
||||
"" Enable autoread if file changes
|
||||
set autoread
|
||||
"" Map Leader to spacebar
|
||||
let mapleader=" "
|
||||
" Buffers
|
||||
"" Hide Buffers
|
||||
set hidden
|
||||
nnoremap <Tab> :bnext<CR>
|
||||
nnoremap <S-Tab> :bprev<CR>
|
||||
nnoremap <Esc><Esc> :bd<CR>
|
||||
" Statusline
|
||||
"" Statusline
|
||||
set laststatus=0
|
||||
|
||||
"---"
|
||||
" - Mappings -
|
||||
"" Map Leader to spacebar
|
||||
let mapleader=" "
|
||||
"" Shortcut to save
|
||||
nnoremap <Leader>w :w<CR>
|
||||
"" Moving current lines up/down
|
||||
nnoremap <Leader>k :<c-u>execute 'move -1-'. v:count1<cr>
|
||||
nnoremap <Leader>j :<c-u>execute 'move +'. v:count1<cr>
|
||||
"" Buffers Next/Previous
|
||||
nnoremap <Tab> :bnext<CR>
|
||||
nnoremap <S-Tab> :bprev<CR>
|
||||
"" Shortcut to close buffer
|
||||
nnoremap <Esc><Esc> :bd<CR>
|
||||
"" Shortcut to reopen closed buffer
|
||||
nmap <Leader><Leader> <c-^>
|
||||
|
||||
" Load Plugins
|
||||
" - Load Plugins -
|
||||
"" Begin vim-plug
|
||||
call plug#begin('~/.vim/plugged')
|
||||
"" Visual Plugins
|
||||
|
@ -60,7 +69,7 @@ Plug 'airblade/vim-gitgutter'
|
|||
"" Initialize plugin system
|
||||
call plug#end()
|
||||
|
||||
" Config Plugins
|
||||
" - Config Plugins -
|
||||
"" Colorscheme Dracula
|
||||
let g:dracula_colorterm = 0 " Set background as transparent
|
||||
colorscheme dracula
|
||||
|
@ -71,11 +80,11 @@ nnoremap <Leader>g :Ag
|
|||
nnoremap <Leader>c :Commits<cr>
|
||||
nnoremap <Leader>C :BCommits<cr>
|
||||
nnoremap <Leader>m :GFiles?<cr>
|
||||
" Buftablines
|
||||
"" Buftablines
|
||||
let g:buftabline_indicators=1
|
||||
highlight BufTabLineFill ctermfg=11
|
||||
highlight BufTabLineCurrent cterm=bold ctermfg=236 ctermbg=141 gui=bold guifg=#282A36 guibg=#BD93F9
|
||||
" vim-startify
|
||||
"" vim-startify
|
||||
let g:startify_custom_header = [
|
||||
\ ' Gaiety | 2019',
|
||||
\ ' ____ ____ __ ',
|
||||
|
@ -84,5 +93,16 @@ let g:startify_custom_header = [
|
|||
\ '/___/ .__/\_,_/\__/\__/ \____/\__/\__/\___/ .__/\_,_/___/',
|
||||
\ ' /_/ /_/ ',
|
||||
\ '',
|
||||
\ 'MAPPING ACTION',
|
||||
\ '----------------------------------------------------------',
|
||||
\ '<Space> Leader',
|
||||
\ '<Leader>w Save Buffer',
|
||||
\ '<Esc><Esc> Close Buffer',
|
||||
\ '<Leader><Leader> Open Previous Buffer',
|
||||
\ '<Tab> Next buffer',
|
||||
\ '<S-Tab> Previous buffer',
|
||||
\ '<Leader>k Move line up',
|
||||
\ '<Leader>j Move line down',
|
||||
\ '',
|
||||
\ ]
|
||||
let g:startify_change_to_dir = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue