dotfiles/_vimrc

77 lines
2.1 KiB
VimL
Raw Permalink Normal View History

2021-10-27 18:25:15 +02:00
set mouse=a
set clipboard=unnamed
set tabstop=4
set shiftwidth=4
set expandtab
set number
set encoding=utf8
syntax on
set autoindent
set hlsearch
set incsearch
set showmatch
set nocompatible
" Command-line autocompletion
set wildmenu
"set wildmode=longest:list,full
call plug#begin()
Plug 'dracula/vim'
Plug 'Yggdroot/indentLine'
Plug 'ryanoasis/vim-devicons'
Plug 'preservim/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'derekmcloughlin/gvimfullscreen_win32'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
" Settings for indentLine plugin
let g:indentLine_char = '│'
let g:indentLine_color_term = 4
" Settings for lightline plugin
set laststatus=2
set noshowmode
" Settings for NERDTree plugin
let NERDTreeShowBookmarks = 1 " Show the bookmarks table
let NERDTreeShowHidden = 1 " Show hidden files
let NERDTreeShowLineNumbers = 0 " Hide line numbers
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
let NERDTreeWinPos = "left" " Panel opens on the left side
let NERDTreeWinSize = 31 " Set panel width to 31 columns
nmap <F2> :NERDTreeToggle<CR>
map <F11> <Esc>:call libcallnr("C:\\Users\\auditor\\vimfiles\\plugged\\gvimfullscreen_win32\\gvimfullscreen.dll", "ToggleFullScreen", 0)<CR>
set guifont=SauceCodePro\ NF:h11
set guioptions-=m " Remove menubar
set guioptions-=T " Remove toolbar
set guioptions-=r " Remove scrollbar
set guioptions-=L " Remove NERDTree scrollbar
colorscheme dracula
" open new split panes to right and below
set splitright
set splitbelow
autocmd GUIEnter * call libcallnr("C:\\Users\\auditor\\vimfiles\\plugged\\gvimfullscreen_win32\\gvimfullscreen.dll", "ToggleFullScreen", 0)
" coc autocomplete settings
" use <tab> for trigger completion and navigate to the next complete item
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
inoremap <silent><expr> <Tab>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<Tab>" :
\ coc#refresh()
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"