-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
87 lines (70 loc) · 2.18 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
call pathogen#infect()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=700
" Enable filetype plugins
filetype plugin on
filetype indent on
" Avoid garbled characters in Chinese language windows OS
let $LANG='en'
set langmenu=en
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
" Ignore compiled files
set wildignore=*.o,*~,*.pyc
if has("win16") || has("win32")
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
else
set wildignore+=.git\*,.hg\*,.svn\*
endif
"Always show current position
set ruler
" Highlight search results
set hlsearch
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Enable syntax highlighting
syntax enable
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
" Zigzag
set number
" set NERDTreeToggle
let mapleader = ","
nmap <leader>nt :NERDTree<cr>
" map esc key
imap jj <Esc>
" set Encoding method -- English & Chinese
set fileencodings=utf-8,gb18030,utf-16,big5
" for vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
" let vundle manage vundle
" Plugin 'gmarik/vundle'
"
" " list all plugins that you'd like to install here
" Plugin 'kien/ctrlp.vim' " fuzzy find files
" Plugin 'scrooloose/nerdtree' " file drawer, open with :NERDTreeToggle
" Plugin 'benmills/vimux'
" Plugin 'tpope/vim-fugitive' " the ultimate git helper
" Plugin 'tpope/vim-commentary' " comment/uncomment lines with gcc or gc in
" visual mode
"
" call vundle#end()
" filetype plugin indent on
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Modify .vimrc to enable colorscheme for Solarized VIM
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set background=dark
colorscheme solarized
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" SYU, deal with clipboard
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set clipboard=unnamed