linux:vim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:vim [2013/10/12 15:53] – [NERDTree] percy | linux:vim [2016/08/15 16:25] (current) – [Vim tips] percy | ||
---|---|---|---|
Line 5: | Line 5: | ||
open/close folder | open/close folder | ||
zf/zo | zf/zo | ||
+ | |||
+ | : | ||
+ | : | ||
===== Split ===== | ===== Split ===== | ||
:split filename | :split filename | ||
Line 17: | Line 19: | ||
Ctrl+w: | Ctrl+w: | ||
Ctrl+w:w | Ctrl+w:w | ||
+ | |||
+ | ==== select ==== | ||
+ | v | ||
+ | ctrl+v select a block | ||
===== Reference ===== | ===== Reference ===== | ||
Line 45: | Line 51: | ||
git clone https:// | git clone https:// | ||
- | Keyboard Commands | + | Keyboard Commands(NERDTree 快捷键辑录: |
Type :help NERDTreeMappings to read through all of the default keyboard shortcuts. These are the ones I use the most frequently: | Type :help NERDTreeMappings to read through all of the default keyboard shortcuts. These are the ones I use the most frequently: | ||
Line 56: | Line 62: | ||
R: Refresh the tree, useful if files change outside of Vim | R: Refresh the tree, useful if files change outside of Vim | ||
?: Toggle NERD Tree's quick help | ?: Toggle NERD Tree's quick help | ||
+ | C:change tree root to the selected dir,use " | ||
</ | </ | ||
+ | |||
+ | gt = next tab | ||
+ | gT = previous tab | ||
==== Maximum Awesome ==== | ==== Maximum Awesome ==== | ||
http:// | http:// | ||
git clone https:// | git clone https:// | ||
+ | | ||
+ | |||
+ | ==== Maximum Awesome Linux ==== | ||
+ | https:// | ||
+ | ==== paste ==== | ||
+ | :set paste | ||
+ | :set nopaste | ||
+ | Install the macvim to replace the system vim | ||
+ | brew install macvim --HEAD --override-system-vim | ||
+ | | ||
+ | ==== ctags ==== | ||
+ | sudo port install ctags | ||
+ | ctags -R | ||
+ | |||
+ | Append ~/.vimrc | ||
+ | set tags=tags; | ||
+ | set autochdir | ||
+ | | ||
+ | ==== taglist ==== | ||
+ | Download the latest taglist from here: | ||
+ | http:// | ||
+ | < | ||
+ | " | ||
+ | map < | ||
+ | """""""""""""""""""""""""""""" | ||
+ | " Tag list (ctags) | ||
+ | """""""""""""""""""""""""""""" | ||
+ | let Tlist_Ctags_Cmd = ' | ||
+ | let Tlist_Show_One_File = 1 " | ||
+ | let Tlist_Exit_OnlyWindow = 1 " | ||
+ | let Tlist_Use_Right_Window = 1 " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== run command ==== | ||
+ | !ls | ||
+ | r !ls | ||
+ | | ||
+ | | ||
+ | ==== Vim tips ==== | ||
+ | < | ||
+ | ^M is retrieve by cmd+v, M | ||
+ | </ | ||
+ | | ||
+ | 1,%s/^M//g | ||
+ | |||
+ | |||
+ | |||
+ | | ||
+ |
/var/www/dokuwiki/wiki/data/attic/linux/vim.1381564392.txt.gz · Last modified: 2016/05/05 13:06 (external edit)