Newer
Older

Hermann Mayer
committed
# Vim

Hermann Mayer
committed
## CTags
Just run the following command inside your project path:
ctags -f tags.new -R --languages=php .
mv tags.new tags
Alternative: We have now F12 mapped to run a script which loads a project list
and generates the tags.
And you could start vim:
vim -t TagController
(We assume here you got a "TagController" :))

Hermann Mayer
committed
## Common
* Plugins managed using Vundle
* Smart autocompletition as you type
* Filebrowser provided by NERDTree. Toggle it with F3
* Easy Tab Navigation
* tt = new tab and leaves the cursor waiting to specify the file path to open (leave blank to open an empty tab)
* tn or Ctrl-Shift-Right = next tab
* tp or Ctrl-Shift-Left = previous tab
* tm = move current tab to the end
* tl = show a list of current tabs with their inner windows on a side pane. You can navigate them
* Easy window navigation using Alt-arrows keys
* Class/Outline Browser. Toggle it with F4
* SuperTab: Just Tab everywhere, eg for paths and binaries
* Neocomplcache: Very usefull autocompletition
var x = y;
var usefullVarName = 42;
var trickyHacky = x;
* Just type ':Align =' and get:
var x = y;
var usefullVarName = 42;
var trickyHacky = x;
* tComment
gc{motion} :: Toggle comments (for small comments within one line
the &filetype_inline style will be used, if
defined)
gcc :: Toggle comment for the current line
gC{motion} :: Comment region

Hermann Mayer
committed
# Sources
* https://github.com/Shougo/neocomplcache
* https://github.com/thinca/vim-ref
* https://github.com/tpope/vim-surround
* https://github.com/scrooloose/nerdcommenter
* http://vim.wikia.com/wiki/256_colors_in_vim
* http://www.vim.org/scripts/script.php?script_id=3171
* http://www.vim.org/scripts/script.php?script_id=1643
* http://www.vim.org/scripts/script.php?script_id=294
* http://www.vim.org/scripts/script.php?script_id=1173
* https://github.com/fisadev/fisa-vim-config