8000 GitHub - Skulsta/.vimrc: config file for vim
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Skulsta/.vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

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) Plugin 'tmhedberg/SimpylFold' Bundle 'Valloric/YouCompleteMe' Plugin 'altercation/vim-colors-solarized' Plugin 'scrooloose/nerdtree' Plugin 'jistr/vim-nerdtree-tabs' Plugin 'kien/ctrlp.vim' Plugin 'tpope/vim-fugitive' Plugin 'vim-syntastic/syntastic' Plugin 'nvie/vim-flake8' Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} " ...

" All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required

set clipboard=unnamed

command WQ wq

" An example for a vimrc file. " " Maintainer: Bram Moolenaar Bram@vim.org " Last change: 2016 Jul 28 " " To use it, copy it to " for Unix and OS/2: ~/.vimrc " for Amiga: s:.vimrc " for MS-DOS and Win32: $VIM_vimrc " for OpenVMS: sys$login:.vimrc

" When started as "evim", evim.vim will already have done these settings. if v:progname =~? "evim" finish endif

" Get the defaults that most users want. source $VIMRUNTIME/defaults.vim

if has("vms") set nobackup " do not keep a backup file, use versions instead else set backup " keep a backup file (restore to previous version) if has('persistent_undo') set undofile " keep an undo file (undo changes after closing) endif endif

if &t_Co > 2 || has("gui_running") " Switch on highlighting the last used search pattern. set hlsearch endif

" Only do this part when compiled with support for autocommands. if has("autocmd")

" Put these in an autocmd group, so that we can delete them easily. augroup vimrcEx au!

" For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78

augroup END

else

set autoindent " always set autoindenting on

endif " has("autocmd")

" Add optional packages. ""VimL Script set splitbelow set splitright

"split navigations nnoremap nnoremap nnoremap nnoremap

" Enable folding set foldmethod=indent set foldlevel=99

" Enable folding with the spacebar nnoremap za

let g:SimpylFold_docstring_preview=1

" Correctly indenting. Important for Python set tabstop=4 set softtabstop=4 set shiftwidth=4 set textwidth=79 set expandtab set autoindent set fileformat=unix

"define BadWhitespace before using in a match highlight BadWhitespace ctermbg=red guibg=darkred

au BufRead,BufNewFile .py,.pyw,.c,.h match BadWhitespace /\s+$/

set encoding=utf-8

let g:ycm_autoclose_preview_window_after_completion=1 map g :YcmCompleter GoToDefinitionElseDeclaration

:let mapleader = ","

"python with virtualenv support py3 << EOF import os import sys if 'VIRTUAL_ENV' in os.environ: project_base_dir = os.environ['VIRTUAL_ENV'] activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') execfile(activate_this, dict(file=activate_this)) EOF

let python_highlight_all=1 syntax on

if has('gui_running') set background=dark colorscheme solarized endif

let NERDTreeIgnore=['.pyc$', '~$'] "ignore files in NERDTree

set nu

" The matchit plugin makes the % command work better, but it is not backwards " compatible. if has('syntax') && has('eval') packadd matchit endif

About

config file for vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0