Created
December 23, 2015 14:53
-
-
Save akoskm/4df42609956788efd586 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 tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set list | |
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< | |
set nu | |
" Remove trailing white spaces | |
" autocmd FileType js,css,html | |
" Except in NERDTree | |
autocmd FileType nerdtree set invlist | |
autocmd FileType taglist set invlist | |
" 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 'gmarik/Vundle.vim' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'jelera/vim-javascript-syntax' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'nathanaelkane/vim-indent-guides' | |
Plugin 'Raimondi/delimitMate' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'git://github.com/scrooloose/nerdtree.git' | |
Plugin 'git://github.com/kien/ctrlp.vim.git' | |
Plugin 'airblade/vim-gitgutter' | |
" This does what it says on the tin. It will check your file on open too, not | |
" just on save. | |
" " You might not want this, so just leave it out if you don't. | |
let g:syntastic_check_on_open=1 | |
Plugin 'Valloric/YouCompleteMe' | |
" These are the tweaks I apply to YCM's config, you don't need them but they | |
" might help. | |
" " YCM gives you popups and splits by default that some people might not | |
" like, so these should tidy it up a bit for you. | |
let g:ycm_add_preview_to_completeopt=0 | |
let g:ycm_confirm_extra_conf=0 | |
set completeopt-=preview | |
Plugin 'marijnh/tern_for_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 | |
set t_Co=256 | |
syntax on | |
set background=dark | |
colorscheme Monokai | |
" mouse mode yay | |
set mouse=a | |
" filetree stuff | |
let g:netrw_liststyle=3 | |
" NERDTree stuff | |
" open a NERDTree automatically when vim starts up if no files were specified | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
" close vim if the only window left open is a NERDTree | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | |
" disable line numbers in NERDTree windows | |
autocmd FileType nerdtree set nonu | |
autocmd FileType taglist set nonu | |
let g:NERDTreeDirArrows=0 | |
" Shortcut | |
map <C-\> :NERDTreeToggle<CR> | |
" CTRL-P | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
" Root Marker | |
let g:ctrlp_root_markers = ['.ctrlp'] | |
let g:ctrlp_working_path_mode = 0 | |
" Ignore patterns | |
set wildignore+=*/target/*,*/www-built/*,*node_modules*,*/tmp/*,*.so,*.swp,*.zip | |
autocmd BufWritePre :%s/\s\+$// | |
" move text and rehighlight -- vim tip_id=224 | |
vnoremap > ><CR>gv | |
vnoremap < <<CR>gv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment