Update vim an zsh conf.
This commit is contained in:
parent
83366d4a79
commit
26c1f1f305
@ -22,7 +22,7 @@ call plug#begin('~/.vim/plugged')
|
||||
Plug 'flazz/vim-colorschemes'
|
||||
Plug 'xero/sourcerer.vim'
|
||||
Plug 'romainl/apprentice'
|
||||
Plug 'dracula/vim'
|
||||
Plug 'dracula/vim', { 'as': 'dracula' }
|
||||
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'junegunn/goyo.vim'
|
||||
|
34
vim/vimrc
34
vim/vimrc
@ -1,9 +1,6 @@
|
||||
set nocompatible " be iMproved, required
|
||||
filetype off " required
|
||||
|
||||
" Installing the Plug plugin manager
|
||||
source $HOME/.vim/plug.vim
|
||||
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
@ -31,13 +28,6 @@ set number
|
||||
" no line wrapping
|
||||
set nowrap
|
||||
|
||||
" start NERDTree if no file is pass as arg
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||
|
||||
" close vim if the only window left open is a NERDTree
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
||||
cnoremap w!! w !sudo tee > /dev/null %
|
||||
|
||||
@ -47,6 +37,30 @@ cnoremap w!! w !sudo tee > /dev/null %
|
||||
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""
|
||||
" ____ _ _ _ ____ ___ _ _ ____
|
||||
" | _ \| | | | | |/ ___|_ _| \ | / ___|
|
||||
" | |_) | | | | | | | _ | || \| \___ \
|
||||
" | __/| |__| |_| | |_| || || |\ |___) |
|
||||
" |_| |_____\___/ \____|___|_| \_|____/
|
||||
"
|
||||
"""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
|
||||
" Installing the Plug plugin manager
|
||||
source $HOME/.vim/plug.vim
|
||||
|
||||
|
||||
|
||||
" start NERDTree if no file is pass as arg
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||
|
||||
" close vim if the only window left open is a NERDTree
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" ____ _____ _ _____ _ _ ____ _ ___ _ _ _____
|
||||
" / ___|_ _|/ \|_ _| | | / ___|| | |_ _| \ | | ____|
|
||||
|
@ -50,8 +50,8 @@ hash -d crs="$HOME/Cours"
|
||||
hash -d dev="$HOME/Développement"
|
||||
hash -d dld="$HOME/Téléchargements"
|
||||
hash -d doc="$HOME/Documents"
|
||||
hash -d vid="$HOME/Videos"
|
||||
hash -d dot="$HOME/dotfiles"
|
||||
hash -d vid="$HOME/Vidéos"
|
||||
hash -d dot="$HOME/Dotfiles"
|
||||
|
||||
# Editors
|
||||
alias ec="emacsclient -t"
|
||||
|
Loading…
x
Reference in New Issue
Block a user