Skip to content

Instantly share code, notes, and snippets.

@DanielTimLee
Created December 21, 2023 17:01
Show Gist options
  • Save DanielTimLee/25c36565bbb8e7f7d41530ba25a1d1f7 to your computer and use it in GitHub Desktop.
Save DanielTimLee/25c36565bbb8e7f7d41530ba25a1d1f7 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-commentary'
Plugin 'itchyny/lightline.vim'
Plugin 'preservim/nerdtree'
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
Plugin 'editorconfig/editorconfig-vim'
call vundle#end()
filetype plugin indent on
set history=500
set autoread
au FocusGained,BufEnter * silent! checktime
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
set so=7
let mapleader = ","
nmap <leader>w :w!<cr>
map <space> /
map <C-space> ?
map <silent> <leader><cr> :noh<cr>
set wildmenu
set wildignore=*.o,*~,*.pyc
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
" Plugin 'itchyny/lightline.vim'
set laststatus=2
set noshowmode
" Initialize configuration dictionary
let g:fzf_vim = {}
let g:fzf_layout = { 'down': '30%' }
autocmd! FileType fzf
autocmd FileType fzf set laststatus=0 noshowmode noruler
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
nnoremap <C-p> :GFiles<Cr>
nnoremap <C-g> :Ag<Cr>
nnoremap <silent><leader>l :Buffers<CR>
map <leader>nn :NERDTreeToggle<cr>
map <leader>nb :NERDTreeFromBookmark
map <leader>nf :NERDTreeFind<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment