Compare commits
4 Commits
94c6854b3f
...
f990d4cd91
Author | SHA1 | Date | |
---|---|---|---|
f990d4cd91 | |||
b7c644bcca | |||
c76363a2ec | |||
7d0528f634 |
6
.bashrc
6
.bashrc
@ -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
14
.vimrc
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user