some vim cleanup
This commit is contained in:
parent
0c5391c809
commit
0a6b7936c7
4 changed files with 19 additions and 33 deletions
1
gvimrc
1
gvimrc
|
@ -1,3 +1,4 @@
|
||||||
|
" solarized for gvim
|
||||||
set guioptions=aegimLl
|
set guioptions=aegimLl
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set guifont=Fantasque\ Sans\ Mono\ 11
|
set guifont=Fantasque\ Sans\ Mono\ 11
|
||||||
|
|
34
vimplugins
34
vimplugins
|
@ -3,62 +3,40 @@ autocmd BufRead *vimplugins set ft=vim
|
||||||
autocmd BufRead *bashplugins set ft=sh
|
autocmd BufRead *bashplugins set ft=sh
|
||||||
|
|
||||||
" enable plugins
|
" enable plugins
|
||||||
set noshowmode
|
|
||||||
source ~/.vim/plugged/vim-plug/plug.vim
|
source ~/.vim/plugged/vim-plug/plug.vim
|
||||||
silent!call plug#begin('~/.vim/plugged')
|
silent!call plug#begin('~/.vim/plugged')
|
||||||
" plugin manager for self updates
|
" plugin manager for self updates
|
||||||
Plug 'junegunn/vim-plug'
|
Plug 'junegunn/vim-plug'
|
||||||
|
|
||||||
" general plugins
|
" general plugins
|
||||||
Plug 'Lokaltog/vim-easymotion' "easy motion
|
|
||||||
Plug 'directionalWindowResizer' "resize windows with simple hotkeys
|
Plug 'directionalWindowResizer' "resize windows with simple hotkeys
|
||||||
Plug 'jeetsukumaran/vim-buffergator' "buffer management
|
Plug 'jeetsukumaran/vim-buffergator' "buffer management
|
||||||
Plug 'junegunn/vim-easy-align' "aligning
|
Plug 'junegunn/vim-easy-align' "aligning
|
||||||
Plug 'mhinz/vim-signify' "version control system gutter info
|
Plug 'mhinz/vim-signify' "version control system gutter info
|
||||||
Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse
|
Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse
|
||||||
Plug 'vim-airline/vim-airline' "airline
|
|
||||||
Plug 'vim-airline/vim-airline-themes' "themes for airline
|
|
||||||
Plug 'ctrlpvim/ctrlp.vim' "fuzzy file search
|
Plug 'ctrlpvim/ctrlp.vim' "fuzzy file search
|
||||||
Plug 'tpope/vim-fugitive' "moar git awesomeness
|
Plug 'tpope/vim-fugitive' "moar git awesomeness
|
||||||
Plug 'vimwiki/vimwiki' "vimwiki
|
Plug 'vimwiki/vimwiki' "vimwiki
|
||||||
Plug 'sheerun/vim-polyglot' "syntax
|
Plug 'sheerun/vim-polyglot' "syntax
|
||||||
|
|
||||||
" python, uncomment when needed
|
" IDE liek, per filetype
|
||||||
Plug 'neomake/neomake', { 'for': 'python' } "linter
|
Plug 'neomake/neomake', { 'for': 'python' } "linter
|
||||||
Plug 'davidhalter/jedi-vim', { 'for': 'python' } "python support
|
Plug 'davidhalter/jedi-vim', { 'for': 'python' } "python support
|
||||||
Plug 'ervandew/supertab', { 'for': 'python' } "TAB autocompletion
|
Plug 'ervandew/supertab', { 'for': 'python' } "TAB autocompletion
|
||||||
|
|
||||||
" colorschemes
|
" colorschemes
|
||||||
Plug 'lifepillar/vim-solarized8'
|
Plug 'lifepillar/vim-solarized8'
|
||||||
"Plug 'cocopon/iceberg.vim'
|
Plug 'KeitaNakamura/neodark.vim'
|
||||||
"Plug 'whatyouhide/vim-gotham'
|
|
||||||
"Plug 'KeitaNakamura/neodark.vim'
|
|
||||||
"Plug 'morhetz/gruvbox'
|
|
||||||
|
|
||||||
" syntax highlight plugins
|
" syntax highlight plugins
|
||||||
Plug 'neilhwatson/vim_cf3'
|
Plug 'neilhwatson/vim_cf3'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" easymotion options
|
|
||||||
let g:EasyMotion_do_mapping=0
|
|
||||||
let g:EasyMotion_smartcase=1
|
|
||||||
nmap f <Plug>(easymotion-s)
|
|
||||||
map <Leader>j <Plug>(easymotion-j)
|
|
||||||
map <Leader>k <Plug>(easymotion-k)
|
|
||||||
|
|
||||||
" airline options
|
|
||||||
let g:airline_symbols={}
|
|
||||||
let g:airline_symbols.whitespace='!'
|
|
||||||
let g:airline_powerline_fonts=1
|
|
||||||
let g:airline_exclude_preview=1
|
|
||||||
let g:airline_extensions=['hunks']
|
|
||||||
let g:airline_section_z='%3p%% %{g:airline_symbols.linenr}%4l:%3v'
|
|
||||||
|
|
||||||
" buffergator options
|
" buffergator options
|
||||||
map <Leader><Tab> :BuffergatorToggle<CR>
|
map <Leader><Tab> :BuffergatorToggle<CR>
|
||||||
|
|
||||||
" signify options
|
" signify options
|
||||||
let g:signify_vcs_list=[ 'svn', 'git', 'fossil' ]
|
let g:signify_vcs_list=[ 'git', 'fossil' ]
|
||||||
let g:signify_sign_change='~'
|
let g:signify_sign_change='~'
|
||||||
|
|
||||||
" vim-togglemouse options
|
" vim-togglemouse options
|
||||||
|
@ -83,6 +61,8 @@ let g:neomake_info_sign={
|
||||||
\ 'texthl': 'InfoMsg',
|
\ 'texthl': 'InfoMsg',
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
if expand('%:r') == 'index.wiki'
|
if has('gui_running')
|
||||||
set titlestring=vimwiki
|
colorscheme neodark
|
||||||
|
else
|
||||||
|
colorscheme solarized8_light
|
||||||
endif
|
endif
|
||||||
|
|
16
vimrc
16
vimrc
|
@ -13,7 +13,7 @@ set noerrorbells visualbell t_vb=
|
||||||
set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab
|
set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab
|
||||||
" status line
|
" status line
|
||||||
set wildmenu showcmd ruler laststatus=2
|
set wildmenu showcmd ruler laststatus=2
|
||||||
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
|
set statusline=%F\ %m%r%h%w%=%y\ [%{&ff}]\ [%4l/%L:%3v]\ [%3p%%]
|
||||||
" termcap fixes
|
" termcap fixes
|
||||||
set t_Co=256 t_ut= termencoding=utf-8 encoding=utf-8
|
set t_Co=256 t_ut= termencoding=utf-8 encoding=utf-8
|
||||||
" enable case indentation
|
" enable case indentation
|
||||||
|
@ -23,6 +23,9 @@ if has("nvim") || v:version >= 800
|
||||||
set breakindent
|
set breakindent
|
||||||
set keymap=russian-jcukenwintype iminsert=0 imsearch=0
|
set keymap=russian-jcukenwintype iminsert=0 imsearch=0
|
||||||
inoremap <C-@> <C-^>
|
inoremap <C-@> <C-^>
|
||||||
|
cnoremap <C-@> <C-^>
|
||||||
|
inoremap <C-Space> <C-^>
|
||||||
|
cnoremap <C-Space> <C-^>
|
||||||
endif
|
endif
|
||||||
if has("nvim") || v:version >= 703
|
if has("nvim") || v:version >= 703
|
||||||
set colorcolumn=80 relativenumber
|
set colorcolumn=80 relativenumber
|
||||||
|
@ -30,16 +33,16 @@ if has("nvim") || v:version >= 703
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" maps
|
" maps
|
||||||
map <Space> <leader>
|
" leader
|
||||||
|
map <Space> <NOP>
|
||||||
|
let mapleader="\<Space>"
|
||||||
|
" no more F1
|
||||||
noremap <F1> <Esc>
|
noremap <F1> <Esc>
|
||||||
" some toggles
|
" some toggles
|
||||||
nnoremap <Leader>n :setlocal number!<CR>
|
nnoremap <Leader>n :setlocal number!<CR>
|
||||||
nnoremap <Leader>l :setlocal list!<CR>
|
nnoremap <Leader>l :setlocal list!<CR>
|
||||||
nnoremap <Leader>c :setlocal cursorline!<CR>
|
nnoremap <Leader>c :setlocal cursorline!<CR>
|
||||||
nnoremap <Leader>/ :nohls<CR>
|
nnoremap <Leader>/ :nohls<CR>
|
||||||
"make wrapped lines navigation easier
|
|
||||||
noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j')
|
|
||||||
noremap <silent> <expr> k (v:count == 0 ? 'gk' : 'k')
|
|
||||||
"home / end
|
"home / end
|
||||||
nnoremap H ^
|
nnoremap H ^
|
||||||
nnoremap L $
|
nnoremap L $
|
||||||
|
@ -64,8 +67,9 @@ nnoremap <Leader>w :w<CR>
|
||||||
let plugins = expand("$HOME/.vimplugins")
|
let plugins = expand("$HOME/.vimplugins")
|
||||||
if filereadable(plugins)
|
if filereadable(plugins)
|
||||||
execute 'source ' . fnameescape(plugins)
|
execute 'source ' . fnameescape(plugins)
|
||||||
|
else
|
||||||
|
colorscheme solarized8_light
|
||||||
endif
|
endif
|
||||||
|
|
||||||
colorscheme solarized8_light
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
|
@ -25,6 +25,7 @@ URxvt.fading: 5
|
||||||
URxvt.pastableTabs: true
|
URxvt.pastableTabs: true
|
||||||
URxvt.geometry: 120:36
|
URxvt.geometry: 120:36
|
||||||
URxvt.intensityStyles: false
|
URxvt.intensityStyles: false
|
||||||
|
URxvt.secondaryScroll: false
|
||||||
|
|
||||||
! urxvt perl extensions
|
! urxvt perl extensions
|
||||||
URxvt.perl-ext-common: default,matcher,clipboard
|
URxvt.perl-ext-common: default,matcher,clipboard
|
||||||
|
|
Loading…
Reference in a new issue