Created
December 3, 2017 04:15
-
-
Save dhilst/a1b9658fdaa3f6a797c8fb0c9ab5f312 to your computer and use it in GitHub Desktop.
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
py3 pass | |
syntax on | |
set background=dark | |
set laststatus=2 | |
set smartindent | |
set autoindent | |
set modeline | |
set nocompatible | |
" execute pathogen#infect() | |
" Remember somethings | |
" http://vim.wikia.com/wiki/Restore_cursor_to_file_position_in_previous_editing_session | |
set viminfo='10,\"100,:20,%,n~/.viminfo | |
" cscope | |
if has("cscope") | |
nmap <C-C>s :scs find s <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C>g :scs find g <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C>c :scs find c <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C>t :scs find t <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C>e :scs find e <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C>f :scs find f <C-R>=expand("<cfile>")<CR><CR> | |
nmap <C-C>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> | |
nmap <C-C>d :scs find d <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C><C-G> :cs find g <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C><C-C> :cs find c <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C><C-T> :cs find t <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C><C-E> :cs find e <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-C><C-F> :cs find f <C-R>=expand("<cfile>")<CR><CR> | |
nmap <C-C><C-I> :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> | |
nmap <C-C><C-D> :cs find d <C-R>=expand("<cword>")<CR><CR> | |
endif | |
set omnifunc=syntaxcomplete#Complete | |
" jump to last position when opening a file | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
endif | |
if has("gui_running") | |
colorscheme desert | |
endif | |
set exrc | |
set secure | |
" Vundle: https://github.com/VundleVim/Vundle.vim | |
set nocompatible " be iMproved, required | |
filetype off " required | |
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' | |
Plugin 'mattn/webapi-vim' | |
Plugin 'mattn/gist-vim' | |
"Plugin 'artur-shaik/vim-javacomplete2' | |
"Plugin 'airblade/vim-rooter' | |
"Plugin 'JalaiAmitahl/maven-compiler.vim' | |
Plugin 'scrooloose/nerdtree' | |
"Plugin 'ervandew/supertab' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'honza/vim-snippets' | |
Plugin 'nvie/vim-flake8' | |
Plugin 'digitaltoad/vim-pug' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'tpope/vim-surround.git' | |
Plugin 'vim-airline/vim-airline' | |
" Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'Townk/vim-autoclose' | |
Plugin 'vim-syntastic/syntastic' | |
"Plugin 'kevinw/pyflakes-vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
map <F2> :NERDTree<CR> | |
"Omni func setup http://vim.wikia.com/wiki/Omni_completion | |
filetype plugin on | |
autocmd Filetype c setlocal omnifunc=ccomplete#Complete | |
fun! PythonMode() | |
setlocal ts=4 sw=4 et | |
endfun | |
autocmd Filetype python call PythonMode() | |
autocmd Filetype javascript,json setlocal ts=4 sw=4 sts=4 et | |
autocmd Filetype html setlocal ts=2 sw=2 sts=2 et | |
let NERDTreeIgnore = ['\.pyc$', '__pycache__'] | |
autocmd Filetype java setlocal ts=4 sw=4 sts=4 noet | |
autocmd Filetype pug setlocal ts=2 sw=2 sts=2 et | |
autocmd Filetype haskell setlocal ts=4 sw=4 sts=4 et | |
set nohlsearch | |
" UltiSnips triggering | |
let g:UltiSnipsExpandTrigger = '<C-j>' | |
let g:UltiSnipsJumpForwardTrigger = '<C-j>' | |
let g:UltiSnipsJumpBackwardTrigger = '<C-k>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment