Skip to content

Instantly share code, notes, and snippets.

@Johnytran
Johnytran / chrome
Created August 1, 2015 13:45
chrome select address link bar
ctrl + l
@Johnytran
Johnytran / command prompt
Created August 10, 2015 03:49
shortcut key open network from command prompt
ncpa.cpl
@Johnytran
Johnytran / command prompt
Last active August 29, 2015 14:27
command prompt remove directory not empty
rmdir dirname /S
rmdir /S /Q your_directory
to skip confirmation messages.
@Johnytran
Johnytran / vim
Created August 10, 2015 12:54
Start VimExplorer
Start VimExplorer :VE
@Johnytran
Johnytran / command prompt
Created August 10, 2015 14:04
command prompt open clock
timedate.cpl
@Johnytran
Johnytran / nerdtree
Created August 16, 2015 11:56
shortcut open nerdtree in vim
In my .vimrc I have:
let mapleader = ","
nmap <leader>ne :NERDTree<cr>
So when I need NERDTree I just write ,ne in normal mode.
@Johnytran
Johnytran / Ack
Last active August 29, 2015 14:27
Install and use Ack library on window
Start by installing perl http://strawberryperl.com/
Install App::Ack by typing (in a windows command shell)
C:\>cpan App::Ack
cpanm App::Ack --force if you got problem with permission
@Johnytran
Johnytran / chrome
Last active August 29, 2015 14:27
shortcut bookmark a page / all pages in chrome
Ctrl+D Saves your current webpage as a bookmark.
Ctrl+Shift+D Saves all open pages as bookmarks in a new folder.
@Johnytran
Johnytran / nerdtree
Created August 23, 2015 04:47
Search file on nerdtree
1. Install Ack library
https://gist.github.com/Johnytran/4a91a0649e88ad5477c0
2. Install Plugin ack for nerdtree
https://github.com/mileszs/ack.vim/tree/master
(ack.vim/tree/master for vundle)
@Johnytran
Johnytran / cmd
Created August 29, 2015 02:23
change default directory command prompt
1. You find the shortcut file of command prompt
Right click on the shortcut file to open the properties dialog. Inside the "Start in:" textbox you should see %HOMEDRIVE%%HOMEPATH%. If you want the prompt to start in C:\ just replace the variables with "C:\" (without quotes).