Compare commits
No commits in common. "f990d4cd912342b8ebf27856e4219ec936a0f0b9" and "94c6854b3fcf87030f01a6ec7a8346a17c82a956" have entirely different histories.
f990d4cd91
...
94c6854b3f
6
.bashrc
6
.bashrc
@ -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 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 mns='fzf | xargs -I {} sqlcmd.exe -S usmidsql01 -i {}'
|
||||||
alias nv='~/nvim-linux64/bin/nvim'
|
alias nv='~/nvim-linux64/bin/nvim'
|
||||||
alias gs='git status -s'
|
alias gs='git status'
|
||||||
alias ga='git add .'
|
|
||||||
alias gc='git commit -v'
|
|
||||||
alias gd='git difftool'
|
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:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
# sleep 10; alert
|
# sleep 10; alert
|
||||||
|
14
.vimrc
14
.vimrc
@ -73,3 +73,17 @@ nnoremap <silent> <Up> 5<C-W>+
|
|||||||
nnoremap <silent> <Down> 5<C-W>-
|
nnoremap <silent> <Down> 5<C-W>-
|
||||||
nnoremap <silent> <Right> 10<C-W>>
|
nnoremap <silent> <Right> 10<C-W>>
|
||||||
nnoremap <silent> <Left> 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user