Skip to content

Instantly share code, notes, and snippets.

@luveti
Last active September 8, 2016 16:14
Show Gist options
  • Save luveti/ec7fe64a30dadeb93f74530146c6589a to your computer and use it in GitHub Desktop.
Save luveti/ec7fe64a30dadeb93f74530146c6589a to your computer and use it in GitHub Desktop.
My .vimrc, if anyone's interested :)
" luveti - vimrc - 9/8/16
" these 4 lines are required by Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" list our plugins, Vundle needs to be the first one
Plugin 'VundleVim/Vundle.vim'
Plugin 'flazz/vim-colorschemes'
Plugin 'Valloric/YouCompleteMe'
Plugin 'posva/vim-vue'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Xuyuanp/nerdtree-git-plugin'
" these 2 lines are required by Vundle
call vundle#end()
filetype plugin indent on
" general settings
syntax on
set tabstop=4
set shiftwidth=4
set wrapmargin=0
set textwidth=0
set number
set backspace=2
set conceallevel=1
set background=dark
set foldmethod=indent
set nowrap
" show white spaces
set listchars=eol:\ ,tab:>\ ,trail:-,extends:>,precedes:<,space:.
set list
" custom cursor shape
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
" nerdtree settings
let NERDTreeShowHidden=1
let g:nerdtree_tabs_open_on_console_startup = 1
" some commands to automatically run
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
autocmd VimEnter * set winfixwidth
" our amazing default colorscheme
colorscheme seoul256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment