1
0
Fork 0

disable is for urxvt, more compact vimrc

This commit is contained in:
Von Random 2016-12-13 15:17:17 +03:00
parent d827527595
commit 0713aeefca
2 changed files with 31 additions and 60 deletions

90
vimrc
View file

@ -1,43 +1,39 @@
set backspace=indent,eol,start " various settings
set foldmethod=marker set number helplang=en foldmethod=marker mouse=
set history=50 set history=50 nobackup nomodeline backspace=indent,eol,start
set hlsearch " hidden characters
set ignorecase set list listchars=tab:\|_,nbsp:x,trail:*
set incsearch " search
set laststatus=2 set hlsearch incsearch smartcase
set nobackup
set nomodeline
set ruler
set showcmd
set smartcase
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set wildmenu
" scroll before reaching the first / final line " scroll before reaching the first / final line
set scrolloff=3 set scrolloff=3 sidescrolloff=15 sidescroll=1
set sidescrolloff=15
set sidescroll=1
" disable bell " disable bell
set noerrorbells visualbell t_vb= set noerrorbells visualbell t_vb=
" indentation_RIP " indentation
"set shiftwidth=3 tabstop=3 noexpandtab
" indentation_OK
set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab
" status line
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\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
" termcap fixes " termcap fixes
set t_Co=256 set t_Co=256 t_ut= termencoding=utf-8 encoding=utf-8
set t_ut= " enable case indentation
set termencoding=utf-8 let g:sh_indent_case_labels=1
set encoding=utf-8 " version specific settings
set fillchars+=vert:│ if has("nvim") || v:version >= 800
set breakindent
endif
if has("nvim") || v:version >= 703
set colorcolumn=80 relativenumber
nnoremap <Leader>r :setlocal relativenumber!<CR>
endif
" maps " maps
map <Space> <leader> map <Space> <leader>
noremap <F1> <Esc> noremap <F1> <Esc>
"enable cursorline on demand " some toggles
nnoremap <Leader>c :set cursorline!<CR> nnoremap <Leader>n :setlocal number!<CR>
"clear search highlight nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>/ :nohls<CR> nnoremap <Leader>/ :nohls<CR>
"make wrapped lines navigation easier "make wrapped lines navigation easier
noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j') noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j')
@ -56,33 +52,11 @@ vmap <Leader>P "+P
nnoremap Q q nnoremap Q q
nnoremap q <Nop> nnoremap q <Nop>
"quit / save "quit / save
nmap qq :q<CR> nnoremap qq :q<CR>
nmap qf :q!<CR> nnoremap qf :q!<CR>
nmap qa :qa<CR> nnoremap qa :qa<CR>
nmap qw :wq<CR> nnoremap qw :wq<CR>
nmap <Leader>w :w<CR> nnoremap <Leader>w :w<CR>
" still have to deal with old vim versions :<
if has("nvim") || v:version >= 703
set colorcolumn=80
set relativenumber
nnoremap <Leader>r :setlocal relativenumber!<CR>
endif
if has("nvim") || v:version >= 800
set breakindent
endif
set mouse=
set helplang=en
set list
set number
set listchars=tab:\|_,nbsp:x,trail:*
nnoremap <Leader>n :setlocal number!<CR>
nnoremap <Leader>l :setlocal list!<CR>
" enable case indentation
let g:sh_indent_case_labels=1
" plugins " plugins
if filereadable(expand("$HOME/vdotfiles/plugins.vim")) if filereadable(expand("$HOME/vdotfiles/plugins.vim"))
@ -90,7 +64,5 @@ if filereadable(expand("$HOME/vdotfiles/plugins.vim"))
endif endif
colorscheme solarized8_light colorscheme solarized8_light
syntax on syntax on
filetype plugin on filetype plugin on

View file

@ -25,7 +25,6 @@ URxvt.internalBorder: 1
URxvt.fading: 5 URxvt.fading: 5
URxvt.pastableTabs: true URxvt.pastableTabs: true
URxvt.geometry: 120:36 URxvt.geometry: 120:36
URxvt.intensityStyles: false
! urxvt perl extensions ! urxvt perl extensions
URxvt.perl-ext-common: default,matcher,clipboard URxvt.perl-ext-common: default,matcher,clipboard