This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:cd %:h | |
" 或许需要:p参数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi .local/share/applications/mimeapps.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:vim[grep][!] /{pattern}/[g][j] {file} ... | |
"例如 | |
:grep 'test' -r /home/files/*.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if v:version < 700 | |
echoerr 'This _vimrc requires Vim 7 or later.' | |
quit | |
endif | |
" 获取当前目录 | |
func! GetPWD() | |
return substitute(getcwd(), "", "", "g") | |
endf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mb_str_split($str, $split_length) { | |
$chars = array(); | |
$len = mb_strlen($str); | |
for ($i = 0; $i < $len; $i+=$split_length ) { | |
$chars[] = mb_substr($str, $i, $split_length); // only one char to go to the array | |
} | |
return $chars; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:w !sudo tee % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 写在所有route后面 | |
*/ | |
Route::set('catch_all', '<path>', array('path' => '.+')) | |
->defaults(array( | |
'controller' => 'errors', | |
'action' => '404', | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174.36.30.71 www.dropbox.com | |
209.85.225.101 docs.google.com | |
74.125.127.100 writely.google.com | |
64.233.183.104 spreadsheets.google.com | |
64.233.183.104 spreadsheet.google.com | |
64.233.183.104 spreadsheets2.google.com | |
209.85.225.101 sites.google.com | |
209.85.225.101 groups.google.com | |
#209.85.225.101 code.google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a { | |
display: -moz-inline-stack; | |
display: inline-block; | |
zoom: 1; | |
*display: inline; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/<tagname\@=[^/>]*>\@=/<tagname/g |
OlderNewer