Compare commits

...

4 Commits

Author SHA1 Message Date
f990d4cd91 merge clean 2023-04-11 11:27:56 -04:00
b7c644bcca git aliases 2023-04-11 09:44:32 -04:00
c76363a2ec dont pipe to pager 2023-04-11 08:57:47 -04:00
7d0528f634 create a git log alias, and remove tmuxline from vim 2023-04-07 09:29:01 -04:00
2 changed files with 4 additions and 16 deletions

View File

@ -101,9 +101,11 @@ alias ons='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- |
alias xns='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)" | fzf | xargs -I % $PG -f %'
alias mns='fzf | xargs -I {} sqlcmd.exe -S usmidsql01 -i {}'
alias nv='~/nvim-linux64/bin/nvim'
alias gs='git status'
alias gs='git status -s'
alias ga='git add .'
alias gc='git commit -v'
alias gd='git difftool'
alias gl="git log --graph"
alias gl='git log --graph --oneline --format="%C(yellow)%h %C(green)%an%Creset %C(blue)%ad%Creset %s"'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert

14
.vimrc
View File

@ -73,17 +73,3 @@ nnoremap <silent> <Up> 5<C-W>+
nnoremap <silent> <Down> 5<C-W>-
nnoremap <silent> <Right> 10<C-W>>
nnoremap <silent> <Left> 10<C-W><
"----------funcion to comment out every line except current---------------
function! CommentOutUnselectedLines()
let l:highlighted_lines = sort(getpos("'<")[1], getpos("'>")[1])
let l:line_count = line("$")
let l:comment_char = "--"
for l:line_number in range(1, l:line_count)
if index(l:highlighted_lines, l:line_number) == -1
execute l:line_number . "s/^/" . l:comment_char . "/"
endif
endfor
endfunction
nnoremap <Leader>cc :call CommentOutUnselectedLines()<CR>