48 lines
1.1 KiB
VimL
48 lines
1.1 KiB
VimL
let mapleader =","
|
|
set bg=dark
|
|
set clipboard=unnamedplus
|
|
set nocompatible
|
|
|
|
set smartindent
|
|
set tabstop=2
|
|
set softtabstop=2
|
|
set expandtab
|
|
set smarttab
|
|
set shiftwidth=2
|
|
set autoindent
|
|
set smartindent
|
|
|
|
set completeopt=longest,menuone,preview
|
|
|
|
set ruler " show the cursor position all the time
|
|
|
|
filetype plugin on
|
|
syntax on
|
|
set encoding=utf-8
|
|
set number relativenumber
|
|
vnoremap <C-c> "+y
|
|
map <C-p> "+P
|
|
|
|
call plug#begin(stdpath('data') . '/plugged')
|
|
Plug 'mattn/emmet-vim'
|
|
Plug 'itchyny/lightline.vim'
|
|
Plug 'ap/vim-css-color'
|
|
Plug 'calviken/vim-gdscript3'
|
|
Plug 'Shougo/deoplete-clangx'
|
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
Plug 'deoplete-plugins/deoplete-jedi'
|
|
Plug 'ervandew/supertab'
|
|
call plug#end()
|
|
let g:deoplete#enable_at_startup = 1
|
|
let g:deoplete#sources#jedi#show_docstring = 1
|
|
call deoplete#custom#var('clangx', 'clang_binary', '/usr/bin/clang')
|
|
|
|
" Deoplete autocomplete with tab
|
|
"inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
|
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
|
|
let g:SuperTabClosePreviewOnPopupClose = 1
|
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
|
|
|
|
|
set noshowmode
|