inital checkin using existing vim and preparing for use of bash_magic
This commit is contained in:
2
vim/bundle/custom/ftdetect/ctp.vim
Normal file
2
vim/bundle/custom/ftdetect/ctp.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" custom rule for cake template files
|
||||
au BufNewFile,BufRead *.ctp setfiletype php
|
||||
10
vim/bundle/custom/ftplugin/coffee.vim
Normal file
10
vim/bundle/custom/ftplugin/coffee.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
" modify the indenting
|
||||
set expandtab " insert spaces instead of tabs
|
||||
set tabstop=2 " use X spaces when tab is pressed
|
||||
set shiftwidth=2 " shifttabs are also X spaces
|
||||
|
||||
" vim-coffee-sript settings
|
||||
" TODO: add check for vim-coffee-script
|
||||
vmap <leader>v <esc>:'<,'>:CoffeeCompile vert<CR>
|
||||
map <leader>v :CoffeeCompile vert<CR>
|
||||
map <leader>c :silent CoffeeMake <CR>
|
||||
4
vim/bundle/custom/ftplugin/jade.vim
Normal file
4
vim/bundle/custom/ftplugin/jade.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
" modify the indenting
|
||||
set expandtab " insert spaces instead of tabs
|
||||
set tabstop=2 " use X spaces when tab is pressed
|
||||
set shiftwidth=2 " shifttabs are also X spaces
|
||||
12
vim/bundle/custom/ftplugin/javascript.vim
Normal file
12
vim/bundle/custom/ftplugin/javascript.vim
Normal file
@@ -0,0 +1,12 @@
|
||||
" disable default indent rules
|
||||
"let b:did_indent = 1
|
||||
|
||||
" disable indenting on the fly
|
||||
nnoremap <F8> :setl noai nosi nocin indentexpr= indentkeys=
|
||||
" enable indenting on the fly
|
||||
nnoremap <F7> :setl ai si cin indentexpr= indentkeys=0{,0},:,0#,!^F,o,O,e
|
||||
|
||||
" modify the indenting
|
||||
"set expandtab " insert spaces instead of tabs
|
||||
set tabstop=2 " use X spaces when tab is pressed
|
||||
set shiftwidth=2 " shifttabs are also X spaces
|
||||
8
vim/bundle/custom/ftplugin/php.vim
Normal file
8
vim/bundle/custom/ftplugin/php.vim
Normal file
@@ -0,0 +1,8 @@
|
||||
" disable indenting on the fly
|
||||
nnoremap <F8> :setl indentexpr= indentkeys=
|
||||
" enable indenting on the fly
|
||||
nnoremap <F7> :setl indentexpr=GetPhpIndent() indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
|
||||
|
||||
" Folding
|
||||
"let php_folding=1
|
||||
let g:DisableAutoPHPFolding = 1
|
||||
Reference in New Issue
Block a user