Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update vim config

  • Loading branch information...
commit c2f22fd4e26c18fed2326f716b93110a360c65f6 1 parent 80356b7
@mvj3 authored
Showing with 23 additions and 20 deletions.
  1. +22 −19 rc/vimrc
  2. +1 −1  zsh/aliases.zsh
View
41 rc/vimrc
@@ -1,6 +1,27 @@
+" 在janus通用vim配置加载后使用, 链接文件名为$HOME/.vimrc.after
+" 安装的janus库文件在$HOME/.vim目录下,被官方git所管理。
+"
" Encoding *******************************************************************
set fileencodings=utf-8,ucs-bom,cp936,gbk,gb2312,gb18030,big5,latin1
+"Vertical split then hop to new buffer
+:noremap ,v :vsp<cr>
+:noremap ,h :split<cr>
+
+:noremap ,n :NERDTreeToggle<CR>
+:noremap ,q :q<cr>
+:noremap ,w :w<cr>
+:noremap ,t :tabnew<cr>
+
+" enable control + vim directionkey remapping [hjkl]
+:noremap <C-J> <C-W>j
+:noremap <C-K> <C-W>k
+:noremap <C-H> <C-W>h
+:noremap <C-L> <C-W>l
+
+
+
+
"set pastetoggle=<F2>
nnoremap <F2> :set invpaste paste?<CR>
imap <F2> <C-O><F2>
@@ -16,7 +37,6 @@ set smarttab
set ai " Automatically set the indent of a new line (local to buffer)
set si " smartindent (local to buffer)
-
" Scrollbars ******************************************************************
set sidescrolloff=2
@@ -26,22 +46,6 @@ set splitbelow splitright
let mapleader = ","
-"Vertical split then hop to new buffer
-:noremap ,v :vsp<cr>
-:noremap ,h :split<cr>
-
-:noremap ,n :NERDTreeToggle<CR>
-:noremap ,q :q<cr>
-:noremap ,w :w<cr>
-:noremap ,t :tabnew<cr>
-
-" enable control + vim directionkey remapping [hjkl]
-:noremap <C-J> <C-W>j
-:noremap <C-K> <C-W>k
-:noremap <C-H> <C-W>h
-:noremap <C-L> <C-W>l
-
-
set showtabline=2 " File tabs allways visible
@@ -213,7 +217,7 @@ set go-=T
-set nocompatible " be iMproved
+set nocompatible " be improved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
@@ -247,5 +251,4 @@ Bundle 'git://git.wincent.com/command-t.git'
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
-
syntax on
View
2  zsh/aliases.zsh
@@ -111,6 +111,6 @@ alias music="ruby -r $HOME/utils/ruby/irb.rb -e 'Music.play'"
alias b="bundle exec "
-# python
+# use custom python setup
alias pip="/usr/local/share/python/pip"
alias pygmentize="/usr/local/share/python/pygmentize"
Please sign in to comment.
Something went wrong with that request. Please try again.