From 14274e080e02e71ca66eda21ddc87bf95d922f24 Mon Sep 17 00:00:00 2001 From: yan Date: Sun, 22 Jan 2012 18:47:55 -0800 Subject: [PATCH] Added coffeescript and stylus support --- .gitmodules | 6 ++++++ README.md | 2 ++ vim/bundle/kchmck-vim-coffee-script | 1 + vim/bundle/wavded-vim-stylus | 1 + vim/plugin/settings/coffeescript.vim | 1 + vim/plugin/settings/skwp-keymap.vim | 9 +++++++++ 6 files changed, 20 insertions(+) create mode 160000 vim/bundle/kchmck-vim-coffee-script create mode 160000 vim/bundle/wavded-vim-stylus create mode 100644 vim/plugin/settings/coffeescript.vim diff --git a/.gitmodules b/.gitmodules index b099bcd..6b6444d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -199,3 +199,9 @@ [submodule "vim/bundle/kana-vim-textobj-function"] path = vim/bundle/kana-vim-textobj-function url = https://github.com/kana/vim-textobj-function +[submodule "vim/bundle/kchmck-vim-coffee-script"] + path = vim/bundle/kchmck-vim-coffee-script + url = https://github.com/kchmck/vim-coffee-script +[submodule "vim/bundle/wavded-vim-stylus"] + path = vim/bundle/wavded-vim-stylus + url = https://github.com/wavded/vim-stylus diff --git a/README.md b/README.md index 7e39b63..5262103 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,8 @@ Included vim plugins * necomplcache - intelligent and fast complete as you type, and added Command-Space to select a completion (same as Ctrl-N) * snipMate - offers textmate-like snippet expansion + scrooloose-snippets . try hitting TAB after typing a snippet * jasmine.vim - support for jasmine javascript unit testing, including snippets for it, before, etc.. + * vim-coffeescript - support for coffeescript, highlighting + * vim-stylus - support for stylus css language **TextObjects** diff --git a/vim/bundle/kchmck-vim-coffee-script b/vim/bundle/kchmck-vim-coffee-script new file mode 160000 index 0000000..2591fef --- /dev/null +++ b/vim/bundle/kchmck-vim-coffee-script @@ -0,0 +1 @@ +Subproject commit 2591fefbc78ee7448da8da4a0537a531f710c743 diff --git a/vim/bundle/wavded-vim-stylus b/vim/bundle/wavded-vim-stylus new file mode 160000 index 0000000..9f9031f --- /dev/null +++ b/vim/bundle/wavded-vim-stylus @@ -0,0 +1 @@ +Subproject commit 9f9031f13f549c901fdedec384f865d06fb1f82c diff --git a/vim/plugin/settings/coffeescript.vim b/vim/plugin/settings/coffeescript.vim new file mode 100644 index 0000000..ff08d4f --- /dev/null +++ b/vim/plugin/settings/coffeescript.vim @@ -0,0 +1 @@ +au BufWritePost *.coffee silent CoffeeMake! -b | cwindow | redraw! diff --git a/vim/plugin/settings/skwp-keymap.vim b/vim/plugin/settings/skwp-keymap.vim index c28462a..fe1357f 100644 --- a/vim/plugin/settings/skwp-keymap.vim +++ b/vim/plugin/settings/skwp-keymap.vim @@ -48,6 +48,15 @@ nnoremap ; : "Go to last edit location with ,. nnoremap ,. '. +"When typing a string, your quotes auto complete. Move past the quote +"while still in insert mode by hitting Ctrl-a. Example: +" +" type 'foo +" +" the first quote will autoclose so you'll get 'foo' and hitting will +" put the cursor right after the quote +imap wa + " ================== rails.vim " " Open corresponding unittest (or spec), alias for :AV in rails.vim