updated vim config

This commit is contained in:
elena 2018-04-11 16:53:51 +03:00
parent 630fe4a17f
commit 875cf6e962
17 changed files with 1440 additions and 19 deletions

View file

@ -1,5 +1,34 @@
"Show line numbers
set number
"set relativenumber
" Copy / paste to and from clipboard with leader+key then y or p with their
" arguments
nnoremap <leader>l "*
vnoremap <leader>l "*
" tabs
set expandtab
set tabstop=4
set shiftwidth=4
" indentation
set smartindent
set autoindent
set cindent
" Auto braces, brackets and quotes closing
"inoremap { {<CR>}<up><end><CR><Tab>
inoremap { {<CR>}<up><end><CR>
inoremap ( ()<left>
inoremap [ []<left>
inoremap ' ''<left>
inoremap " ""<left>
" Create new terminal in current path
nnoremap <leader>n :!st -e & disown<CR><CR>
" Write buffer through sudo
cnoreabbrev w!! w !sudo tee % >/dev/null
" Only works in vim
set t_Co=256
@ -29,6 +58,7 @@ Plug 'tpope/vim-sensible'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdcommenter'
"Plug 'ryanoasis/vim-devicons'
Plug 'artur-shaik/vim-javacomplete2'
call plug#end()
" ~~~ Plugin Configuration ~~~
@ -40,7 +70,8 @@ let g:airline#extensions#whitespace#enabled = 0
" deoplete
let g:deoplete#enable_at_startup = 1
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
nnoremap <esc> :noh<return><esc>
" Clear search highlighting
nnoremap <silent><esc> :noh<return><esc>
" NerdCommenter
" Change <leader> bind from default \
@ -48,6 +79,15 @@ let mapleader=","
set notimeout
" vim-devicons
let g:webdevicons_enable = 1
set encoding=utf8
set guifont=FuraCode\ Nerd\ Font\ 9
"let g:webdevicons_enable = 1
"set encoding=utf8
"set guifont=FuraCode\ Nerd\ Font\ 9
" different cursor in insert mode
" doesnt work :(
"let &t_SI = "\<Esc>[6 q"
"let &t_SR = "\<Esc>[4 q"
"let &t_EI = "\<Esc>[2 q"
" javacomplete2
let g:JavaComplete_ClosingBrace = 1