Skip to content

rmorlang/dot-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIM Configuration

I don't know why anyone else would want to clone this, but if you do:

  • Beware that the setup.sh is written for Ubuntu systems and probably installs things you don't want.
  • My mappings and snippets will probably annoy you.

Setup

First, if you have an existing .vim directory or .vimrc file, back them up. They'll be overwritten by the commands below.

rm -rf ~/.vim
git clone https://github.com/rleemorlang/dot-vim ~/.vim
~/.vim/setup.sh

Plugin Notes

coffee-script

  • CoffeeCompile or CoffeeCompile vert
  • CoffeeWatch or CoffeeWatch vert
  • may want to try setl scrollbind on each buffer
  • CoffeeRun
  • CoffeeLint

commentary

  • gcc to toggle commenting on the current line
  • gcap to comment a paragraph
  • autocmd FileType apache set commentstring=#\ %s
  • ctrl-p to open. once open:
    • ctrl-d for filename only mode
    • ctrl-r for regexp mode
    • ctrl-j/k to navigate
    • ctrl-t/v/x to open in new tab/split
    • ctrl-z to mark multiple, ctrl-o to open
  • hit enter on a selection in visual mode
  • or something like gaip= to align around = for the current paragraph
  • use <c-x> to supply a regular expression
  • use <c-p> to enter "live interactive mode", if using regexes you can hit <c-x> a second time to see the result of the regex
  • prefix a delimiter a number to align around the nth delimiter
  • with - to align around the last delimiter
  • with * to align around all delimiters
  • with -<num> to align around the nth-last delimiter
  • try "-" to align in-line comments
  • ,,u to open
  • ctrl-n when over a word to highlight, again to highlight next
  • ctrl-p to unhighlight
  • ctrl-x to skip

TypeScript syntax highlighting. (See tsuquyomi for language support/magic)

  • c-k to complete the match and/or move to the next stop
  • c-h to list completions
  • s-c-j to move back
  • :UltiSnips to edit the snips for the current filetype
  • ]e or [e to move the current line up/down
  • ]<space> or [<space> to add lines above or below
  • others...