1
0
Fork 0

vimrc, vimplugrc: one fzf to rule them all

This commit is contained in:
Von Random 2019-11-11 17:26:30 +03:00
parent 7ea408db84
commit 2460959bce
2 changed files with 28 additions and 22 deletions

View file

@ -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 <Leader>a <Plug>(EasyAlign)
nmap <Leader>a <Plug>(EasyAlign)
" fzf
nmap <Leader>ff :Files<CR>
nmap <Leader>fg :GFiles<CR>
nmap <Leader>fb :Buffers<CR>
nmap <Leader>fl :Lines<CR>
nmap <Leader>ft :Filetypes<CR>
" vimwiki
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
" color theme
if $TERM !~ '^linux'
let &bg = "light"
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
let &bg = "light"
let g:solarized_use16 = 1
let g:solarized_italics = 1

39
vimrc
View file

@ -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 <Space> <NOP>
let mapleader="\<Space>"
noremap <F1> <Esc>
noremap! <F1> <Esc>
nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>w :setlocal wrap!<CR>
noremap <Leader>/ :noh<CR>
noremap <Leader>y "+y
noremap <Leader>d "+d
noremap <Leader>p "+p
noremap <Leader>P "+P
noremap q <NOP>
noremap! <C-@> <C-^>
noremap! <C-Space> <C-^>
" plugins
let plugrc = expand('$HOME/.vimplugrc')
@ -37,22 +53,3 @@ endif
syntax on
filetype plugin on
map <Space> <NOP>
let mapleader="\<Space>"
noremap <F1> <Esc>
noremap! <F1> <Esc>
nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>w :setlocal wrap!<CR>
noremap <Leader>/ :noh<CR>
noremap <Leader>y "+y
noremap <Leader>d "+d
noremap <Leader>p "+p
noremap <Leader>P "+P
noremap q <NOP>
nnoremap <Leader>q :q<CR>
nnoremap <Leader>s :w<CR>
noremap <Leader>e :Explore<CR>
noremap! <C-@> <C-^>
noremap! <C-Space> <C-^>