Created
December 13, 2017 15:00
-
-
Save SrivastavaKshitij/0eb5bb7db2cc21ac3d542c4d253c4eae to your computer and use it in GitHub Desktop.
Vim settings
This file contains hidden or 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 nu | |
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' | |
" Add all your plugins 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" | |
set foldmethod=indent | |
set foldlevel=99 | |
" Enabling folding with spacebar | |
nnoremap <space> za | |
set backspace=indent,start | |
Plugin 'tmhedberg/SimplyFold' | |
:au BufNewFile,BufRead *.py | |
\ set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix | |
Plugin 'vim-scripts/indentpython.vim' | |
":au BufRead,BufNewFile *.py,*.pyw,*.c,*.h :match ExtraWhitespace /\s\+$/ | |
set encoding=utf-8 | |
Bundle 'Valloric/YouCompleteMe' | |
let g:ycm_autoclose_preview_window_after_completion=1 | |
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR> | |
Plugin 'vim-syntastic/syntastic' | |
Plugin 'nvie/vim-flake8' | |
let python_highlight_all=1 | |
syntax on | |
Plugin 'jnurmine/Zenburn' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'jistr/vim-nerdtree-tabs' | |
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
set clipboard=unnamed | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment