mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 15:07:23 +01:00
remove duplicate mapping
This commit is contained in:
12
vim/.vimrc
12
vim/.vimrc
@@ -240,12 +240,7 @@ let g:sessions_dir = '~/.vim/sessions'
|
|||||||
exec 'nnoremap <Leader>ss :mks! ' . g:sessions_dir . '/*.vim<C-D><BS><BS><BS><BS><BS>'
|
exec 'nnoremap <Leader>ss :mks! ' . g:sessions_dir . '/*.vim<C-D><BS><BS><BS><BS><BS>'
|
||||||
exec 'nnoremap <Leader>sr :so ' . g:sessions_dir. '/*.vim<C-D><BS><BS><BS><BS><BS>'
|
exec 'nnoremap <Leader>sr :so ' . g:sessions_dir. '/*.vim<C-D><BS><BS><BS><BS><BS>'
|
||||||
|
|
||||||
"" session management
|
"" fast editing of config
|
||||||
let g:sessions_dir = '~/.vim/sessions'
|
|
||||||
exec 'nnoremap <Leader>ss :mks! ' . g:sessions_dir . '/*.vim<C-D><BS><BS><BS><BS><BS>'
|
|
||||||
exec 'nnoremap <Leader>sr :so ' . g:sessions_dir. '/*.vim<C-D><BS><BS><BS><BS><BS>'
|
|
||||||
|
|
||||||
"" fast editing of the .vimrc
|
|
||||||
nnoremap <silent> <leader>ev :e $MYVIMRC<cr>
|
nnoremap <silent> <leader>ev :e $MYVIMRC<cr>
|
||||||
|
|
||||||
"" cheatsheet
|
"" cheatsheet
|
||||||
@@ -282,12 +277,12 @@ augroup END
|
|||||||
"" txt, mail, tex
|
"" txt, mail, tex
|
||||||
augroup text
|
augroup text
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType text,markdown,mail,tex set wrap wm=2 nocindent spell textwidth=79 colorcolumn=80
|
autocmd FileType text,markdown,mail,tex set wrap wm=2 nocindent spell textwidth=79
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup markdown
|
augroup markdown
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType markdown set wrap wm=2 nocindent spell textwidth=79 colorcolumn=80
|
autocmd FileType markdown set wrap wm=2 nocindent spell textwidth=79
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
"" Web
|
"" Web
|
||||||
@@ -315,6 +310,7 @@ endfunction
|
|||||||
" Reloading vim
|
" Reloading vim
|
||||||
augroup VimReload
|
augroup VimReload
|
||||||
autocmd!
|
autocmd!
|
||||||
|
autocmd BufRead $MYVIMRC :lcd fnamemodify(resolve($MYVIMRC), ':h:p')
|
||||||
autocmd BufWritePost $MYVIMRC source $MYVIMRC | call LightlineReload()
|
autocmd BufWritePost $MYVIMRC source $MYVIMRC | call LightlineReload()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user