Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scriptencoding utf8
- " Bundle settings
- set nocompatible
- filetype off
- call plug#begin('~/.local/share/nvim/bundle/')
- " Interactive REPL for NeoVim
- Plug 'hkupty/iron.nvim'
- " File tree plugin
- Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
- " Status line plugin
- Plug 'bling/vim-airline'
- Plug 'vim-airline/vim-airline-themes'
- " Fuzzy logic search engine
- Plug 'ctrlpvim/ctrlp.vim'
- " Plug 'Shougo/denite.nvim'
- " Sublime like multiple replacement for refactoring
- Plug 'terryma/vim-multiple-cursors'
- " Colorschemes
- Plug 'morhetz/gruvbox'
- Plug 'altercation/vim-colors-solarized'
- " Code completion for NeoVim
- Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'}
- Plug 'zchee/deoplete-jedi', {'for': ['python', 'python3']}
- " Code linting
- Plug 'w0rp/ale'
- " Code snippets
- Plug 'SirVer/ultisnips'
- Plug 'honza/vim-snippets'
- " Version control tools
- Plug 'tpope/vim-fugitive'
- Plug 'mhinz/vim-signify'
- " " Plugin to use tab for autocompletion
- Plug 'ervandew/supertab'
- " Plugin to comment text easily
- Plug 'tpope/vim-commentary'
- call plug#end()
- " Color Scheme configuration
- set background=dark
- colorscheme gruvbox
- let g:airline_theme='gruvbox'
- set termguicolors
- "----------------------------------------------------------------------
- " General config
- "
- " Use this to allow intelligent auto-indenting for each filetype
- " and for plugins that are filetype specific
- filetype indent plugin on
- " Enable syntax highlighting
- syntax on
- " Allows you to switch from an unsaved buffer without saving it first
- " Also allows you to keep an undo history for multiple files
- set hidden
- " Better command-line completion
- set wildmenu
- "" Display the cursor position
- set ruler
- " Always display the status line, even if only one window is displayed
- set laststatus=2
- " Enable use of the mouse for all modes
- set mouse=a
- " Set the command window height to 2 lines
- set cmdheight=1
- " Display line numbers on the left
- set number
- "----------------------------------------------------------------------
- " Usability options
- "
- " These are personal preferences that deviate from standard Vim options
- " Use case insensitive search, except when using capital letters
- set ignorecase
- set smartcase
- " Allow backspacing over autoindent, line breaks and start of insert
- set backspace=indent,eol,start
- " Keeps the same line ident for generic file types. Useful for READMEs
- set autoindent
- " Use visual bell instead of beeping when doing something wrong
- set visualbell
- "----------------------------------------------------------------------
- " Indentation options
- " Indentation settings for using 4 spaces instead of tabs.
- " Do not change 'tabstop' from its default value of 8 with this setup.
- set shiftwidth=4 tabstop=4 expandtab
- "------------------------------------------------------------
- " Mappings
- " Deoplete mappings
- " inoremap <expr><tab> pumvisible() ? "\<C-n>" : "\<tab>"
- "----------------------------------------------------------------------
- " Plugin specific options
- " Enable deoplete at startup
- let g:deoplete#enable_at_startup = 1
- " Use smart case for deoplete completion
- let g:deoplete#enable_smart_case = 1
- " Close deoplete scratch window automatically
- let g:SuperTabClosePreviewOnPopupClose = 1
- " Let SuperTab scroll from top to bottom, close completion with <CR> and try
- " to chain completions based on context
- let g:SuperTabDefaultCompletionType = "<c-n>"
- let g:SuperTabDefaultCompletionType = 'context'
- autocmd FileType *
- \ if &omnifunc != '' |
- \ call SuperTabChain(&omnifunc, "<c-p>") |
- \ endif
- " inoremap <silent><expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
- " let g:UltiSnipsExpandTrigger="<tab>"
- " let g:UltiSnipsJumpForwardTrigger="<tab>"
- " let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
- " " Airline configuration
- let g:airline#extensions#ale = 1
- " let g:airline_left_sep=''
- " let g:airline_right_sep=''
- " ALE configuration
- let g:ale_sign_column_always = 1
- "----------------------------------------------------------------------`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement