mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 06:11:40 +01:00
vim: change shortcuts to edit configs in vsplit
This commit is contained in:
parent
8214de3d65
commit
ce72565b91
|
@ -7,12 +7,12 @@ nmap <leader>w :w!<CR>
|
|||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
" nmap <leader>W :w!<CR>
|
||||
|
||||
"Reload vimrc on config change
|
||||
map <leader>e :e! ~/.vimrc<CR>
|
||||
map <leader>ef :e! $DOTFILES/vim/functions.vim<CR>
|
||||
map <leader>ec :e! $DOTFILES/vim/plugins_config.vim<CR>
|
||||
map <leader>es :e! $DOTFILES/vim/shortcuts.vim<CR>
|
||||
map <leader>ep :e! $DOTFILES/vim/plugs.vim<CR>
|
||||
" config editing
|
||||
map <leader>e :vsplit ~/.vimrc<CR>
|
||||
map <leader>ef :vsplit $DOTFILES/vim/functions.vim<CR>
|
||||
map <leader>ec :vsplit $DOTFILES/vim/plugins_config.vim<CR>
|
||||
map <leader>es :vsplit $DOTFILES/vim/shortcuts.vim<CR>
|
||||
map <leader>ep :vsplit $DOTFILES/vim/plugs.vim<CR>
|
||||
|
||||
" Quickly open a markdown buffer for scribble
|
||||
map <leader>x :e ~/buffer.md<CR>
|
||||
|
|
|
@ -111,9 +111,11 @@ augroup iptables
|
|||
augroup END
|
||||
|
||||
augroup vimconfig
|
||||
" Reload vimrc on config change
|
||||
autocmd! bufwritepost ~/.vimrc source ~/.vimrc
|
||||
autocmd! bufwritepost $DOTFILES/vim/vimrc source ~/.vimrc
|
||||
autocmd! bufwritepost $DOTFILES/vim/shortcuts.vim source ~/.vimrc
|
||||
" Install/Update plugs on change
|
||||
autocmd! bufwritepost $DOTFILES/vim/plugs.vim PlugInstall
|
||||
autocmd! bufwritepost $DOTFILES/vim/plugs.vim PlugUpdate
|
||||
augroup END
|
||||
|
|
Loading…
Reference in New Issue
Block a user