Skip to content

Commit

Permalink
Add vim fugitive plugin submodule and some leader key mappings for it…
Browse files Browse the repository at this point in the history
…. Add LESS color config to .profile.
  • Loading branch information
exogen committed Apr 30, 2012
1 parent 3a15b96 commit b6e9055
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -16,3 +16,6 @@
[submodule ".vim/bundle/command-t"] [submodule ".vim/bundle/command-t"]
path = .vim/bundle/command-t path = .vim/bundle/command-t
url = https://github.com/wincent/Command-T url = https://github.com/wincent/Command-T
[submodule ".vim/bundle/fugitive"]
path = .vim/bundle/fugitive
url = git://github.com/tpope/vim-fugitive.git
11 changes: 11 additions & 0 deletions .profile
@@ -1,3 +1,4 @@

# shell options # shell options


shopt -s histappend # append instead of overwrite history shopt -s histappend # append instead of overwrite history
Expand Down Expand Up @@ -25,6 +26,16 @@ export WHITE='\e[0;37m'


export CLICOLOR=1 export CLICOLOR=1


# configure colors for less (man pages, searching, etc.)

export LESS_TERMCAP_mb=$'\e[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\e[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\e[0m' # end mode
export LESS_TERMCAP_se=$'\e[0m' # end standout-mode
export LESS_TERMCAP_so=$'\e[0;31;40m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\e[0m' # end underline
export LESS_TERMCAP_us=$'\e[04;38;5;146m' # begin underline

# aliases # aliases


alias ll="ls -al" alias ll="ls -al"
Expand Down
1 change: 1 addition & 0 deletions .vim/bundle/fugitive
Submodule fugitive added at 1b6c0c
8 changes: 8 additions & 0 deletions .vimrc
Expand Up @@ -14,6 +14,7 @@ call pathogen#infect() " activate pathogen.vim
set cursorline " highlight the line containing the cursor set cursorline " highlight the line containing the cursor
set number " show line numbers set number " show line numbers
set showmode " show mode set showmode " show mode
set splitbelow " open splits at the bottom
set laststatus=2 " always show status line set laststatus=2 " always show status line


if has("gui_running") if has("gui_running")
Expand Down Expand Up @@ -88,10 +89,16 @@ augroup END


" key mappings " key mappings


" move up/down by row, not by line (for wrapped lines)
nnoremap j gj
nnoremap k gk
" set leader key
let mapleader="," let mapleader=","


" toggle search highlighting with ,n " toggle search highlighting with ,n
nmap <silent> <Leader>n :silent :nohlsearch<CR> nmap <silent> <Leader>n :silent :nohlsearch<CR>
nmap <silent> <Leader>/ :silent :nohlsearch<CR>
" toggle trailing whitespace with ,s " toggle trailing whitespace with ,s
set listchars=tab:▸\ ,trail:·,eol set listchars=tab:▸\ ,trail:·,eol
Expand Down Expand Up @@ -164,3 +171,4 @@ endif


nmap <silent> <Leader>gs :Gstatus<CR> nmap <silent> <Leader>gs :Gstatus<CR>
nmap <silent> <Leader>gb :Gblame<CR> nmap <silent> <Leader>gb :Gblame<CR>
nmap <silent> <Leader>gc :Gcommit<CR>

0 comments on commit b6e9055

Please sign in to comment.