From 26c1f1f305bd8c9d1c19f20f99fa19a455202cf9 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 2 Jul 2018 23:03:41 +0200 Subject: [PATCH] Update vim an zsh conf. --- vim/vim/plug.vim | 2 +- vim/vimrc | 34 ++++++++++++++++++++++++---------- zsh/custom/aliases.zsh | 4 ++-- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/vim/vim/plug.vim b/vim/vim/plug.vim index e7453b7..251d989 100644 --- a/vim/vim/plug.vim +++ b/vim/vim/plug.vim @@ -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' diff --git a/vim/vimrc b/vim/vimrc index f124564..95a7d8c 100644 --- a/vim/vimrc +++ b/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 + + + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""" " ____ _____ _ _____ _ _ ____ _ ___ _ _ _____ " / ___|_ _|/ \|_ _| | | / ___|| | |_ _| \ | | ____| diff --git a/zsh/custom/aliases.zsh b/zsh/custom/aliases.zsh index 53786cd..ae75485 100644 --- a/zsh/custom/aliases.zsh +++ b/zsh/custom/aliases.zsh @@ -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"