Skip to content

Commit e525f8a

Browse files
committed
wget.md edited
1 parent 09a6bed commit e525f8a

File tree

3 files changed

+41
-6
lines changed

3 files changed

+41
-6
lines changed

nvim/init.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" nvim file: ~/.config/nvim/init.vim
2-
" Last Change: 2018 mar 29 14:38
2+
" Last Change: 2018 mar 31 19:15
33
" vim: ff=unix ai et ts=4
44
" Author: Sérgio Luiz Araújo Silva
55
" Reference: http://sergioaraujo.pbworks.com/w/page/15864094/vimrc
@@ -401,7 +401,7 @@ nnoremap Y y$
401401
402402
" Jump outside '"({
403403
if !exists('g:AutoPairsShortcutJump')
404-
let g:AutoPairsShortcutJump = '<C-l>'
404+
let g:AutoPairsShortcutJump = '<A-l>'
405405
endif
406406

407407
call deoplete#custom#set('_', 'matchers', ['matcher_full_fuzzy'])
@@ -1215,7 +1215,7 @@ vnoremap <F23> <ESC>:set hls! hls?<cr> <bar> gv
12151215
12161216
" alternate between relative number, number and no number
12171217
set nu rnu
1218-
"nmap <F6> :set nu rnu<cr>
1218+
" nmap <F6> :set nu rnu<cr>
12191219
nnoremap <F6> :let [&nu, &rnu] = [!&rnu, &nu+&rnu==1]<cr>
12201220
12211221
"augroup numbertoggle

vim/wiki/dicasvim.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# dicasvim.md Intro - Last Change: 2018 mar 31 15:39
1+
# dicasvim.md Intro - Last Change: 2018 abr 01 07:14
22
vim: set ts=4 et:
33

44
+ http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/#navigation
@@ -28,6 +28,33 @@
2828
let l:winheight = winheight(win_getid())
2929
let l:winheight = winheight('%')
3030

31+
see also winline()
32+
33+
# How to replace first n occurrences of a character for each line?
34+
+ https://stackoverflow.com/a/49590581/2571881
35+
36+
Suppose, I have
37+
38+
type,type,type,type,description,description,description.
39+
type,type,type,type,description,description.
40+
41+
I want to -
42+
43+
type|type|type|type|description,description,description.
44+
type|type|type|type|description,description.
45+
46+
Solution:
47+
48+
Nothing sofisticated but it get's the job done
49+
50+
:%norm f,r|;.;.;.
51+
52+
breakdown
53+
54+
:%norm start a normal command on all lines
55+
f,r| f(ind) a ',' and r(eplace) with '|'
56+
;.;.;. ';' jumps to next match and '.' repeats the change
57+
3158
# Save file only if it has changed
3259

3360
:update!
@@ -1678,7 +1705,6 @@ I also have this line on my `~/.vimrc`, it allows me to insert the filename easi
16781705
iab fname <c-r>=expand("%:p")<cr>
16791706
```
16801707

1681-
16821708
# Ao digitar o caractere de fechamento o vim pula pra fora do bloco
16831709
+ https://www.quora.com/What-are-your-favorite-Vim-key-mappings
16841710

vim/wiki/wget.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ OBS: I think it is useful to change the user-agent for wget before using it:
1010

1111
alias wgetfox='wget --user-agent="Mozilla/5.0 (X11; Linux i686; rv:55.0) Gecko/20100101 Firefox/55.0"'
1212

13-
wget -m --restrict-file-names=nocontrol --user-agent="direct download -- `uname -a`" --no-parent --referer=http://DigitalK7.com/ "http://digitalk7.com/mus/Brazil/"
13+
wget --limit-rate=15k -m --restrict-file-names=nocontrol --user-agent="direct download -- `uname -a`" --no-parent --referer=http://DigitalK7.com/ "http://digitalk7.com/mus/Brazil/"
14+
15+
# Download Digitalk7.com albuns
16+
+ http://digitalk7.com/mus/
17+
18+
Use wget command to mirror the part of Digital K7 that you want. Mirroring
19+
Digital K7 means to download its files. For example, to download the entire
20+
Bach discography on Digital K7:
21+
22+
wget -m --restrict-file-names=nocontrol --user-agent="direct download -- `uname -a`" --no-parent --referer=http://DigitalK7.com/ "http://DigitalK7.com/mus/Classical/Bach/"
1423

1524
# Download all yahoo messages from yahoo groups
1625

0 commit comments

Comments
 (0)