Skip to content

Commit

Permalink
New version release (#57)
Browse files Browse the repository at this point in the history
* [fix] Use the correct line length in black: respect the ``textwidth`` set.
* Set text width to 120
* SQL formatting file: Uppercase the SQL-words.
* Remove isort from Python auto-fixing file
* Makefile: fix installation for syntax files
* Initial support for Cython (Fixes#55)
* no wrap for Python files
* Larger syntax highlighting
* Also include *.pxi files as cython types
* Set soft-warpping=2 for YAML files
  • Loading branch information
rmariano authored Dec 1, 2019
1 parent eadc6da commit 39de481
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ set autowriteall
set hidden

set nomodeline
set nomodelineexpr


"" Where to open new windows
set splitright
Expand All @@ -58,7 +58,7 @@ set scrolloff=10
"" Performance improvements
set lazyredraw
set ttyfast
set synmaxcol=120
set synmaxcol=300

"" Do not ring errors
set noerrorbells
Expand Down Expand Up @@ -176,14 +176,24 @@ set statusline=%!SetCustomStatusLine('')
map <F2> :call ToggleLangCheck()<CR>
set pastetoggle=<F4>

"" Other configurations

""" Python: Highlight everything
let g:python_highlight_all = 1
""" Remove trailing white spaces upon saving
autocmd BufWritePre * :%s/\s\+$//e
nnoremap <leader>e :set number!<CR>
""" Configurations per file type
autocmd FileType xml map <F3> :call FormatXML()<CR>
"" Remove trailing white spaces upon saving
autocmd BufWritePre * :%s/\s\+$//e
"" Python: Highlight everything
let g:python_highlight_all = 1
augroup yaml_ft
au!
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2
augroup END

"" Set filetypy=cython according to the extension
augroup cython_ft
au!
autocmd BufNewFile,BufRead *.{pyx,pxd} set ft=cython
autocmd BufNewFile,BufRead *.{pyx,pxd,pxi} set filetype=cython
augroup END
2 changes: 2 additions & 0 deletions after/ftplugin/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ function! AutofixPy()
endfunction

map <F3> :call AutofixPy()<CR>
"" Do not automatically wrap code to the max length
setlocal nowrap

0 comments on commit 39de481

Please sign in to comment.