
Vim - walking without crutches How I boosted my Vim » nvie.com A few weeks ago, I felt inspired by articles from Jeff Kreeftmeijer and Armin Ronacher. I took some time to configure and fine-tune my Vim environment. A lot of new stuff made it into my .vimrc file and my .vim directory. This blog post is a summary describing what I’ve added and how I use it in my daily work. Before doing anything else, make sure you have the following line in your .vimrc file: " This must be first, because it changes other options as side effectset nocompatible Step 0: make the customization process easier ¶ Before starting configuring, it’s useful to install pathogen. So, download pathogen.vim, move it into the .vim/autoload directory (create it if necessary) and add the following lines to your .vimrc, to activate it: " Use pathogen to easily modify the runtime path to include all" plugins under the ~/.vim/bundle directorycall pathogen#helptags()call pathogen#runtime_append_all_bundles() " change the mapleader from \ to ,let mapleader="," Change Vim behaviour ¶ fun!
Vimcasts - free screencasts about the text editor Vim Geany : Home Page Vim - walking without crutches Emacs is extensibleEmacs is a memory hogEmacs has a long startup time Vim is not extensibleVim has fast startup timeVim has a low memory footprint Emacs footprint is small by today's standardsVim plugins can increase startup time In a modal interface Every button performs a different function in each mode In a touch interface Every pixel performs a different function in each mode What is the collective noun for TextMate ⌘] - indent⌘[ - outdent Vim > - indent< - outdent vmap <D-]> >gvvmap <D-[><gv do it (>)repeat (.)reverse (u) Jump to test what is current_model? rails_app/ app/ models/ thing.rb other.rb spec/ models/ thing_spec.rb other_spec.rb the time required to rapidly move to a target area is a function of the distance to and the size of the target The Knight can move two squares along, then one square on the perpendicular axis to the closest squares that no other piece can reach f{char} jumps to next occurence of {char} do it (f{char})repeat (;)reverse (,) use with d{motion}use with c{motion} f{char}
Daily Vim Devotional timl Leave it to the indefatigable Tim Pope to write a Clojure-like language that compiles down to VimL. Though I’ll probably never use this, the fact that it exists at all makes me feel like everything’s going to be OK. (Source: twitter.com) Set Your Mac’s Time Zone to UTC Yesterday I caused an outage and had to write a post mortem. I was going back through the HipChat conversations from the day and all of the times were in my local time zone. System Preferences doesn’t let you pick UTC for a time zone, but you can do this: sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime You clock will now be set to UTC. (Source: discussions.apple.com) Using multiple .ssh/config files I have my ssh config up on GitHub: I have some other work-specific configuration options that are semi-secret in that they contain some hostnames and settings I don’t need to be sharing publicly. vimdot (Source: twitter.com)
Secrets of tabs in vim Secrets of tabs in vim Thursday, 17 January 2008 I spend much of my day working on other people's code. People who have uncivilized ideas about how to indent their code. Tabs are eight columns wide. I've seen some especially ... creative tab styles not listed above, including code indented with various innovative mixture of tabs and spaces. tabstop Set tabstop to tell vim how many columns a tab counts for. expandtab When expandtab is set, hitting Tab in insert mode will produce the appropriate number of spaces. shiftwidth Set shiftwidth to control how many columns text is indented with the reindent operations (<< and >>) and automatic C-style indentation. softtabstop Set softtabstop to control how many columns vim uses when you hit Tab in insert mode. Indentation in the real world Putting it all together, the following incantations will configure vim for each of the cases listed above: Tabs are eight columns wide. Tabs are eight columns wide. ... you get the idea. Remembering these settings
Coda 2 Good question. Coda is everything you need to hand-code a website, in one beautiful app. While the pitch is simple, building Coda was anything but. How do you elegantly wrap everything together? More than anything else, Coda is a text editor. But an incredible text editor is just a nice typewriter if you can’t easily handle all of your files — from anywhere. Then you’ll want to see what your code looks like. Believe it or not, we’ve just scratched the surface. Finally, hiding behind the Plus button in the tab bar is a built-in Terminal and MySQL editor, two amazingly powerful Tab Tools. And it’s all wrapped up in our Sites, which get you started quickly. Coda is a very good app.
carlhuda/janus Learn to speak vim - verbs, nouns, and modifiers! Posted 16 December 2011 @ 12pm in vim Using vim is like talking to your editor in ‘verb modifier object’ sentences, turned into acronyms learn some verbs: v (visual), c (change), d (delete), y (yank/copy). these are the most important. there are otherslearn some modifiers: i (inside), a (around), t (till..finds a character), f (find..like till except including the char), / (search..find a string/regex)learn some text objects: w (word), s (sentence) p (paragraph) b (block/parentheses), t (tag, works for html/xml) there are others To move efficiently in vim, don’t try to do anything by pressing keys many times, instead speak to the editor in sentences delete the current word: diw (delete inside word)change current sentence: cis (change inside sentence)change a string inside quotes: ci” (change inside quote)change until next occurrence of ‘foo’: c/foo (change search foo)change everything from here to the letter X: ctXvisually select this paragraph: vap (visual around paragraph)
RTF, HTML and text converter Features Conversion Formats RTF to HTMLRTF to TEXTHTML to RTFHTML to TEXTTEXT to RTFTEXT to HTML Applications converting many documents at a time;active web pages; andconverting output from Microsoft’s Internet Explorer RTF control to HTML. Platforms Windows;Linux command line; andprogramming kit (ActiveX and DLL). Screen shots More screenshots >> Minimum Supported Formatting Bolditalicunderlinecolourleft justifiedcentre justifiedright justifiedjustifiednumbered listbulleted listtablescompatability with all versions of OpenOfficeenglish charactersgerman charactersspanish characters