Change some vim parameters
This commit is contained in:
parent
64e20f45e0
commit
5f33fccc7e
@ -34,6 +34,16 @@ map <silent> <leader>E :e suda://%<cr>
|
|||||||
" Save a current file with sudo
|
" Save a current file with sudo
|
||||||
map <silent> <leader>W :w suda://%<cr>
|
map <silent> <leader>W :w suda://%<cr>
|
||||||
|
|
||||||
|
" Comment the target of a motion
|
||||||
|
map <silent> <leader>/ :Commentary<cr>
|
||||||
|
|
||||||
|
" Indent line
|
||||||
|
map <silent> <C-]> >>
|
||||||
|
map <silent> <C-[> <<
|
||||||
|
|
||||||
|
" (Re|Un)do
|
||||||
|
map <silent> <C-u> uu
|
||||||
|
|
||||||
" -----
|
" -----
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
@ -51,11 +61,9 @@ command! -bang -nargs=? -complete=dir Files
|
|||||||
\ )
|
\ )
|
||||||
map <C-w> :echom 'Close buffer' <bar> :call BufClose()<cr>
|
map <C-w> :echom 'Close buffer' <bar> :call BufClose()<cr>
|
||||||
map <C-o> :e
|
map <C-o> :e
|
||||||
map <C-n> :enew<cr>
|
map <C-n> :Startify<cr>
|
||||||
map <C-]> :bn<cr>
|
map <C-PageDown> :bn<cr>
|
||||||
map <C-[> :bp<cr>
|
map <C-PageUp> :bp<cr>
|
||||||
imap <C-]> :bn<cr>
|
|
||||||
imap <C-[> :bp<cr>
|
|
||||||
|
|
||||||
" -----
|
" -----
|
||||||
" }}}
|
" }}}
|
||||||
@ -285,6 +293,8 @@ map <leader>o :call GotoFile("")<cr>
|
|||||||
|
|
||||||
map <leader>' ciw''<esc>P
|
map <leader>' ciw''<esc>P
|
||||||
map <leader>" c""<esc>P
|
map <leader>" c""<esc>P
|
||||||
|
map <leader>[ c[]<esc>P
|
||||||
|
map <leader>{ c{}<esc>P
|
||||||
|
|
||||||
" Rewrap paragraph using <S-q>
|
" Rewrap paragraph using <S-q>
|
||||||
map <silent> <S-q> {gq}<Bar>:echo "Rewrapped paragraph"<CR>
|
map <silent> <S-q> {gq}<Bar>:echo "Rewrapped paragraph"<CR>
|
||||||
|
@ -586,9 +586,10 @@ let g:spaceline_seperate_style = 'arrow-fade'
|
|||||||
let g:startify_custom_header = 'startify#center(startify#fortune#cowsay())'
|
let g:startify_custom_header = 'startify#center(startify#fortune#cowsay())'
|
||||||
let g:startify_session_dir = '~/.vim/session'
|
let g:startify_session_dir = '~/.vim/session'
|
||||||
let g:startify_lists = [
|
let g:startify_lists = [
|
||||||
\ { 'type': 'files', 'header': ['MRU' . getcwd()] },
|
\ { 'type': 'commands', 'header': ['FICHIER'] },
|
||||||
|
\ { 'type': 'files', 'header': ['RÉCENTS'] },
|
||||||
|
\ { 'type': 'bookmarks', 'header': ['SIGNETS'] },
|
||||||
\ { 'type': 'sessions', 'header': ['SESSIONS'] },
|
\ { 'type': 'sessions', 'header': ['SESSIONS'] },
|
||||||
\ { 'type': 'bookmarks', 'header': ['BOOKMARKS'] },
|
|
||||||
\ ]
|
\ ]
|
||||||
let g:startify_enable_special = 0
|
let g:startify_enable_special = 0
|
||||||
let g:startify_files_number = 10
|
let g:startify_files_number = 10
|
||||||
@ -600,6 +601,10 @@ let g:startify_bookmarks = [
|
|||||||
\ '~/.vim/functions.vim',
|
\ '~/.vim/functions.vim',
|
||||||
\ '~/Projets/latex/latex-homework'
|
\ '~/Projets/latex/latex-homework'
|
||||||
\ ]
|
\ ]
|
||||||
|
let g:startify_commands = [
|
||||||
|
\ ['Nouveau', 'enew'],
|
||||||
|
\ ['Aide', 'help reference'],
|
||||||
|
\ ]
|
||||||
|
|
||||||
" -----
|
" -----
|
||||||
" }}}
|
" }}}
|
||||||
|
Loading…
Reference in New Issue
Block a user