Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " httpv://github.com/VundleVim/Vundle.vim
- set nocompatible " be iMproved, 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 'VundleVim/Vundle.vim'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- Plugin 'tpope/vim-fugitive'
- " plugin from http://vim-scripts.org/vim/scripts.html
- " Plugin 'L9'
- " Git plugin not hosted on GitHub
- Plugin 'git://git.wincent.com/command-t.git'
- " git repos on your local machine (i.e. when working on your own plugin)
- Plugin 'file:///home/gmarik/path/to/plugin'
- " The sparkup vim script is in a subdirectory of this repo called vim.
- " Pass the path to set the runtimepath properly.
- Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
- " Install L9 and avoid a Naming conflict if you've already installed a
- " different version somewhere else.
- " Plugin 'ascenator/L9', {'name': 'newL9'}
- " 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
- " https://dougblack.io/words/a-good-vimrc.html
- " enable syntax highlighting
- syntax enable
- " show line numbers
- set number
- " set tabs to have 4 spaces
- set ts=4
- " indent when moving to the next line while writing code
- set autoindent
- " expand tabs into spaces
- set expandtab
- " when using the >> or << commands, shift lines by 4 spaces
- set shiftwidth=4
- " show a visual line under the cursor's current line
- set cursorline
- " show the matching part of the pair for [] {} and ()
- set showmatch
- " enable all Python syntax highlighting features
- let python_highlight_all = 1
- " set colorscheme
- " softabstop is the number of spaces a tab counts for when editing. So this value is the number of spaces that is inserted when you hit <TAB> and also the number of spaces that are removed when you backspace.
- set softtabstop=4
- " show last command entered
- set showcmd
- " show cursorline set to where it is
- set cursorline
- " Turn up auto indentation to python and other languages
- filetype indent on
- " graphical menu of autosuggest options
- set wildmenu
- " show parentheses completion
- set showmatch
- " search as characters are entered
- set incsearch
- " highlight matches
- set hlsearch
- " turn off search highlight
- nnoremap <leader><space> :nohlsearch<CR>
- " enable folding
- set foldenable
- " open most folds by default
- set foldlevelstart=10
- " foldlevelstart is the starting fold level for opening a new buffer. If it is set to 0, all folds will be closed. Setting it to 99 would guarantee folds are always open. So, setting it to 10 here ensures that only very nested blocks of code are folded when opening a buffer.
- set foldnestmax=10
- " space open/closes folds
- nnoremap <space> za
- " fold based on indent level
- set foldmethod=indent
- " jk is escape
- inoremap jk <esc>
- " toggle gundo Visula undo tree
- nnoremap <leader>u :GundoToggle<CR>
- " edit vimrc/zshrc and load vimrc bindings
- nnoremap <leader>ev :vsp $MYVIMRC<CR>
- nnoremap <leader>ez :vsp ~/.zshrc<CR>
- nnoremap <leader>sv :source $MYVIMRC<CR>
- " https://justin.abrah.ms/vim/vim_and_python.html
- " Text after a double-quote is a comment
- set ruler
- set expandtab
- " Turn invisible characters visible
- set list listchars=tab:▷⋅,trail:⋅,nbsp:⋅
- set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\
- \ [%l/%L\ (%p%%)
- filetype plugin indent on
- au FileType py set autoindent
- au FileType py set smartindent
- au FileType py set textwidth=79 " PEP-8 Friendly
- " NERD_tree config
- let NERDTreeChDirMode=2
- let NERDTreeIgnore=['\.vim$', '\~$', '\.pyc$', '\.swp$']
- let NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\~$']
- let NERDTreeShowBookmarks=1
- map <F3> :NERDTreeToggle<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement