Update vim config

- Add CoffeeScript Compile vim shortcut
 - Add CoffeeScript snippets
 - Add Python snippets
 - Fix typo
 - Remove deprecated setting
Buddy Sandidge 11 years ago
parent 99bcaa5161
commit a6a8901f19

@ -1,3 +1,19 @@
snippet timeout "timeout" snippet timeout "timeout"
setTimeout(${1:->}, ${2:500}) setTimeout(${1:->}, ${2:500})
endsnippet endsnippet
snippet log "Log" !
console.log ${1:"${2:msg}"}
endsnippet
snippet cl "console.log"
console.log ${1:"${2:msg}"}
endsnippet
snippet def "define"
define [
'${1:path}'
], (
${2:Object}
) ->
endsnippet

@ -1,3 +1,7 @@
snippet map "Map snippet" snippet map "Map snippet"
map(${1:lambda x: x}, ${2:[]}) map(${1:lambda x: x}, ${2:[]})
endsnippet endsnippet
snippet future "Import from future" !b
from __future__ import (division, absolute_import, print_function,
unicode_literals)
endsnippet

@ -44,6 +44,7 @@ map <leader>nt :NERDTreeToggle<CR>
map <leader>ss :setlocal spell!<CR> map <leader>ss :setlocal spell!<CR>
map <leader>ct :TlistToggle<CR> " taglist shortcut map <leader>ct :TlistToggle<CR> " taglist shortcut
map <leader>ts :%s/\s\s*$//g<CR> " trim trailing whitespace map <leader>ts :%s/\s\s*$//g<CR> " trim trailing whitespace
map <leader>cc :CoffeeCompile<CR> " Complie CoffeeScript
if bufwinnr(1) if bufwinnr(1)
map <leader>+ <C-W>< map <leader>+ <C-W><
@ -62,7 +63,7 @@ let NERDTreeDirArrows=1
let g:syntastic_phpcs_disable=1 let g:syntastic_phpcs_disable=1
let g:syntastic_auto_loc_list=1 let g:syntastic_auto_loc_list=1
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]' let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
let g:syntastic_json_checker = "jsonlint" "let g:syntastic_json_checker = "jsonlint"
let g:syntastic_scss_checkers = [] let g:syntastic_scss_checkers = []
let g:syntastic_css_checkers = [] let g:syntastic_css_checkers = []
@ -87,7 +88,7 @@ map <leader>tn :tabNext<cr>
map <leader>tp :tabprevious<cr> map <leader>tp :tabprevious<cr>
map <leader>tf :tabfirst<cr> map <leader>tf :tabfirst<cr>
map <leader>tl :tablast<cr> map <leader>tl :tablast<cr>
map <leaderctm :tabmove map <leader>tm :tabmove
" Tabs " Tabs
set expandtab " expandtab converts tabs to spaces. For tabs, set noexpandtab set expandtab " expandtab converts tabs to spaces. For tabs, set noexpandtab

Loading…
Cancel
Save