1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Move .vim{,rc} to .config

This commit is contained in:
Joe Groocock 2017-11-23 19:15:43 +00:00
parent f556507fab
commit 004875f664
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
8 changed files with 26 additions and 6 deletions

View File

@ -1,5 +1,7 @@
imgur_icon_path="$HOME/.config/imgur-screenshot/imgur.ico" imgur_icon_path="$HOME/.config/imgur-screenshot/imgur.ico"
login="true" imgur_acct_key=""
imgur_secret=""
login="false"
log_file="$HOME/.config/imgur-screenshot/imgur-screenshot.log" log_file="$HOME/.config/imgur-screenshot/imgur-screenshot.log"
credentials_file="$HOME/.config/imgur-screenshot/credentials.conf" credentials_file="$HOME/.config/imgur-screenshot/credentials.conf"
file_name_format="scrot-%Y-%m-%d--%H:%M:%S.png" # when using scrot, must end with .png! file_name_format="scrot-%Y-%m-%d--%H:%M:%S.png" # when using scrot, must end with .png!

6
.config/vim/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/bundle/
/spell/
/swapfiles/
/viminfo
/vim-latex
/.netrwhist

View File

@ -1,5 +1,10 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
" Reconfigure Vim to be clean!
set rtp+=~/.config/vim
set directory=.,~/.config/vim
set viminfo+=n~/.config/vim/viminfo
syntax enable syntax enable
filetype plugin on filetype plugin on
set tabstop=4 set tabstop=4
@ -15,7 +20,8 @@ set laststatus=2
set mouse=nicr set mouse=nicr
set encoding=utf-8 set encoding=utf-8
set background=dark set background=dark
set directory=$HOME/.vim/swapfiles// set directory=$HOME/.config/vim/swapfiles//
set omnifunc=syntaxcomplete#Complete
set title set title
set clipboard=unnamed set clipboard=unnamed
@ -46,8 +52,9 @@ set list
set listchars=eol:$,space:.,tab:>-,trail:~,extends:>,precedes:< set listchars=eol:$,space:.,tab:>-,trail:~,extends:>,precedes:<
" set the runtime path to include Vundle and initialize " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.config/vim/bundle/Vundle.vim
call vundle#begin() call vundle#begin()
call vundle#rc('~/.config/vim/bundle')
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe' Plugin 'Valloric/YouCompleteMe'

View File

@ -2,11 +2,16 @@ export LC_ALL=en_GB.UTF-8
export LANG=en_GB.UTF-8 export LANG=en_GB.UTF-8
export LC_NUMERIC=en_GB export LC_NUMERIC=en_GB
export CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}" export CONFIG_DIR="$HOME/.config"
export DOTFILES=$CONFIG_DIR/dotfiles export XDG_CONFIG_HOME="$CONFIG_DIR"
export DOTFILES="$CONFIG_DIR/dotfiles"
export PATH="${PATH}:$DOTFILES/scripts" export PATH="${PATH}:$DOTFILES/scripts"
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
# Allow Vim to load from ~/.config/vim
export MYVIMRC="$CONFIG_DIR/vim/vimrc"
export VIMINIT=":so $MYVIMRC"
export EDITOR="vim" export EDITOR="vim"
export VISUAL="vim" export VISUAL="vim"
export LESS="-RNI" export LESS="-RNI"

View File

@ -247,7 +247,7 @@ alias zp=zpool
# General Aliases # General Aliases
alias ssha='eval `ssh-agent` ; ssh-add' alias ssha='eval `ssh-agent` ; ssh-add'
alias aliases="$EDITOR $DOTFILES/aliases ; exec zsh" alias aliases="$EDITOR $DOTFILES/aliases ; exec zsh"
alias vimrc="$EDITOR ~/.vimrc" alias vimrc="$EDITOR $MYVIMRC"
alias zshrc="$EDITOR ~/.zshrc ; exec zsh" alias zshrc="$EDITOR ~/.zshrc ; exec zsh"
alias xinitrc="$EDITOR ~/.xinitrc" alias xinitrc="$EDITOR ~/.xinitrc"
alias xresources="$EDITOR ~/.Xresources ; xrdb merge ~/.Xresources" alias xresources="$EDITOR ~/.Xresources ; xrdb merge ~/.Xresources"