Last active
September 21, 2015 10:17
-
-
Save BoZhuM/9a9fb4f259a14ea4f0e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
"Bundle 'VimClojure' | |
Plugin 'guns/vim-clojure-static' | |
Plugin 'applescript.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
Plugin 'tpope/vim-fugitive' | |
" plugin from http://vim-scripts.org/vim/scripts.html | |
Plugin 'L9' | |
Plugin 'ctrlp.vim' | |
" Git plugin not hosted on GitHub | |
" Plugin 'Command-T' | |
" The sparkup vim script is in a subdirectory of this repo called vim. | |
" Pass the path to set the runtimepath properly. | |
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
Plugin 'auto-pairs' | |
Plugin 'tpope/vim-surround' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'stardiviner/AutoSQLUpperCase.vim' | |
Plugin 'wting/rust.vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" ==================================================================== | |
set number | |
syntax on | |
set ic | |
set showcmd | |
" Highlight search | |
" set hls | |
" Wrap text instead of being on one line | |
set lbr | |
" Change colorscheme from default to delek | |
" colorscheme delek | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 softtabstop=4 | |
set incsearch ignorecase hlsearch | |
" Press space to clear search highlighting and any message already displayed. | |
nnoremap <silent> <Space> :silent noh<Bar>echo<CR> | |
" Indent automatically depending on filetype | |
"filetype indent on | |
"set autoindent | |
"set smartindent | |
"set autoread | |
"set cinoptions+=g0 | |
"set cinoptions+=:0 | |
"set formatoptions+=r | |
"set fileencodings=utf8,gbk | |
" window switching | |
noremap <C-k> <C-w><Up> | |
noremap <C-j> <C-w><Down> | |
noremap <C-l> <C-w><Right> | |
noremap <C-h> <C-w><Left> | |
inoremap <C-k> <Esc><C-k> | |
inoremap <C-j> <Esc><C-j> | |
inoremap <C-l> <Esc><C-l> | |
inoremap <C-h> <Esc><C-h> | |
let mapleader="\<Space>" | |
nnoremap <silent> <leader>f :CtrlP<CR> | |
source $VIMRUNTIME/vimrc_example.vim | |
set nobackup | |
set nowritebackup | |
" set undodir=~/.vim/undodir | |
set noundofile | |
au BufWritePost * if getline(1) =~ "^#!" | silent execute "!chmod a+x <afile>" | endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment