Autoload language configuration from ftplugin

This commit is contained in:
Vladan Popovic 2019-08-25 19:16:48 +02:00
parent 6421a095f1
commit ddeb101b0f
5 changed files with 23 additions and 8 deletions

12
.vim/ftplugin/python.vim Normal file
View file

@ -0,0 +1,12 @@
" Enable folding on indent
set foldmethod=indent
set foldlevel=99
au BufNewFile,BufRead *.py
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix

5
.vim/ftplugin/rust.vim Normal file
View file

@ -0,0 +1,5 @@
nmap gd <Plug>(rust-def)
nmap gs <Plug>(rust-def-split)
nmap gx <Plug>(rust-def-vertical)
nmap <leader>gd <Plug>(rust-doc)
set number