Skip to content

Instantly share code, notes, and snippets.

@martinthenext
Last active September 9, 2022 14:02
Show Gist options
  • Save martinthenext/2cd4af87db2440d4cbbd10112ebb51e8 to your computer and use it in GitHub Desktop.
Save martinthenext/2cd4af87db2440d4cbbd10112ebb51e8 to your computer and use it in GitHub Desktop.
recent vimrc
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"
" Syntactic
Plugin 'vim-syntastic/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
let g:syntastic_mode_map = { 'mode': 'passive',
\ 'active_filetypes': [],
\ 'passive_filetypes': [] }
let g:syntastic_auto_loc_list=1
nnoremap <silent> <C-L> :SyntasticCheck<CR>
nnoremap <silent> <C-K> :SyntasticReset<CR>
" FZF
set rtp+=~/.fzf
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
nnoremap <C-P> :Files<CR>
" Nerdtree
Plugin 'preservim/nerdtree'
nnoremap <C-t> :NERDTreeToggle<CR>
" tmux
Plugin 'christoomey/vim-tmux-navigator'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
set nu
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)
set laststatus=2
set cindent
set cinkeys-=0#
set indentkeys-=0#
" set ignorecase
autocmd BufRead,BufNewFile *.htm,*.html,*.vue,*.json,*.js setlocal tabstop=2 shiftwidth=2 softtabstop=2
set timeoutlen=1000
set ttimeoutlen=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment