Compare commits

..

No commits in common. "f990d4cd912342b8ebf27856e4219ec936a0f0b9" and "94c6854b3fcf87030f01a6ec7a8346a17c82a956" have entirely different histories.

2 changed files with 16 additions and 4 deletions

View File

@ -101,11 +101,9 @@ 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 -s'
alias ga='git add .'
alias gc='git commit -v'
alias gs='git status'
alias gd='git difftool'
alias gl='git log --graph --oneline --format="%C(yellow)%h %C(green)%an%Creset %C(blue)%ad%Creset %s"'
alias gl="git log --graph"
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert

14
.vimrc
View File

@ -73,3 +73,17 @@ 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>