Update configurations

- Modified a few settings in Tmux
- Changed how the clocks look on the status bar

- Removed Vundle, using vim-plug instead
- Moved all plug-in related configuration to vimrc.bundles
This commit is contained in:
Bill Niblock 2015-11-22 21:14:11 -05:00
parent fc95ad0c94
commit 2652ddcb9f
5 changed files with 84 additions and 64 deletions

View file

@ -8,9 +8,9 @@ buffTime="$(TZ=America/New_York date +%R)"
utcTime="$(date -u +%R)" utcTime="$(date -u +%R)"
bangTime="$(TZ=Asia/Kolkata date +%R)" bangTime="$(TZ=Asia/Kolkata date +%R)"
caliForm="#[fg=red][ $caliTime ]" caliForm="#[fg=red]<][ $caliTime ] "
buffForm="#[fg=green][ $buffTime ]" buffForm="#[fg=green]<][ $buffTime ][> "
utcForm="#[fg=blue][ $utcTime ]" utcForm="#[fg=blue][ $utcTime ][> "
bangForm="#[fg=magenta][ $bangTime ]" bangForm="#[fg=magenta][ $bangTime ][>>"
echo $caliForm$buffForm$utcForm$bangForm echo $caliForm$buffForm$utcForm$bangForm" "

View file

@ -15,7 +15,10 @@ setw -g pane-base-index 1
set -g renumber-windows on set -g renumber-windows on
#change default delay to be a bit more responsive #change default delay to be a bit more responsive
set -s escape-time 1 set -sg escape-time 0
#amount of time for which messages/indicators are displayed (in ms)
set -g display-time 2000
###### ######
# Mouse # Mouse
@ -96,3 +99,6 @@ bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
# copy/paste improvements :: NOT WORKING PROPERLY NOW # copy/paste improvements :: NOT WORKING PROPERLY NOW
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" #bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
# Capture a pane into file for uploading to Gist
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer

View file

