background preloader

Vim

Facebook Twitter

Change font size quickly. If you regularly switch to a larger or smaller font, for example because someone looking at your code thinks the letters are too small, or because you want to lay back in your chair while reading, this tip is for you. The following script defines two commands, :LargerFont and :SmallerFont, to allow quick adjustments to the font size used in the gtk2 gui. Change minfontsize and maxfontsize to suit your needs. See below for alternative solutions. To use this script, put the following code into ~/.vim/plugin/gtk2fontsize.vim or in your vimrc. let s:pattern = '^\(.* \)\([1-9][0-9]*\)$' let s:minfontsize = 6 let s:maxfontsize = 16 function! Related plugins Edit As an alternative, you could use one of these plugins which work with fonts on Unix and Windows systems: Mapping solution Another alternative is to use the following mappings which use a clever substitute (no functions are required).

Nnoremap <C-Up> :silent! Explanation Edit The replacement string \=eval(submatch(0)+1) uses: submatch(0) eval() Vim Novice Tutorial Videos - Derek Wyatt's Blog. Might - Kingdoms of Camelot Wiki - Knights, Buildings, Troops, Battle, Resources, and more! Might is a combined number of points for troops, buildings, Throne Room Cards, and Champion Cards, each of which give a certain amount of Might.

In the case of the Cards you get more might with each Enhancement and Upgrade on a Card. Increasing your Might allows you to gain levels and improve your Title. Your Might is reduced when you lose battles as an attacker due to troop or wall losses. You can replace your lost Might by replacing the units and buildings lost in battle. To calculate total Might for one building use the following formula: (2^(Building Level-1)) x Base Might So if you have a level 9 Alchemy Lab with a base might of 30: (2^8)x30= 7680 Troops If you want to get the most Might for your ongoing Food cost, build Supply Wagons.

As of August, 2012 the building times and might for buildings was revised by Kabam. Buildings A full city having all buildings and all fields, all to level 9, will thus give you 385805 might. Defensive Units Might per Minute Racing to get your might up? Code - Vim color schemes how-to. First, pick up a colour scheme for Vim, for instance from Inspiration - Color Theme Generator by clicking "Vim Scheme". Let us say you downloaded the file inspiration682066.vim . Now place inspiration682066.vim in ~/.vim/colors . If the folder doesn't exist, create it.

For quick testing you can run the following lines: cd ~ mkdir - p . vim / colors wget -- directory - prefix =. vim / colors http : // inspiration . sweyla . com / code / vim / inspiration682066 . vim Now add the following to your ~/.vimrc (if you don't have one, create it). colorscheme inspiration682066 sy on Start Vim and enjoy your new colour scheme. It doesn't look good? Linux The new Vim Scheme export function supports both full RGB and 256 terminal colours.

More information on 256 colour xterm here . Mac OS X The easiest way of getting full colours on Mac OS X is to download MacVim , which will work out of the box. Personally, I use iTerm which supports 256 colour xterm, which works great. List of the keyboard shortcuts that are available in Windows XP. This article describes the keyboard shortcuts that you can use to complete tasks in Windows XP.

General keyboard shortcuts Click here to show/hide list Dialog box keyboard shortcuts Click here to show/hide list If you press Shift+F8 in extended selection list boxes, you enable extended selection mode. Ctrl+Tab (Move forward through the tabs)Ctrl+Shift+Tab (Move backward through the tabs)Tab (Move forward through the options)Shift+Tab (Move backward through the options)Alt+Underlined letter (Perform the corresponding command, or select the corresponding option)Enter (Perform the command for the active option or button)Spacebar (Select or clear the check box if the active option is a check box)Arrow keys (Select a button if the active option is a group of option buttons)F1 key (Display Help)F4 key (Display the items in the active list)Backspace (Open a folder one level up if a folder is selected in the Save As or Open dialog box) Microsoft natural keyboard shortcuts Click here to show/hide list.

VI and VIM editor: Tutorial and advanced features. Vim Intro: This "vi" tutorial is intended for those who wish to master and advance their skills beyond the basic features of the basic editor. It covers buffers, "vi" command line instructions, interfacing with UNIX commands, and ctags. The vim editor is an enhanced version of vi. The improvements are clearly noticed in the handling of tags. The advantage of learning vi and learning it well is that one will find vi on all Unix based systems and it does not consume an inordinate amount of system resources.

Vi works great over slow network ppp modem connections and on systems of limited resources. One can completely utilize vi without departing a single finger from the keyboard. NOTE: Microsoft PC Notepad users who do not wish to use "vi" should use "gedit" (GNOME edit) or "gnp" (GNOME Note Pad) on Linux. See our list of Linux GUI editors Vim Installation: Red Hat / CentOS / Fedora: Vi/Vim Command Line Arguments: Command usage: vim [arguments] filename1 [filename2 ...]

Basic "vi" features: #! Pentadactyl — Dactyl Home. Fucking. Awesome. - Imgur. Albums browse your computer drag and drop here Ctrl + V paste from your clipboard By uploading, you agree to our terms of service That file type is not supported! Supported formats: JPEG, GIF, PNG, APNG, TIFF, BMP, PDF, XCF Imgur is home to the web's most popular image content, curated in real time by a dedicated community through commenting, voting and sharing. View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution © 2014 Imgur, LLC. we're hiring!

Album: 13 images Fucking. No way! I'm sure. Vimward.