Created
October 28, 2016 07:08
-
-
Save jehuamanna/4889580f40c941c5f51671b589859650 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 t_Co=256 | |
set nocompatible "required | |
filetype off "required | |
" 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 'tmhedberg/SimpylFold' | |
Plugin 'vim-scripts/indentpython.vim' | |
let g:ycm_path_to_python_interpreter = '/usr/bin/python' | |
" Auto Complete | |
Plugin 'Valloric/YouCompleteMe' | |
" let g:ycm_autoclose_preview_window_after_completion=1 | |
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR> | |
Plugin 'scrooloose/syntastic' | |
Plugin 'nvie/vim-flake8' | |
let python_highlight_all=1 | |
syntax on | |
Plugin 'jnurmine/Zenburn' | |
Plugin 'altercation/vim-colors-solarized' | |
if has('gui_running') | |
set background=dark | |
colorscheme solarized | |
else | |
colorscheme zenburn | |
endif | |
Plugin 'scrooloose/nerdtree' | |
autocmd vimenter * NERDTree | |
autocmd vimenter * wincmd p | |
autocmd BufWinEnter * NERDTreeMirror | |
Plugin 'jistr/vim-nerdtree-tabs' | |
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree | |
" let g:nerdtree_tabs_open_on_console_startup=1 | |
Plugin 'kien/ctrlp.vim' | |
set nu | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
set clipboard=unnamed | |
"surround | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-repeat' | |
" Hardmode | |
Plugin 'wikitopian/hardmode' | |
autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode() | |
nnoremap <leader>h <Esc>:call ToggleHardMode()<CR> | |
" Add all your plugin here (note older versions of Vundle used Bundle instead of Plugin) | |
" All of your Plugins must be added before the following line | |
call vundle#end() "required | |
filetype plugin indent on "required | |
set splitbelow | |
set splitright | |
" split navigations | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
" Enable folding with the spacebar | |
nnoremap <space> za | |
" Enable NERDTree | |
map <C-n> :NERDTreeToggle<CR> | |
" html specific | |
autocmd FileType html setlocal shiftwidth=2 tabstop=2 | |
" relative numbering | |
" set relativenumber | |
set number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment