Shortcuts for indentation
This commit is contained in:
parent
b27732df8c
commit
734cd6043a
2 changed files with 33 additions and 10 deletions
|
@ -23,6 +23,7 @@
|
|||
"F12 : exécution du script python
|
||||
"\date met la date du jour
|
||||
"
|
||||
" Meta-x: set indent to x spaces and expand tab (x is digit), 0 for tab.
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"Diverses options
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
@ -99,22 +100,39 @@ silent! call pathogen#runtime_append_all_bundles()
|
|||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"Mapping pour l'activation de l'explorateur
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
nnoremap <silent> <F2> :set list<CR>
|
||||
nnoremap <silent> <F3> :set nolist<CR>
|
||||
nmap <silent> <F2> :set list<CR>
|
||||
nmap <silent> <F3> :set nolist<CR>
|
||||
imap <silent> <F2> <Esc>:set list<CR>a
|
||||
imap <silent> <F3> <Esc>:set nolist<CR>a
|
||||
|
||||
nnoremap <silent> <F5> :let @/=''<CR>
|
||||
nmap <silent> <F5> :let @/=''<CR>
|
||||
imap <silent> <F5> <Esc>:let @/=''<CR>a
|
||||
|
||||
nnoremap <silent> <F8> :TagbarToggle<CR>
|
||||
nmap <silent> <F8> :TagbarToggle<CR>
|
||||
imap <silent> <F8> <Esc>:TagbarToggle<CR>a
|
||||
|
||||
nnoremap <silent> <F9> zR
|
||||
nnoremap <silent> <F10> :set expandtab<CR>
|
||||
nnoremap <silent> <F11> :set noexpandtab<CR>
|
||||
imap <silent> <F10> <Esc>:set expandtab<CR>
|
||||
imap <silent> <F11> <Esc>:set noexpandtab<CR>
|
||||
nmap <silent> <F9> zR
|
||||
|
||||
nmap <silent> <M-1> :set shiftwidth=1 softtabstop=1 tabstop=1 expandtab<CR>
|
||||
imap <silent> <M-1> <Esc> :set shiftwidth=1 softtabstop=1 tabstop=1 expandtab<CR>a
|
||||
nmap <silent> <M-2> :set shiftwidth=2 softtabstop=2 tabstop=2 expandtab<CR>
|
||||
imap <silent> <M-2> <Esc> :set shiftwidth=2 softtabstop=2 tabstop=2 expandtab<CR>a
|
||||
nmap <silent> <M-3> :set shiftwidth=3 softtabstop=3 tabstop=3 expandtab<CR>
|
||||
imap <silent> <M-3> <Esc> :set shiftwidth=3 softtabstop=3 tabstop=3 expandtab<CR>a
|
||||
nmap <silent> <M-4> :set shiftwidth=4 softtabstop=4 tabstop=4 expandtab<CR>
|
||||
imap <silent> <M-4> <Esc> :set shiftwidth=4 softtabstop=4 tabstop=4 expandtab<CR>a
|
||||
nmap <silent> <M-5> :set shiftwidth=5 softtabstop=5 tabstop=5 expandtab<CR>
|
||||
imap <silent> <M-5> <Esc> :set shiftwidth=5 softtabstop=5 tabstop=5 expandtab<CR>a
|
||||
nmap <silent> <M-6> :set shiftwidth=6 softtabstop=6 tabstop=6 expandtab<CR>
|
||||
imap <silent> <M-6> <Esc> :set shiftwidth=6 softtabstop=6 tabstop=6 expandtab<CR>a
|
||||
nmap <silent> <M-7> :set shiftwidth=7 softtabstop=7 tabstop=7 expandtab<CR>
|
||||
imap <silent> <M-7> <Esc> :set shiftwidth=7 softtabstop=7 tabstop=7 expandtab<CR>a
|
||||
nmap <silent> <M-8> :set shiftwidth=8 softtabstop=8 tabstop=8 expandtab<CR>
|
||||
imap <silent> <M-8> <Esc> :set shiftwidth=8 softtabstop=8 tabstop=8 expandtab<CR>a
|
||||
nmap <silent> <M-9> :set shiftwidth=9 softtabstop=9 tabstop=9 expandtab<CR>
|
||||
imap <silent> <M-9> <Esc> :set shiftwidth=9 softtabstop=9 tabstop=9 expandtab<CR>a
|
||||
nmap <silent> <M-0> :set noexpandtab softtabstop=0<CR>
|
||||
imap <silent> <M-0> <Esc> :set noexpandtab softtabstop=0<CR>a
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"Sauvegarde automatique des vues, utiles pour les
|
||||
|
@ -149,7 +167,8 @@ let python_slow_sync=1
|
|||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"Mapping pour se déplacer dans les tab
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
map <S-tab> gt
|
||||
map <tab> gt
|
||||
map <S-tab> gT
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -173,3 +173,7 @@ git clone https://github.com/edkolev/tmuxline.vim ~/.vim/bundle/tmuxline
|
|||
# Install promptline generator
|
||||
rm -rf ~/.vim/bundle/promptline
|
||||
git clone https://github.com/edkolev/promptline.vim ~/.vim/bundle/promptline
|
||||
|
||||
# Install Alt mappings
|
||||
rm -rf ~/.vim/bundle/vim-alt-mappings
|
||||
git clone https://github.com/vim-utils/vim-alt-mappings.git ~/.vim/bundle/vim-alt-mappings
|
||||
|
|
Loading…
Reference in a new issue