Skip to content

Commit

Permalink
Remove unused configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgeek committed May 14, 2018
1 parent 8abd108 commit 3abaade
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,7 @@ cmap w!! %!sudo tee > /dev/null %
" Clear the last used search pattern
nmap <silent> <leader>hc :let @/ = ''<CR>
" Pretty print one-liner curl requests
nmap <leader>cu :.s/ -H/\\\r -H/g<CR>
" Shortcut common directory exploration commands
nmap <leader>x :Ex<CR>
nmap <leader>v :Vex<CR>
nmap <leader>s :Sex<CR>
Expand All @@ -204,19 +200,6 @@ augroup plugin-devdocs
autocmd FileType javascript,html nmap <buffer>K <Plug>(devdocs-under-cursor)
augroup END

" Browse the current file in bitbucket and scroll to the current line
" Requires:
" - https://bitbucket.org/atlassian/bitbucket-server-cli
" - https://github.com/tpope/vim-fugitive
function! BrowseBitbucket()
let projectRoot = fnamemodify(fugitive#extract_git_dir("%"), ":p:h:h")
let relativePath = fnamemodify(expand("%"), ":s?" . projectRoot . "??")
let lineNumber = line(".")
execute '!stash browse browse ' . relativePath . ' -l ' . lineNumber . ' -b $(git rev-parse HEAD)'
endfunction
command! BB :call BrowseBitbucket()
nmap <leader>bb :call BrowseBitbucket()<CR>
" Load project specific vimrc configurations
" From http://www.ilker.de/specific-vim-settings-per-project.html
" Not yet verified as working
Expand Down

0 comments on commit 3abaade

Please sign in to comment.