@ -8,7 +8,7 @@ My vim configuration is relatively straight forward.
* Relative numbering, with mapping to quickly swap * Relative numbering, with mapping to quickly swap
###Bundles File ###Bundles File
The vimrc.bundles file stores the plugin information for Vundle. Currently, I The vimrc.bundles file stores the plugin information for Vim-Plug. Currently, I
use the following plugins: use the following plugins:
* [Fugitive](https://github.com/tpope/vim-fugitive) for nice Git integration. * [Fugitive](https://github.com/tpope/vim-fugitive) for nice Git integration.
* [Airline](https://github.com/bling/vim-airline) to look nice, but not garish. * [Airline](https://github.com/bling/vim-airline) to look nice, but not garish.
@ -18,8 +18,14 @@ use the following plugins:
* [Templates](https://github.com/ap/vim-templates.git) for easy templates. * [Templates](https://github.com/ap/vim-templates.git) for easy templates.
* [vimwiki](https://github.com/vimwiki/vimwiki) for info, diary and notes. * [vimwiki](https://github.com/vimwiki/vimwiki) for info, diary and notes.
###Pending Plugins
The following should be eventually installed and configured properly:
* Syntastic
* vim-startify
* vim-dispatch
####To-Do ####To-Do
* [ ] (Optional) Customize Airline more. * [ ] Customize Airline more (Optional)
* [ ] Consider adding [gist-vim](https://github.com/mattn/gist-vim) due to * [ ] Consider adding [gist-vim](https://github.com/mattn/gist-vim) due to
prevalence of Gist at work prevalence of Gist at work
* [ ] Look into [ctrlp](https://github.com/kien/ctrlp.vim) for more awesome * [ ] Look into [ctrlp](https://github.com/kien/ctrlp.vim) for more awesome

View file

@ -5,39 +5,22 @@
" Type :so % to refresh .vimrc after making changes " Type :so % to refresh .vimrc after making changes
"###### "######
"# Settings "# General Settings
"## "##
" https://stackoverflow.com/questions/5845557/in-a-vimrc-is-set-nocompatible-completely-useless " Be IMproved ( Why? https://goo.gl/2RiJoo )
set nocompatible set nocompatible
" Necessary for Syntax hilighting and cool stuff
syntax on
filetype plugin indent on
" Auto-reload files changed outside Vim " Auto-reload files changed outside Vim
set autoread set autoread
" Map Leader key
let mapleader = ","
" Shows you which commands you're typing " Shows you which commands you're typing
set showcmd set showcmd
" Enables addons via Pathogen
" Add-ons go in ~/.vim/bundle/
" runtime bundle/vim-pathogen/autoload/pathogen.vim
" execute pathogen#infect()
" Load plugins with Vundle
if filereadable(expand("~/.vimrc.bundles"))
source ~/.vimrc.bundles
endif
" Airline configuration
set laststatus=2
let g:airline_powerline_fonts = 1
" Necessary for Syntax hilighting
syntax on
filetype plugin indent on
" Enable line numbers, and make them relative " Enable line numbers, and make them relative
set number set number
set rnu set rnu
@ -54,7 +37,7 @@ set softtabstop=5
" Set width; word wrap; scroll mods " Set width; word wrap; scroll mods
set scrolloff=5 set scrolloff=5
set tw=80 set tw=80
set colorcolumn=+1 set colorcolumn
set wrap set wrap
" Enable auto-completion for vim commands " Enable auto-completion for vim commands
@ -67,13 +50,29 @@ set wildmode:longest:full,full
set incsearch set incsearch
set hlsearch set hlsearch
" Set color scheme... duh... " Set default/backup colorscheme
colorscheme desert colorscheme desert
"######
"# Plugins
"###
" Old Way: Pathogen, add-ons go in ~/.vim/bundle/
" runtime bundle/vim-pathogen/autoload/pathogen.vim
" execute pathogen#infect()
" New Way: Vim-Plug, add-ons configured in .vimrc.bundles
if filereadable(expand("~/.vimrc.bundles"))
source ~/.vimrc.bundles
endif
"###### "######
"# Mappings "# Mappings
"## "##
" Map Leader key
let mapleader = ","
" Making moving up/down work on wrapped lines of text " Making moving up/down work on wrapped lines of text
nnoremap <silent> j gj nnoremap <silent> j gj
nnoremap <silent> k gk nnoremap <silent> k gk
@ -91,13 +90,14 @@ nnoremap <silent> <leader>h :set nohlsearch!<CR>
" Edit dotfiles with <leader>d " Edit dotfiles with <leader>d
" v is for vim " v is for vim
nnoremap <silent> <leader>dv :tabnew ~/.dotfiles/vim/vimrc<CR> nnoremap <silent> <leader>dv :tabnew ~/.dotfiles/vim/vimrc<CR>
nnoremap <silent> <leader>dp :tabnew ~/.dotfiles/vim/vimrc.bundles<CR>
" b is for bash " b is for bash
"nnoremap <silent> <leader>db :tabnew ~/.dotfiles/bash/bashrc<CR> " nnoremap <silent> <leader>db :tabnew ~/.dotfiles/bash/bashrc<CR>
" t is for tmux " t is for tmux
nnoremap <silent> <leader>dt :tabnew ~/.dotfiles/tmux/tmux.conf<CR> nnoremap <silent> <leader>dt :tabnew ~/.dotfiles/tmux/tmux.conf<CR>
" d is for dotfiles install script " d is for dotfiles install script
nnoremap <silent> <leader>dd :tabnew ~/.dotfiles/install.conf.yaml<CR> nnoremap <silent> <leader>dd :tabnew ~/.dotfiles/install.conf.yaml<CR>
" Remap ESC in insert mode " Remap ESC in insert mode
inoremap jk <esc> inoremap jk <esc>

View file

@ -1,29 +1,37 @@
set nocompatible " be iMproved, required " ######
filetype off " required " # Plugin File for Vim Using
" # Vim-Plug: A minimalist Vim plugin manager
" ###
" set the runtime path to include Vundle and initialize " ###
set rtp+=~/.vim/bundle/Vundle.vim " Quick-Reference
call vundle#begin() " ===
" :PlugInstall - install plugins
" :PlugUpdate - install/update plugins
" :PlugUpgrade - upgrade vim-plug
" ###
" let Vundle manage Vundle, required " ######
Plugin 'VundleVim/Vundle.vim' " # Fetch
" ###
call plug#begin('~/.vim/bundle')
" Current list of plugins " Current list of plugins
Plugin 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plugin 'tpope/vim-vinegar' Plug 'tpope/vim-vinegar'
Plugin 'bling/vim-airline' Plug 'bling/vim-airline'
Plugin 'justinmk/vim-sneak' Plug 'justinmk/vim-sneak'
Plugin 'ap/vim-templates' Plug 'ap/vim-templates'
Plugin 'vimwiki/vimwiki' Plug 'vimwiki/vimwiki'
Plug 'mhinz/vim-startify'
call vundle#end() call plug#end()
" Brief help " ######
" " :PluginList - lists configured plugins " # Configs
" " :PluginInstall - installs plugins; append `!` to update or just " ###
" :PluginUpdate
" " :PluginSearch foo - searches for foo; append `!` to refresh local cache " Airline configuration
" " :PluginClean - confirms removal of unused plugins; append `!` to set laststatus=2
" auto-approve removal let g:airline_powerline_fonts = 1
" "
" " see :h vundle for more details or wiki for FAQ