Skip to content

Instantly share code, notes, and snippets.

@junstrix
Last active December 15, 2015 11:29
Show Gist options
  • Save junstrix/5253664 to your computer and use it in GitHub Desktop.
Save junstrix/5253664 to your computer and use it in GitHub Desktop.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
let path='~/.vim/bundle'
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'
" 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'
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" 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'}
" Avoid a name conflict with L9
" Plugin 'user/L9', {'name': 'newL9'}
Plugin 'FencView.vim'
Plugin 'msanders/snipmate.vim'
Plugin 'DrawIt'
Plugin 'git://github.com/vim-scripts/taglist.vim.git'
Plugin 'git://github.com/scrooloose/nerdtree.git'
Plugin 'Syntastic'
" <leader>cc
Plugin 'git://github.com/scrooloose/nerdcommenter.git'
Plugin 'git://github.com/vim-scripts/simple-pairs.git'
Plugin 'git://github.com/scrooloose/vim-statline.git'
Plugin 'git://github.com/flazz/vim-colorschemes.git'
Plugin 'git://github.com/powerman/vim-plugin-viewdoc.git'
Plugin 'git://github.com/altercation/vim-colors-solarized.git'
Plugin 'git://github.com/vim-scripts/mru.vim.git'
Plugin 'ctrlp.vim'
Plugin 'SuperTab'
Plugin 'EasyMotion'
Plugin 'PIV'
" 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 - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set number
set incsearch
set wildmenu
let mapleader = ";"
nmap <leader>n :bn<cr>
nmap <leader>e :e
nmap <leader>qa :qa<cr>
nmap <leader>w :w<cr>
nmap <leader>mr :MRU<cr>
nmap <leader>s :source ~/.vimrc<cr>
nmap <leader>fl :NERDTreeToggle<cr>
nmap <leader>tl :TlistToggle<cr>
nmap <leader>co :colorscheme
" insert-mode
imap jk <Esc>
imap <C-b> <Left>
imap <C-f> <Right>
imap <C-a> <C-o>I
imap <C-e> <End>
imap <C-d> <Del>
imap <C-k> <C-o>D
" command-mode
" start of line
:cnoremap <C-A> <Home>
" back one character
:cnoremap <C-B> <Left>
" delete character under cursor
:cnoremap <C-D> <Del>
" end of line
:cnoremap <C-E> <End>
" forward one character
:cnoremap <C-F> <Right>
" recall newer command-line
:cnoremap <C-N> <Down>
" recall previous (older) command-line
:cnoremap <C-P> <Up>
" back one word
:cnoremap <Esc><C-B> <S-Left>
" forward one word
:cnoremap <Esc><C-F> <S-Right>
if has('gui_running')
set background=dark
set guioptions=egmt
set guifont=Source\ Code\ Pro:h12
colorscheme solarized
endif
let Tlist_Show_One_File = 1
let Tlist_Use_Right_Window = 1
let Tlist_Exit_OnlyWindow = 1
" let Tlist_Process_File_Always = 1
let Tlist_Show_Menu = 1
autocmd BufEnter * if bufname("") !~ "^\[A-Za-z0-9\]*://" | lcd %:p:h | endif
" set fileencoding=utf-8
" set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment