add snippets and keybindings
This commit is contained in:
parent
c9db1e2f86
commit
ab37809229
@ -230,6 +230,10 @@ fi
|
|||||||
appendpath "$HOME/.local/bin"
|
appendpath "$HOME/.local/bin"
|
||||||
appendpath "$HOME/.local/scripts"
|
appendpath "$HOME/.local/scripts"
|
||||||
|
|
||||||
|
# EXTRA TOOLS
|
||||||
|
# -----------
|
||||||
|
export FZF_DEFAULT_OPTS="--bind=ctrl-f:page-up,ctrl-d:page-down"
|
||||||
|
|
||||||
# SOURCE LOCAL RC
|
# SOURCE LOCAL RC
|
||||||
# --------
|
# --------
|
||||||
[ -f "$HOME/.config/bashrc" ] && source "$HOME/.config/bashrc"
|
[ -f "$HOME/.config/bashrc" ] && source "$HOME/.config/bashrc"
|
||||||
|
|||||||
@ -22,9 +22,11 @@ nnoremap <leader>rck :vsplit ~/.vim/keybinds.vim<CR>
|
|||||||
nnoremap <leader>rcb :vsplit ~/.vim/keybinds.vim<CR>
|
nnoremap <leader>rcb :vsplit ~/.vim/keybinds.vim<CR>
|
||||||
nnoremap <leader>rcp :vsplit ~/.vim/plugins.vim<CR>
|
nnoremap <leader>rcp :vsplit ~/.vim/plugins.vim<CR>
|
||||||
nnoremap <leader>rcf :vsplit $HOME/.vim/after/ftplugin/<CR>
|
nnoremap <leader>rcf :vsplit $HOME/.vim/after/ftplugin/<CR>
|
||||||
|
|
||||||
nnoremap <leader>so :source $MYVIMRC<CR>
|
nnoremap <leader>so :source $MYVIMRC<CR>
|
||||||
|
|
||||||
|
"windows
|
||||||
|
nnoremap <leader>cl :close<CR>
|
||||||
|
|
||||||
"formatting tools
|
"formatting tools
|
||||||
nnoremap =j :%!python -m json.tool<CR>
|
nnoremap =j :%!python -m json.tool<CR>
|
||||||
"}}}
|
"}}}
|
||||||
|
|||||||
@ -31,7 +31,9 @@ call plug#begin(pluginDir)
|
|||||||
"fzf
|
"fzf
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
"snippet engine
|
||||||
|
Plug 'SirVer/ultisnips'
|
||||||
|
Plug 'honza/vim-snippets'
|
||||||
|
|
||||||
" syntax and colorscheme packs
|
" syntax and colorscheme packs
|
||||||
Plug 'flazz/vim-colorschemes'
|
Plug 'flazz/vim-colorschemes'
|
||||||
@ -101,6 +103,11 @@ let g:vim_markdown_frontmatter = 1
|
|||||||
"vim-emmet
|
"vim-emmet
|
||||||
let g:user_emmet_install_global = 0
|
let g:user_emmet_install_global = 0
|
||||||
|
|
||||||
|
"UltiSnips
|
||||||
|
let g:UltiSnipsExpandTrigger="<tab>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger="<c-n>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger="<c-p>"
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"plugin keybinds
|
"plugin keybinds
|
||||||
@ -114,6 +121,8 @@ nnoremap <leader>pu :source $MYVIMRC <BAR> :PlugUpdate<CR>
|
|||||||
nnoremap <leader>pc :source $MYVIMRC <BAR> :PlugClean<CR>
|
nnoremap <leader>pc :source $MYVIMRC <BAR> :PlugClean<CR>
|
||||||
|
|
||||||
"openbrowser
|
"openbrowser
|
||||||
|
nnoremap <leader>ob :OpenBrowser
|
||||||
|
nnoremap <leader>obs :OpenBrowserSearch
|
||||||
nmap gx <Plug>(openbrowser-smart-search)
|
nmap gx <Plug>(openbrowser-smart-search)
|
||||||
vmap gx <Plug>(openbrowser-smart-search)
|
vmap gx <Plug>(openbrowser-smart-search)
|
||||||
|
|
||||||
@ -142,9 +151,10 @@ nnoremap <leader>gcm :Gcommit<CR>
|
|||||||
|
|
||||||
"fzf
|
"fzf
|
||||||
nnoremap <leader>f :GitFiles<CR>
|
nnoremap <leader>f :GitFiles<CR>
|
||||||
nnoremap <leader>b :Buffers<CR>
|
|
||||||
nnoremap <leader>F :Files<CR>
|
nnoremap <leader>F :Files<CR>
|
||||||
nnoremap <leader>H :Helptags<CR>
|
nnoremap <leader>b :Buffers<CR>
|
||||||
nnoremap <leader>M :Maps<CR>
|
nnoremap <leader>h :Helptags<CR>
|
||||||
|
nnoremap <leader>m :Maps<CR>
|
||||||
|
nnoremap <leader>sn :Snippets<CR>
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user