sudo nmap -sP 192.168.1.0/24
cd ~
git init .
mv .gitconfig .gitconfig.old
git remote add origin https://github.com/ahm4711/dotfiles.git
git pull origin master
curl -fLo ~/.vim/autoload/plug.vim --create-dirs
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
find . -iname '*.cs' -print0 | xargs -0 -L1 sed -b -e '/#(end)?region/ d' -i
find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t]/// / d' -i
find . -iname '.csproj' -print0 | xargs -0 -L1 sed -b -e '1s/^\xef\xbb\xbf//' -i find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '1s/^\xef\xbb\xbf//' -i
find . -iname '*.cs' -print0 | xargs -0 -L1 sed -b -e '/^// <copyright /,/^// <author / d' -i
#tabs to spaces find . -iname '*.cs' -print0 | xargs -0 -L1 sed -b 's/\t/ /g' -i
find . -iname '.cs' -print0 | xargs -0 -L1 sed -b 's/[ \t]\r$/\r/' -i
find . -iname '*.cs' -print0 | xargs -0 -L1 sed -b '/.\r/,/^\r$/!d' -i
find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t][DefaultProperty[ \t](.)]\r$/ d' -i find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t][Description[ \t](.)]\r$/ d' -i find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t][Browsable[ \t](.)]\r$/ d' -i find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t][Localizable[ \t](.)]\r$/ d' -i find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t][(System.Reflection.)?Obfuscation[ \t](.)]\r$/ d' -i find . -iname '.cs' -print0 | xargs -0 -L1 sed -b -e '/^[ \t][CLSCompliant[ \t](.)]\r$/ d' -i
onoremap p i( onoremap in( :normal! f(vi(
change to dir of current file :cd %:h
[s ]s navigate spelling errors z= correct word zg add current word to spell file zw remove current word from spell file
Select the first block: ctrl-v move "ay Select the second block: ctrl-v move c ctrl-o "aP
Surround word with double quotes
ciw""P ciw'"'
Swap words
yiw viwp
viwp
Remove mapping from insert mode
iunmap MAPPING
Paste into command line
CTRL-R CTRL-W word CTRL-A WORD
delete a word daw