From 8c14d2f8498230cd9b85c73f927d9820268ee11f Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Mon, 19 Feb 2018 18:21:27 +0100 Subject: [PATCH] Add settings for java and markdown --- vim/ftplugin/java.vim | 2 ++ vim/ftplugin/markdown.vim | 2 ++ vimrc.symlink | 1 + 3 files changed, 5 insertions(+) create mode 100644 vim/ftplugin/java.vim create mode 100644 vim/ftplugin/markdown.vim diff --git a/vim/ftplugin/java.vim b/vim/ftplugin/java.vim new file mode 100644 index 0000000..8513ee0 --- /dev/null +++ b/vim/ftplugin/java.vim @@ -0,0 +1,2 @@ +nmap i :JCimportsAddMissing:JCimportsRemoveUnused:JCimportsSort +nmap b :!javac % diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim new file mode 100644 index 0000000..45da07f --- /dev/null +++ b/vim/ftplugin/markdown.vim @@ -0,0 +1,2 @@ +" set textwidth for automatic line wrap +set tw=80 diff --git a/vimrc.symlink b/vimrc.symlink index 2f8d64a..5c904b1 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -83,6 +83,7 @@ let g:clang_library_path='/usr/lib/llvm-4.0/lib/libclang-4.0.so.1' " PHP "Plug 'shawncplus/phpcomplete.vim', { 'for': 'php', 'do': 'curl -Ss http://vim-php.com/phpctags/install/phpctags.phar > ~/bin/phpctags && chmod +x ~/bin/phpctags' } Plug 'lvht/phpcd.vim', { 'for': 'php', 'do': 'composer install' } +Plug 'captbaritone/better-indent-support-for-php-with-html', { 'for': 'php' } " Python Plug 'davidhalter/jedi-vim', { 'for': 'python', 'do': 'pip install jedi' }