Skip to content

Instantly share code, notes, and snippets.

@Khalian
Last active July 21, 2020 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Khalian/e07ae6b9ffa7f9bf3eb1620b4b4be7bb to your computer and use it in GitHub Desktop.
Save Khalian/e07ae6b9ffa7f9bf3eb1620b4b4be7bb to your computer and use it in GitHub Desktop.
.vimrc
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
try
source ~/.vim_runtime/my_configs.vim
catch
endtry
call plug#begin('~/.vim/plugged')
Plug 'easymotion/vim-easymotion'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'vim-airline/vim-airline'
Plug 'jlanzarotta/bufexplorer'
Plug 'justinmk/vim-sneak'
Plug 'mattn/emmet-vim'
Plug 'elzr/vim-json'
Plug 'brooth/far.vim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-eunuch'
Plug 'terryma/vim-multiple-cursors'
Plug 'mattn/webapi-vim'
Plug 'mattn/gist-vim'
Plug 'pangloss/vim-javascript'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'neomake/neomake'
Plug 'bronson/vim-trailing-whitespace'
Plug 'ervandew/supertab'
Plug 'vim-scripts/mru.vim'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
call plug#end()
set clipboard=unnamed
set mouse=a
set number
let mapleader = ";"
imap jj <Esc>
imap <silent> <Esc> <C-O>:stopinsert<CR>
imap <silent> jj <C-O>:stopinsert<CR>
cmap jj <Esc>
map <Leader>0 :e ~/.vimrc<CR>
map <Leader>z :e ~/.zshrc<CR>
map <Leader>sa ggVG<CR>
map <Leader>e G<CR>
map <Leader>d :bw!<CR>
map <Leader>c :enew<CR>
map <Leader>n :bnext<CR>
map <Leader>p :bprevious<CR>
function! NumberToggle()
set rnu!
endfunc
nnoremap <C-l> :call NumberToggle()<CR>
augroup custom_term
autocmd!
autocmd TermOpen * setlocal bufhidden=hide
augroup END
nnoremap <C-s> :source<CR>
set clipboard=unnamed
map <C-t> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
let NERDTreeChDirMode=2
let g:airline#extensions#tabline#enabled = 1
map <Leader> <Plug>(easymotion-prefix)
map <Leader>l <Plug>(easymotion-bd-jk)
nmap <Leader>l <Plug>(easymotion-overwin-line)
map <Leader>w <Plug>(easymotion-bd-w)
nmap <Leader>w <Plug>(easymotion-overwin-w)
let g:sneak#s_next = 1
map f <Plug>Sneak_s
map s <Plug>Sneak_S
map <Leader>b :Gbrowse<CR>
map <Leader>sx :BufExplorer<CR>
nnoremap <Leader>m :MRU<CR>
set rtp+=~/.fzf
map <Leader>z :FZF<CR>
tnoremap <Esc> <C-\><C-n>
tnoremap jj <C-\><C-n>
tnoremap kk <CR>
nnoremap <Leader>t :Tnew<CR>
tnoremap <Leader>t :Tnew<CR>
let g:deoplete#enable_at_startup = 1
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment