Update vim config
- Add CoffeeScript Compile vim shortcut - Add CoffeeScript snippets - Add Python snippets - Fix typo - Remove deprecated setting
This commit is contained in:
parent
99bcaa5161
commit
a6a8901f19
@ -1,3 +1,19 @@
|
||||
snippet timeout "timeout"
|
||||
setTimeout(${1:->}, ${2:500})
|
||||
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"
|
||||
map(${1:lambda x: x}, ${2:[]})
|
||||
endsnippet
|
||||
snippet future "Import from future" !b
|
||||
from __future__ import (division, absolute_import, print_function,
|
||||
unicode_literals)
|
||||
endsnippet
|
||||
|
||||
5
vimrc
5
vimrc
@ -44,6 +44,7 @@ map <leader>nt :NERDTreeToggle<CR>
|
||||
map <leader>ss :setlocal spell!<CR>
|
||||
map <leader>ct :TlistToggle<CR> " taglist shortcut
|
||||
map <leader>ts :%s/\s\s*$//g<CR> " trim trailing whitespace
|
||||
map <leader>cc :CoffeeCompile<CR> " Complie CoffeeScript
|
||||
|
||||
if bufwinnr(1)
|
||||
map <leader>+ <C-W><
|
||||
@ -62,7 +63,7 @@ let NERDTreeDirArrows=1
|
||||
let g:syntastic_phpcs_disable=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_json_checker = "jsonlint"
|
||||
"let g:syntastic_json_checker = "jsonlint"
|
||||
let g:syntastic_scss_checkers = []
|
||||
let g:syntastic_css_checkers = []
|
||||
|
||||
@ -87,7 +88,7 @@ map <leader>tn :tabNext<cr>
|
||||
map <leader>tp :tabprevious<cr>
|
||||
map <leader>tf :tabfirst<cr>
|
||||
map <leader>tl :tablast<cr>
|
||||
map <leaderctm :tabmove
|
||||
map <leader>tm :tabmove
|
||||
|
||||
" Tabs
|
||||
set expandtab " expandtab converts tabs to spaces. For tabs, set noexpandtab
|
||||
|
||||
Loading…
Reference in New Issue
Block a user