Created
August 18, 2017 07:54
-
-
Save khapota/c203564b0dd76f7e7d796383119d4812 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 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-commentary' | |
" Markdown preview | |
Plugin 'JamshedVesuna/vim-markdown-preview' | |
let vim_markdown_preview_hotkey='<C-m>' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
"Plugin 'tpope/vim-fugitive' | |
""" full complete tool | |
Plugin 'Valloric/YouCompleteMe' | |
""" Syntax check | |
Plugin 'scrooloose/syntastic' | |
""" Powerline (status bar) | |
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
""" Git plugin | |
Plugin 'tpope/vim-fugitive' | |
""" Easy motion | |
Plugin 'easymotion/vim-easymotion' | |
""" Instance Markdown Preview | |
Plugin 'suan/vim-instant-markdown' | |
" 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'} | |
" Fuzzy search | |
Plugin 'junegunn/fzf' | |
Plugin 'junegunn/fzf.vim' | |
" NerdTree | |
Plugin 'scrooloose/nerdtree' | |
" Ag search | |
Plugin 'mileszs/ack.vim' | |
" Javscript | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'hallettj/jslint.vim' | |
let g:ackprg = 'ag --vimgrep' | |
" Swap word | |
Plugin 'tommcdo/vim-exchange' | |
" Plugin 'jooize/vim-colemak' | |
" Vim airline | |
Plugin 'vim-airline/vim-airline' | |
set laststatus=2 | |
Plugin 'bling/vim-bufferline' | |
" Dash docset | |
Plugin 'rizzatti/dash.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 | |
let python_highlight_all=1 | |
""" Vim syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
""" End | |
""" easymotion | |
let g:EasyMotion_do_mapping = 0 " Disable default mappings | |
" Bi-directional find motion | |
" Jump to anywhere you want with minimal keystrokes, with just one key binding. | |
" `s{char}{label}` | |
nmap s <Plug>(easymotion-s) | |
" or | |
" `s{char}{char}{label}` | |
" Need one more keystroke, but on average, it may be more comfortable. | |
"nmap s <Plug>(easymotion-s2) | |
" Turn on case insensitive feature | |
let g:EasyMotion_smartcase = 1 | |
" JK motions: Line motions | |
map <Leader>j <Plug>(easymotion-j) | |
map <Leader>k <Plug>(easymotion-k) | |
""" End | |
set bs=2 "set backspace to be able to delete previous characters�Enable line numbering, taking up 6 spaces | |
"Turn off word wrapping | |
set wrap! | |
"Turn on smart indent | |
set smartindent | |
set tabstop=4 "set tab character to 4 characters | |
set expandtab "turn tabs into whitespace | |
set shiftwidth=4 "indent width for autoindent | |
"set ofu=syntaxcomplete#Complete | |
"Shortcut to auto indent entire file | |
nmap <F11> 1G=G | |
imap <F11> <ESC>1G=Ga | |
"Turn on incremental search with ignore case (except explicit caps) | |
set incsearch | |
set ignorecase | |
set smartcase | |
"Informative status line | |
"set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%)] | |
inoremap jj <ESC> | |
"Set color scheme | |
"set t_Co=256 | |
Plugin 'raphamorim/lucario' | |
colorscheme lucario | |
syntax enable | |
set nu | |
"set mouse+=a | |
"Enable indent folding | |
"set foldenable | |
"set fdm=indent | |
"Set space to toggle a fold | |
"nnoremap <space> za | |
"Hide buffer when not in window (to prevent relogin with FTP edit) | |
"set bufhidden=hide | |
"Have 3 lines of offset (or buffer) when scrolling | |
"set scrolloff=3 | |
"shortcut made by khanhpt | |
cmap w!! w !sudo tee % > /dev/null | |
set directory=/tmp | |
nnoremap Q :normal n.<CR> | |
:inoremap kj <Esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment