Calmar's Personal Vim
tips
- The Plugins I use (may download them at
vim.org):
- taglist.vim:
nice tag list in a seperate vertical window for comfortable
source (ctags) browsing (:Tlist)
-
SuperTab.vim: basically uses the TAB for
completion in insert mode instead of Ctrl-P/N with some
additional features
- boxes / t.jensen: GREAT for
creating nice boxes around text e.g. while writing a mail
or commenting code. (my .boxes).
May use maps like that in your .vimrc:
map <LEADER>b2 vip:!boxes -p a1 -d
ca-rounded<CR>f[llR
- cli
utilities / for vim. Additionally I use often HTML
tidy (tidy -iq -asxhtml) from here
- xml.vim:
really helpful things for creating xml files (you may
rename (link) it to html.vim and put in into the ftplugin)
:help xml-plugin, let xml_use_xhtml = 1, \v
(surround) \d (delete) x;;
(<x>|</x>), ...
- tpope's surround.vim
- (visual) s<tag> (surround), dst
(remove tag), cst (change tag), ...
- matchit.vim: get matching xml-tags, braces,
if/endif - % (visual)a% g% [% ]% ...
- Nerd
Commenter: un/comment - ,cc ,cl I recommend in your .vimrc a: let NERDDefaultNesting = 1
- SearchComplete.vim: while searching (/ or ?) you
can <tab> for completion
- Align.vim: Align many things. you can choose
left/right/center (lrc), padding left/right (P./p.), the
delimiters can be more than one. The order can be revelant
or not (C or =), the way you told AlignCtrl about them ..
and much more - \abox \anum or :call
AlignCtrl('Cp1P2lr', '=', '\>[^=]\<') and a
:'<,'>:Align (the C = cycling the delimiters (
= and the regex 'empty space between two words'). The cells
borders will be = and then 'empty space'... The p1 P2 means
pad the borders with 1 space on the left and 2 on the
right. lr means left then right justify ...
- DrawIt.vim: draw ascii boxes... (I use sometimes
while writing mails) - \di \ds...
- themes.vim: whole buch of themes (>100)
- guiplugin/FavMenu.vim: Favourite menu
- guiplugin/MRUmenu.vim: recent files and so
-
- You can pull a filename into the buffer with C-x
C-f in insert mode.
- gf (mnemomic: goto file) opens a file under or
next to the curser
- When you mark something with the mouse (e.g. out of a
browser), you can access that with the register "* and
"+ . When you later mark something inside vim, "*
gets overridden. But "+ will always stay untouched by
vim!