Permalink
Browse files

Add vim fugitive plugin submodule and some leader key mappings for it…

…. Add LESS color config to .profile.
  • Loading branch information...
1 parent 3a15b96 commit b6e905564bf98bfca2d124a8918e95745daec4d1 @exogen committed Apr 30, 2012
Showing with 23 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +11 −0 .profile
  3. +1 −0 .vim/bundle/fugitive
  4. +8 −0 .vimrc
View
@@ -16,3 +16,6 @@
[submodule ".vim/bundle/command-t"]
path = .vim/bundle/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
View
@@ -1,3 +1,4 @@
+
# shell options
shopt -s histappend # append instead of overwrite history
@@ -25,6 +26,16 @@ export WHITE='\e[0;37m'
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
alias ll="ls -al"
Submodule fugitive added at 1b6c0c
View
@@ -14,6 +14,7 @@ call pathogen#infect() " activate pathogen.vim
set cursorline " highlight the line containing the cursor
set number " show line numbers
set showmode " show mode
+set splitbelow " open splits at the bottom
set laststatus=2 " always show status line
if has("gui_running")
@@ -88,10 +89,16 @@ augroup END
" key mappings
+" move up/down by row, not by line (for wrapped lines)
+nnoremap j gj
+nnoremap k gk
+
+" set leader key
let mapleader=","
" toggle search highlighting with ,n
nmap <silent> <Leader>n :silent :nohlsearch<CR>
+nmap <silent> <Leader>/ :silent :nohlsearch<CR>
" toggle trailing whitespace with ,s
set listchars=tab:▸\ ,trail:·,eol
@@ -164,3 +171,4 @@ endif
nmap <silent> <Leader>gs :Gstatus<CR>
nmap <silent> <Leader>gb :Gblame<CR>
+nmap <silent> <Leader>gc :Gcommit<CR>

0 comments on commit b6e9055

Please sign in to comment.