Skip to content

Commit

Permalink
change vim alias, restore vim cursor position, fix java path
Browse files Browse the repository at this point in the history
  • Loading branch information
alpardal committed Oct 21, 2011
1 parent 8420e98 commit 1a2a296
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ alias ack="ack-grep"
alias fname="find . -print | ack " # find file name
alias ..='cd ..'
alias -- -='cd -'
alias vim='gvim'
alias vim='vim -g'
alias re.=". ~/.bashrc"
# ruby
alias ri="ri -Tf ansi"
Expand Down
2 changes: 1 addition & 1 deletion bash/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ shopt -s huponexit
set -o notify

export EDITOR="gvim"
export JAVA_HOME=~/.java/jdk1.7.0
export JAVA_HOME=~/.jdk1.7.0
export USER_BIN=~/.bin
export PATH=$JAVA_HOME/bin:$PATH:$USER_BIN

Expand Down
8 changes: 8 additions & 0 deletions vim/settings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ set nofoldenable
set foldlevel=1

hi Search guifg=NONE guibg=NONE gui=underline ctermfg=NONE ctermbg=NONE cterm=underline

if has("autocmd")
" Restore cursor position
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
endif

0 comments on commit 1a2a296

Please sign in to comment.