mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Reorganize filetype plugins.
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,5 +1,5 @@
|
|||||||
[submodule "vim/bundle/molokai"]
|
[submodule "vim/bundle/molokai"]
|
||||||
path = vim/.vim/pack/bundle/start/molokai
|
path = vim/.vim/pack/bundle/opt/molokai
|
||||||
url = https://github.com/tomasr/molokai
|
url = https://github.com/tomasr/molokai
|
||||||
[submodule "vim/bundle/vim-less"]
|
[submodule "vim/bundle/vim-less"]
|
||||||
path = vim/.vim/pack/bundle/start/vim-less
|
path = vim/.vim/pack/bundle/start/vim-less
|
||||||
|
|||||||
4
vim/.vim/after/ftplugin/cpp.vim
Normal file
4
vim/.vim/after/ftplugin/cpp.vim
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
setlocal expandtab
|
||||||
|
|
||||||
|
" intelligent comments
|
||||||
|
setlocal comments=sl:/*,mb:\ *,elx:\ */
|
||||||
1
vim/.vim/after/ftplugin/haskell.vim
Normal file
1
vim/.vim/after/ftplugin/haskell.vim
Normal file
@@ -0,0 +1 @@
|
|||||||
|
setlocal expandtab
|
||||||
1
vim/.vim/after/ftplugin/python.vim
Normal file
1
vim/.vim/after/ftplugin/python.vim
Normal file
@@ -0,0 +1 @@
|
|||||||
|
setlocal expandtab
|
||||||
2
vim/.vim/after/ftplugin/yaml.vim
Normal file
2
vim/.vim/after/ftplugin/yaml.vim
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
setlocal expandtab
|
||||||
|
setlocal tabstop=2 shiftwidth=2 softtabstop=2
|
||||||
@@ -33,7 +33,7 @@ map <F7> :call SetExecutable()<CR>
|
|||||||
imap <F7> <Esc>:call SetExecutable<CR>
|
imap <F7> <Esc>:call SetExecutable<CR>
|
||||||
|
|
||||||
" Paste using Ctrl+V in insert mode.
|
" Paste using Ctrl+V in insert mode.
|
||||||
inoremap <C-v> <C-o>"+P<C-o>=']
|
inoremap <C-v> <C-o>"+p
|
||||||
|
|
||||||
"language specific syntastic configurtion
|
"language specific syntastic configurtion
|
||||||
"syntastic configuration
|
"syntastic configuration
|
||||||
@@ -45,10 +45,6 @@ let g:syntastic_always_populate_loc_list = 1
|
|||||||
let g:syntastic_auto_loc_list = 1
|
let g:syntastic_auto_loc_list = 1
|
||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = 0
|
||||||
|
|
||||||
autocmd Filetype python setlocal expandtab
|
|
||||||
autocmd Filetype markdown setlocal textwidth=72 expandtab
|
|
||||||
autocmd Filetype haskell setlocal expandtab
|
|
||||||
|
|
||||||
" Remove trailing whitespace, always.
|
" Remove trailing whitespace, always.
|
||||||
fun! StripTrailingWhitespace()
|
fun! StripTrailingWhitespace()
|
||||||
" Skip files where the type is trailing space sensitive.
|
" Skip files where the type is trailing space sensitive.
|
||||||
|
|||||||
Reference in New Issue
Block a user