Skip to content

Instantly share code, notes, and snippets.

@Johnytran
Johnytran / vim
Last active August 29, 2015 14:26
Vim plugin
1. vim-AutoClose
https://github.com/Townk/vim-autoclose
2.Closetag plugin
https://github.com/vim-scripts/closetag.vim
3.Vim-MatchIt
https://github.com/edsono/vim-matchit
4.NERDTree
https://github.com/scrooloose/nerdtree
@Johnytran
Johnytran / vim
Last active August 29, 2015 14:26
Double line in vim
:t. will duplicate the line
@Johnytran
Johnytran / gist:d6c86387780b8c93f889
Created July 28, 2015 13:11
Closetag plugin vim
hit Ctrl+_
@Johnytran
Johnytran / gist:1663d4df61d8266f550e
Created July 28, 2015 13:30
Vim-MatchIt plugin
Vanilla vim lets you use the % key to jump between opening and closing brackets or parentheses.
It lets you rapidly move around C style code bases, but it does nothing when you are editing HTML.
The Vim-MatchIt plugin extends this functionality to HTML files and lets you use % to jump between opening and closing HTML tags:
1. open vimrc
2. :NERDTree.
@Johnytran
Johnytran / gist:79564924f6e7fdac5000
Last active August 29, 2015 14:26
Full screen command prompt windows 7
Right click command prompt>Cmd properties>Layout tab
or
In windows 7 ,To change the screen size and buffer size, right click on the icon in the top left corner of the Command Prompt window and choose Properties. Then click on layout.
@Johnytran
Johnytran / gist:16a88f8bbf21e53ba8a7
Created July 30, 2015 01:22
NERDTree open new screen inside folder
press key e
@Johnytran
Johnytran / gist:405dcc54fccb5dc54b38
Created July 30, 2015 01:34
turn back to main panel NERDTree
(ctrl-W twice)
@Johnytran
Johnytran / gist:fb6cad94955329822a28
Created July 30, 2015 01:43
nerdtree open split
i: open split
@Johnytran
Johnytran / gist:e2653a97394a33003bf2
Created July 30, 2015 01:44
view split with parent nerdtree
gs: preview vsplit