|
|
@ -9,19 +9,29 @@ nnoremap - :Ex<CR> |
|
|
|
|
|
|
|
|
|
|
|
" Settings for all files {{{ |
|
|
|
" Settings for all files {{{ |
|
|
|
set cursorline " highlight the line in which the cursor is |
|
|
|
set cursorline " highlight the line in which the cursor is |
|
|
|
set foldmethod=marker " folding will use markers |
|
|
|
set foldmethod=marker " folding will use markers |
|
|
|
set nowrap " instead of wrapping the text to the next line, scroll left and right |
|
|
|
set nowrap " instead of wrapping the text to the next line, scroll left and right |
|
|
|
|
|
|
|
set laststatus=2 " Always display the status line |
|
|
|
|
|
|
|
set showtabline=2 " Always display the tab bar |
|
|
|
" }}} |
|
|
|
" }}} |
|
|
|
|
|
|
|
|
|
|
|
" Vim files {{{ |
|
|
|
" Plugin configuration {{{ |
|
|
|
|
|
|
|
" Airline {{{{ |
|
|
|
|
|
|
|
let g:airline#extensions#tabline#formatter = 'unique_tail' |
|
|
|
|
|
|
|
let g:airline_theme='minimalist' |
|
|
|
|
|
|
|
" }}}} |
|
|
|
|
|
|
|
" }}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Filetype specific configurations {{{ |
|
|
|
|
|
|
|
" Vim files {{{{ |
|
|
|
augroup vim |
|
|
|
augroup vim |
|
|
|
au FileType vim setlocal noexpandtab " use real tabs |
|
|
|
au FileType vim setlocal noexpandtab " use real tabs |
|
|
|
au FileType vim setlocal tabstop=4 " display tabs as 4 spaces |
|
|
|
au FileType vim setlocal tabstop=4 " display tabs as 4 spaces |
|
|
|
au FileType vim setlocal shiftwidth=4 " Use 4 spaces when auto-indenting |
|
|
|
au FileType vim setlocal shiftwidth=4 " Use 4 spaces when auto-indenting |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}} |
|
|
|
" }}}} |
|
|
|
|
|
|
|
|
|
|
|
" Python {{{ |
|
|
|
" Python {{{{ |
|
|
|
augroup python |
|
|
|
augroup python |
|
|
|
au FileType python setlocal number " show line numbers |
|
|
|
au FileType python setlocal number " show line numbers |
|
|
|
au FileType python setlocal expandtab " use spaces instead of tabs |
|
|
|
au FileType python setlocal expandtab " use spaces instead of tabs |
|
|
@ -34,19 +44,24 @@ augroup python |
|
|
|
" Shortcut to add pylint disables |
|
|
|
" Shortcut to add pylint disables |
|
|
|
au FileType python iab pylint # pylint: disable |
|
|
|
au FileType python iab pylint # pylint: disable |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}} |
|
|
|
" }}}} |
|
|
|
|
|
|
|
|
|
|
|
" CSV files {{{ |
|
|
|
" CSV files {{{{ |
|
|
|
augroup csv |
|
|
|
augroup csv |
|
|
|
au FileType csv setlocal list " Display special characters, like tabs (for TSV files) |
|
|
|
au FileType csv setlocal list " Display special characters, like tabs (for TSV files) |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}} |
|
|
|
" }}}} |
|
|
|
|
|
|
|
|
|
|
|
" Rust {{{ |
|
|
|
" Rust {{{{ |
|
|
|
let g:rustfmt_autosave = 1 |
|
|
|
let g:rustfmt_autosave = 1 " Apply `rustfmt` when saving the file. |
|
|
|
" }}} |
|
|
|
" Because this is related to |
|
|
|
|
|
|
|
" the syntax file and not |
|
|
|
|
|
|
|
" something on the buffer |
|
|
|
|
|
|
|
" itself, we can set it |
|
|
|
|
|
|
|
" globally. |
|
|
|
|
|
|
|
" }}}} |
|
|
|
|
|
|
|
|
|
|
|
" Markdown {{{ |
|
|
|
" Markdown {{{{ |
|
|
|
augroup markdown |
|
|
|
augroup markdown |
|
|
|
au FileType markdown setlocal iskeyword+=: " this is kinda of a "hack" to make abbr accept ":" in them |
|
|
|
au FileType markdown setlocal iskeyword+=: " this is kinda of a "hack" to make abbr accept ":" in them |
|
|
|
" This is a long abbreviation, but: |
|
|
|
" This is a long abbreviation, but: |
|
|
@ -63,12 +78,12 @@ augroup markdown |
|
|
|
au FileType markdown setlocal textwidth=79 " max line size |
|
|
|
au FileType markdown setlocal textwidth=79 " max line size |
|
|
|
au FileType markdown setlocal expandtab " use spaces instead of tabs |
|
|
|
au FileType markdown setlocal expandtab " use spaces instead of tabs |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}} |
|
|
|
" }}}} |
|
|
|
|
|
|
|
|
|
|
|
" Shell {{{ |
|
|
|
" Shell {{{{ |
|
|
|
augroup shell |
|
|
|
augroup shell |
|
|
|
au FileType sh setlocal tabstop=4 " display tabs as 4 spaces |
|
|
|
au FileType sh setlocal tabstop=4 " display tabs as 4 spaces |
|
|
|
au FileType sh setlocal shiftwidth=4 " number of spaces to use for auto-indentation |
|
|
|
au FileType sh setlocal shiftwidth=4 " number of spaces to use for auto-indentation |
|
|
|
au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab |
|
|
|
au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}} |
|
|
|
" }}}} |
|
|
|