Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call plug#begin('~/.vim/plugged')
- " Make sure you use single quotes
- " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
- Plug 'junegunn/vim-easy-align'
- " Any valid git URL is allowed
- Plug 'https://github.com/junegunn/vim-github-dashboard.git'
- " Multiple Plug commands can be written in a single line using | separators
- Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
- Plug '/usr/local/opt/fzf'
- Plug 'junegunn/fzf.vim'
- " On-demand loading
- Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
- Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
- " Using a non-master branch
- Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
- " Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
- Plug 'fatih/vim-go', { 'tag': '*' }
- " Plugin options
- Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
- " Plugin outside ~/.vim/plugged with post-update hook
- Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
- " Unmanaged plugin (manually installed and updated)
- Plug '~/my-prototype-plugin'
- " If you don't have nodejs and yarn
- " use pre build
- Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }}
- " Initialize plugin system
- call plug#end()
- 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 'bfrg/vim-cpp-modern'
- Plugin 'sheerun/vim-polyglot'
- Plugin 'AlessandroYorba/Sierra'
- " Track the engine.
- Plugin 'SirVer/ultisnips'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- Plugin 'tpope/vim-fugitive'
- Plugin 'joshdick/onedark.vim'
- " 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'
- Plugin 'kristijanhusak/vim-hybrid-material'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'plasticboy/vim-markdown'
- Plugin 'godlygeek/tabular'
- Plugin 'whatyouhide/vim-gotham'
- Plugin 'iamcco/markdown-preview.nvim'
- Plugin 'danilo-augusto/vim-afterglow'
- " 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
- syntax on "to color the file
- set number "to show line numbers
- set background=light
- " another beautiful dark theme
- "let g:sierra_Pitch = 1
- "colorscheme sierra
- colorscheme afterglow
- let g:airline_theme='afterglow'
- $ "for open file starting always from the end
- set history=999
- set cursorline
- set showmode
- set showcmd
- set showmatch
- set splitbelow splitright
- set title
- set scrolloff=5 " Start scrolling n lines before horizontal
- " border of window.
- set sidescrolloff=7 " Start scrolling n chars before end of screen.
- set sidescroll=1 " The minimal number of columns to scroll
- " add useful stuff to title bar (file name, flags, cwd)
- " based on @factorylabs
- if has('title') && (has('gui_running') || &title)
- set titlestring=
- set titlestring+=%f
- set titlestring+=%h%m%r%w
- set titlestring+=\ -\ %{v:progname}
- set titlestring+=\ -\ %{substitute(getcwd(),\ $HOME,\ '~',\ '')}
- endif
- " --- command completion ---
- set wildmenu " Hitting TAB in command mode will
- set wildchar=<TAB> " show possible completions.
- set wildmode=list:longest
- set wildignore+=*.DS_STORE,*.db
- " --- diff ---
- set diffopt=filler " Add vertical spaces to keep right
- " and left aligned.
- set diffopt+=iwhite " Ignore whitespace changes.
- " --- folding---
- set foldmethod=indent "fold based on indent
- set foldnestmax=3 "deepest fold is 3 levels
- set nofoldenable "don't fold by default
- set visualbell
- " -----------------------------------------------------------------------------
- " INDENTATION AND TEXT-WRAP
- " -----------------------------------------------------------------------------
- set expandtab " Expand tabs to spaces
- set autoindent smartindent " auto/smart indent
- set copyindent " copy previous indentation on auto indent
- set softtabstop=4 " Tab key results in # spaces
- set tabstop=4 " Tab is 4 spaces
- set shiftwidth=4 " The # of spaces for indenting.
- set smarttab " At start of line, <Tab> inserts shift width
- " spaces, <Bs> deletes shift width spaces.
- set wrap " wrap lines
- set textwidth=79
- "set colorcolumn=+1 " Show large lines
- set formatoptions=qrn1 " automatic formating.
- set formatoptions-=o " don't start new lines w/ comment leader on
- " pressing 'o'
- set nomodeline " don't use modeline (security)
- set pastetoggle=<leader>p " paste mode: avoid auto indent, treat chars
- " as literal.
- " -----------------------------------------------------------------------------
- " PLUGINS
- " -----------------------------------------------------------------------------
- " --- NERDTree ----
- let NERDTreeIgnore=['.DS_Store']
- let NERDTreeShowBookmarks=1 "show bookmarks on startup
- let NERDTreeHighlightCursorline=1 "Highlight the selected entry in the tree
- map <leader>nt :NERDTreeToggle<CR>
- " --- NERDCommenter ---
- let NERDSpaceDelims=1 " space around delimiters
- let NERDRemoveExtraSpaces=1
- " --- FIX/IMPROVE DEFAULT BEHAVIOR ---
- " faster commands
- nnoremap <space> :
- nnoremap ; :
- " --- search / regexp ---
- set gdefault " RegExp global by default
- set magic " Enable extended regexes.
- set hlsearch " highlight searches
- set incsearch " show the `best match so far' astyped
- set ignorecase smartcase " make searches case-insensitive, unless they
- " contain upper-case letters
- "
- "map ; _Files<CR>
- nnoremap f<CR> :Files<CR>
- nnoremap s :Snippets<CR>
- nnoremap fo<CR> gg=G
- execute pathogen#infect()
- call pathogen#helptags()
- " for vim nerd -- the lateral bar for files
- autocmd StdinReadPre * let s:std_in=1
- autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
- autocmd StdinReadPre * let s:std_in=1
- autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
- let g:NERDTreeDirArrowExpandable = '▸'
- let g:NERDTreeDirArrowCollapsible = '▾'
- "workaround error of curvy brackets VIM-CPP-MODERN
- let c_no_curly_error = 1
- " Set ultisnips triggers
- let g:UltiSnipsExpandTrigger="<tab>"
- let g:UltiSnipsJumpForwardTrigger="<tab>"
- let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
- set textwidth=0
- set clipboard=unnamed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement