Nice backgrounds
January 23rd, 2011 costishttp://nardoxic.deviantart.com/art/Classic-Wood-132248439
http://nardoxic.deviantart.com/art/Classic-Wood-132248439
![]()
GRANT ALL ON mydb.* to ‘myuser’@'myhost’ identified by ‘mypassword’;
… και τα βράζουμε για 2-2.5 ώρες
Add the following to my.cnf (linux) or my.ini (win). By default, under windows my.ini is at MySQL’s installation dir
general_log=1
general_log_file=c:\mysql.log (or wherever you want)
Color Scheme: Wombat
Search Replace whole file with confirm
:%s/search/replace/gc
Ctags for drupal
ctags –langmap=php:.engine.inc.module.theme.php –php-kinds=cdfi –languages=php –recurse
and read this: http://stackoverflow.com/questions/563616/vimctags-tips-and-tricks
Line Wrap
:set wrap, :set nowrap
Buffers
list them with :ls, switch by number with :b1, b2 etc
remove document from buffer list with: bdelete 1, or bdelete foo.txt
Jumplist (navigation)
go back with Ctrl-O or Ctrl-T if you used a tag, go forward with Ctrl-I
set a mark with m[letter] and go there with ‘[letter], eg ma, ’a
go to last edited position with ‘.
CD to current file’s directory
:cd %:h
Install minbufExplorer plugin and NERDTree:
http://www.vim.org/scripts/script.php?script_id=159
Move current line to screen position:
zz = center
zt = top
zb = bottom
Copy/Paste
yy = yank current line
y$ = yank to end of line
y’x = yank from current line to mark x
“ayy = yank current line to buffer “a”
“ap = paste contents of buffer “a”
p = paste to right or cursor
P=paste to left of cursor
Basic Movement
| <C-F> | Move the cursor forward by a screenful of text |
|---|---|
| <C-B> | Move the cursor backward by a screenful of text |
| G | Move the cursor to the end of the file |
| numG | Move the cursor line num. (For instance, 10G moves to line 10.) |
| gg | Move the cursor to the beginning of the file |
| H | Move the cursor to the top of the screen. |
| M | Move the cursor to the middle of the screen. |
| L | Move the cursor to the bottom of the screen. |
| * | Read the string under the cursor and go to the next place it appears. (For instance, if your cursor was somewhere on the word “bob,” the cursor would move to the next occurance of “bob” in your file.) |
| # | Same as above, except it moves the cursor to the previousoccurance. |
| /text | Starting from the cursor, find the next occurance of the stringtext and go to it. You will need to press Enter to execute the search. To re-execute your last search, type n (for next occurance). |
| ?text | Same as /, but searches in the opposite direction. |
| ma | Make a bookmark named a at the current cursor position. A bookmark can be named any lowercase letter. You can’t see the bookmark, but it’s there! |
| `a | Go to bookmark a. Important: that’s a backtick, not a single quote. The backtick is located to the left of the 1 on most keyboards. |
| `. | Go to the line that you last edited. This is very useful! If you need to scroll through the file to look something up, you can go back to where you were without bookmarking it by using the `.command. |

This guy saved us: http://nthrbldyblg.blogspot.com/2008/06/vmware-and-fubar-keyboard-effect.html
Also, use this http://tipstank.com/2010/05/23/solve-eclipse-black-pop-up-code-assist-box-in-ubuntu-10-4-lucid/ if you have issues with Ubuntu 10.x dark color tooltips and eclipse.
http://blog.prabir.me/post/Dark-Eclipse-Theme.aspx