Last active
August 11, 2016 18:22
-
-
Save nasal/c76cdc2b6e3ec33c5718 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
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" vim +PluginInstall +qall | |
" mkdir -p ~/.vim/files/info | |
" git config --global core.editor /usr/bin/vim | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
"Visual additions | |
Plugin 'tpope/vim-sensible' " Defaults everyone should agree on | |
Plugin 'mhinz/vim-signify' " Shows version control changes | |
Plugin 'kshenoy/vim-signature' " Show marks | |
Plugin 'skammer/vim-css-color' " Pobarva ozadje barvam v cssju | |
Plugin 'mxw/vim-jsx' " JSX support (used for react.js by FB) | |
Plugin 'elzr/vim-json' " Better JSON support | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'kana/vim-niceblock' " Makes I and A available in all visual modes | |
Plugin 'tpope/vim-markdown' | |
" Plugin 'spolu/dwm.vim' " Window manager | |
Plugin 'scrooloose/syntastic' " Syntax checkers | |
Plugin 'mhinz/vim-startify' " Cool start screen | |
Plugin 'digitaltoad/vim-jade' " Jade syntax highlight | |
Plugin 'mattn/emmet-vim' " Write html quickly | |
Plugin 'scrooloose/nerdtree' " Fileexplorer | |
Plugin 'ervandew/supertab' " General autocompelte | |
"Plugin 'OmniSharp/omnisharp-vim' " Powerful C# Code completion | |
" Snippets | |
Plugin 'MarcWeber/vim-addon-mw-utils' " Required for snipmate | |
Plugin 'tomtom/tlib_vim' " Required for snipmate | |
Plugin 'garbas/vim-snipmate' " Snippets with tab | |
Plugin 'justinj/vim-react-snippets' " React snippets | |
Plugin 'honza/vim-snippets' " Snippets with tab | |
" Colorschemes | |
Plugin 'jonathanfilip/vim-lucius' " Colorscheme | |
Plugin 'nanotech/jellybeans.vim' " Colorscheme | |
Plugin 'altercation/vim-colors-solarized' " Colorscheme | |
Plugin 'sickill/vim-monokai' | |
Plugin 'vim-scripts/summerfruit256.vim' | |
Plugin 'w0ng/vim-hybrid' | |
Plugin 'morhetz/gruvbox' | |
Plugin 'leafgarland/typescript-vim' | |
Plugin 'kien/ctrlp.vim' " Goto files | |
Plugin 'bling/vim-airline' " Beautiful status bar | |
Plugin 'tpope/vim-fugitive.git' " Git | |
Plugin 'jistr/vim-nerdtree-tabs' " Multiple tabs, one NERDTree | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
set history=700 | |
set background=dark | |
set nowrap | |
set hlsearch | |
set nu | |
set smartindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set cursorline | |
set encoding=utf-8 | |
set mouse=a | |
if has("gui_running") | |
colorscheme solarized | |
:set guioptions-=m | |
:set guioptions-=T | |
:set guioptions-=r | |
:set guioptions-=L | |
else | |
colorscheme hybrid | |
"colorscheme monokai | |
"colorscheme jellybeans | |
endif | |
let g:ctrlp_map = '<c-p>' | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
"let g:nerdtree_tabs_open_on_console_startup = 1 | |
let g:syntastic_mode_map = { 'mode': 'passive', 'active_filetypes': [],'passive_filetypes': [] } | |
nnoremap <C-w>E :SyntasticCheck<CR> :SyntasticToggleMode<CR> | |
nmap <silent> <C-b> :bprevious<CR> | |
nmap <silent> <C-n> :bnext<CR> | |
nmap <silent> <C-T> :NERDTreeToggle<CR> | |
nmap <silent> <C-m> :bp <BAR> bd #<CR> | |
"This mission critical workaround hack tells vim to restore cursor to the last line. | |
"Be sure to set: "Thip, crinkle, sploit" to "stopit, just be right". lolz | |
"Also it could be the functionality is disabled in your /etc/vim/vimrc or | |
"your ~/.viminfo is owned by root. | |
"http://askubuntu.com/questions/223018/vim-is-not-remembering-last-position | |
autocmd BufReadPost * | |
\ if line("'\"") > 1 && line("'\"") <= line("$") | | |
\ exe "normal! g`\"" | | |
\ endif | |
"These extra commands tell syntastic to ignore the following kinds of warnings | |
"let g:syntastic_quiet_messages = { "regex": 'superfluous' } | |
"let g:syntastic_quiet_messages = { "regex": 'superfluous-parens\|too-many-instance-attributes\| | |
Bundle 'wakatime/vim-wakatime' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment