Autoload language configuration from ftplugin
This commit is contained in:
parent
6421a095f1
commit
ddeb101b0f
5 changed files with 23 additions and 8 deletions
12
.vim/ftplugin/python.vim
Normal file
12
.vim/ftplugin/python.vim
Normal 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
5
.vim/ftplugin/rust.vim
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue