little fixes & git shortcuts
This commit is contained in:
parent
e0a98fd1da
commit
e16a91d84a
2 changed files with 5 additions and 3 deletions
|
@ -6,8 +6,9 @@ bookmark="$(xsel -ob)"
|
||||||
|
|
||||||
if grep -q "$bookmark" "$HOME/Desktop/bookmarks" ; then
|
if grep -q "$bookmark" "$HOME/Desktop/bookmarks" ; then
|
||||||
notify-send " Bookmarks" "Already bookmarked"
|
notify-send " Bookmarks" "Already bookmarked"
|
||||||
|
exit
|
||||||
else
|
else
|
||||||
name="$(menu 'Bookmark name:' empty)"
|
name="$(menu "Bookmark name:" empty)"
|
||||||
[ -z "$name" ] && exit
|
[ -z "$name" ] && exit
|
||||||
entry="$name-$bookmark"
|
entry="$name-$bookmark"
|
||||||
echo "$entry" >> "$HOME/Desktop/bookmarks"
|
echo "$entry" >> "$HOME/Desktop/bookmarks"
|
||||||
|
|
|
@ -37,10 +37,12 @@ autocmd FileType python noremap <buffer> <F9> :w<CR> :!python %<CR>
|
||||||
nnoremap <C-t> :NERDTreeToggle<CR>
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" Global keybindings
|
" Global keybindings
|
||||||
|
noremap gc :!git commit -m ""
|
||||||
|
noremap gp :!git push
|
||||||
noremap <F5> :setlocal spell! spelllang=en<CR>
|
noremap <F5> :setlocal spell! spelllang=en<CR>
|
||||||
noremap <F6> :setlocal spell! spelllang=es<CR>
|
noremap <F6> :setlocal spell! spelllang=es<CR>
|
||||||
noremap exec !!$SHELL<CR>
|
noremap exec !!$SHELL<CR>
|
||||||
noremap <C-n> :bn<CR>
|
noremap <tab> :bn<CR>
|
||||||
noremap <C-c> :bd<CR>
|
noremap <C-c> :bd<CR>
|
||||||
noremap <C-s> :w<CR>
|
noremap <C-s> :w<CR>
|
||||||
noremap <Space> za
|
noremap <Space> za
|
||||||
|
@ -103,7 +105,6 @@ let g:indentLine_enabled = 1
|
||||||
let g:indentLine_char = '|'
|
let g:indentLine_char = '|'
|
||||||
|
|
||||||
" fzf-lua
|
" fzf-lua
|
||||||
noremap <tab> :FzfLua complete_line<CR>
|
|
||||||
noremap <A-b> :FzfLua git_branches<CR>
|
noremap <A-b> :FzfLua git_branches<CR>
|
||||||
noremap <A-c> :FzfLua git_commits<CR>
|
noremap <A-c> :FzfLua git_commits<CR>
|
||||||
noremap <A-s> :FzfLua git_status<CR>
|
noremap <A-s> :FzfLua git_status<CR>
|
||||||
|
|
Loading…
Reference in a new issue