diff --git a/vimplugrc b/vimplugrc index 792c789..d9cecc4 100644 --- a/vimplugrc +++ b/vimplugrc @@ -9,6 +9,7 @@ silent!call plug#begin(plugdir) Plug 'junegunn/vim-plug' " general plugins +Plug 'junegunn/fzf.vim' Plug 'junegunn/vim-easy-align' Plug 'lifepillar/vim-solarized8' Plug 'mhinz/vim-signify' @@ -17,6 +18,7 @@ Plug 'sheerun/vim-polyglot' Plug 'tpope/vim-commentary' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rsi' +Plug 'tpope/vim-vinegar' Plug 'davidhalter/jedi-vim', {'for': 'python'} Plug 'w0rp/ale', {'for': ['python', 'sh']} Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} @@ -30,14 +32,21 @@ let g:ale_python_flake8_executable = 'python2' xmap a (EasyAlign) nmap a (EasyAlign) +" fzf +nmap ff :Files +nmap fg :GFiles +nmap fb :Buffers +nmap fl :Lines +nmap ft :Filetypes + " vimwiki let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}] " color theme if $TERM !~ '^linux' + let &bg = "light" let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" - let &bg = "light" let g:solarized_use16 = 1 let g:solarized_italics = 1 diff --git a/vimrc b/vimrc index d5ab499..89d7196 100644 --- a/vimrc +++ b/vimrc @@ -9,9 +9,25 @@ set belloff=all colorcolumn=80 formatoptions+=j relativenumber breakindent set keymap=russian-jcukenwintype iminsert=0 imsearch=0 set title titlestring=[%{hostname()}]\ %t\ -\ vim +let g:netrw_liststyle = 1 let g:sh_indent_case_labels = 1 -let g:netrw_liststyle = 3 -let g:netrw_banner = 0 + +" mappings +map +let mapleader="\" +noremap +noremap! +nnoremap l :setlocal list! +nnoremap c :setlocal cursorline! +nnoremap w :setlocal wrap! +noremap / :noh +noremap y "+y +noremap d "+d +noremap p "+p +noremap P "+P +noremap q +noremap! +noremap! " plugins let plugrc = expand('$HOME/.vimplugrc') @@ -37,22 +53,3 @@ endif syntax on filetype plugin on - -map -let mapleader="\" -noremap -noremap! -nnoremap l :setlocal list! -nnoremap c :setlocal cursorline! -nnoremap w :setlocal wrap! -noremap / :noh -noremap y "+y -noremap d "+d -noremap p "+p -noremap P "+P -noremap q -nnoremap q :q -nnoremap s :w -noremap e :Explore -noremap! -noremap!