diff options
author | Juan J. Martinez <jjm@usebox.net> | 2018-03-16 08:55:06 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:27 +0100 |
commit | b3d6bb5b58d9fd840b8bd5ac5855a0ed8b1d4693 (patch) | |
tree | b8cde45b55da9104954ed638b1d5187f5f223b1d /vimrc | |
download | dotnvim-b3d6bb5b58d9fd840b8bd5ac5855a0ed8b1d4693.tar.gz dotnvim-b3d6bb5b58d9fd840b8bd5ac5855a0ed8b1d4693.zip |
Initial import
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 73 |
1 files changed, 73 insertions, 0 deletions
@@ -0,0 +1,73 @@ +" for long lines +set wrap + +" tab position +set tabstop=4 + +set autoindent + +" autotab +set shiftwidth=4 + +" syntax highlighting +syntax on + +" try to detect filetypes +filetype on + +" enable loading indent file for filetype +filetype plugin indent on + +" line numbers +set number + +" highlight end of line whitespace +highlight WhitespaceEOL ctermbg=red guibg=red +match WhitespaceEOL /\s\+$/ + +" spellcheck please! +setlocal spell spelllang=en_gb +hi clear SpellBad +hi SpellBad term=standout ctermfg=1 cterm=bold gui=undercurl guisp=Red + +" extra python +"" wrapping and tabs +autocmd FileType python set ts=4 sw=4 et sta sts=4 ai +"" smart indenting +autocmd FileType python let python_highlight_all = 1 +"" extra highlighting +autocmd FileType python set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class + +let g:syntastic_python_checkers = ['pyflakes'] +let g:syntastic_go_checkers = ['go', 'golint', 'govet', 'errcheck'] + +let g:syntastic_scala_scalastyle_jar = '/home/juanmartinez/scala-local/lib/scalastyle_2.12-1.0.0-batch.jar' +let g:syntastic_scala_scalastyle_config_file = '/home/juanmartinez/scala-local/lib/scalastyle_config.xml' +let g:syntastic_scala_checkers = ['fsc', 'scalastyle'] + +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 0 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 +let g:syntastic_loc_list_height = 5 + +" scala +let g:scala_scaladoc_indent = 1 +noremap <C-F5> :Autoformat<CR> +let g:formatdef_scalariform = '"java -jar /home/juanmartinez/scalalocal/lib/scalariform.jar -f -q +compactControlReadability +alignParameters +alignSingleLineCaseStatements +doubleIndentConstructorArguments +rewriteArrowSymbols +preserveSpaceBeforeArguments --stdin --stdout"' +let g:formatters_scala = ['scalariform'] + +" use local tags if found +set tags=./.tags; +let g:easytags_dynamic_files = 1 + +" build tags +map <C-F12> :!ctags -R -f ./.tags .<CR> + +call pathogen#infect() + +" looks nice; apparently needs to go after pathogen +set background=dark +colorscheme base16-google-dark +let base16colorspace=256 " Access colors present in 256 colorspace + |