vimrc new indentation
This commit is contained in:
parent
19e8f3c278
commit
636b9ecbe6
1 changed files with 93 additions and 93 deletions
186
vimrc
186
vimrc
|
@ -26,11 +26,11 @@ set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [L
|
||||||
|
|
||||||
" 256 colours at almost all times
|
" 256 colours at almost all times
|
||||||
if $TERM =~ '^[xterm|rxvt-unicode|screen]'
|
if $TERM =~ '^[xterm|rxvt-unicode|screen]'
|
||||||
let &t_Co=256
|
let &t_Co=256
|
||||||
endif
|
endif
|
||||||
if $LANG =~ '[UTF\-8|utf8]$'
|
if $LANG =~ '[UTF\-8|utf8]$'
|
||||||
set termencoding=utf-8
|
set termencoding=utf-8
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" insert shebang in the beginning of the file based on its name extension
|
" insert shebang in the beginning of the file based on its name extension
|
||||||
|
@ -59,112 +59,112 @@ nnoremap L $
|
||||||
|
|
||||||
" still have to deal with old vim versions :<
|
" still have to deal with old vim versions :<
|
||||||
if v:version >= 700
|
if v:version >= 700
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
set relativenumber
|
set relativenumber
|
||||||
nnoremap <Leader>r :setlocal relativenumber!<CR>
|
nnoremap <Leader>r :setlocal relativenumber!<CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set helplang=en
|
set helplang=en
|
||||||
set list
|
set list
|
||||||
set number
|
set number
|
||||||
set listchars=tab:\|_,nbsp:x,trail:*
|
set listchars=tab:\|_,nbsp:x,trail:*
|
||||||
nnoremap <Leader>n :setlocal number!<CR>
|
nnoremap <Leader>n :setlocal number!<CR>
|
||||||
nnoremap <Leader>l :setlocal list!<CR>
|
nnoremap <Leader>l :setlocal list!<CR>
|
||||||
|
|
||||||
" enable case indentation
|
" enable case indentation
|
||||||
let g:sh_indent_case_labels=1
|
let g:sh_indent_case_labels=1
|
||||||
|
|
||||||
" plugins
|
" plugins
|
||||||
if filereadable(expand("$HOME/.vim/plugged/vim-plug/plug.vim"))
|
if filereadable(expand("$HOME/.vim/plugged/vim-plug/plug.vim"))
|
||||||
set noshowmode
|
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')
|
||||||
Plug 'junegunn/vim-plug' "plugin manager
|
Plug 'junegunn/vim-plug' "plugin manager
|
||||||
|
|
||||||
" general plugins
|
" general plugins
|
||||||
Plug 'Lokaltog/vim-easymotion' "easy motion
|
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' "airline
|
||||||
Plug 'vim-airline/vim-airline-themes' "themes for airline
|
Plug 'vim-airline/vim-airline-themes' "themes for airline
|
||||||
Plug 'vimwiki/vimwiki' "another attempt at doing notebook via vim
|
Plug 'vimwiki/vimwiki' "another attempt at doing notebook via vim
|
||||||
Plug 'neomake/neomake'
|
Plug 'neomake/neomake'
|
||||||
|
|
||||||
" colorschemes
|
" colorschemes
|
||||||
Plug 'vdrandom/forked-solarized.vim'
|
Plug 'vdrandom/forked-solarized.vim'
|
||||||
|
|
||||||
" syntax highlight plugins
|
" syntax highlight plugins
|
||||||
Plug 'neilhwatson/vim_cf3'
|
Plug 'neilhwatson/vim_cf3'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" easymotion options
|
" easymotion options
|
||||||
let g:EasyMotion_do_mapping=0
|
let g:EasyMotion_do_mapping=0
|
||||||
let g:EasyMotion_smartcase=1
|
let g:EasyMotion_smartcase=1
|
||||||
nmap f <Plug>(easymotion-s)
|
nmap f <Plug>(easymotion-s)
|
||||||
map <Leader>j <Plug>(easymotion-j)
|
map <Leader>j <Plug>(easymotion-j)
|
||||||
map <Leader>k <Plug>(easymotion-k)
|
map <Leader>k <Plug>(easymotion-k)
|
||||||
|
|
||||||
" airline options
|
" airline options
|
||||||
let g:airline_symbols={}
|
let g:airline_symbols={}
|
||||||
let g:airline_symbols.whitespace='!'
|
let g:airline_symbols.whitespace='!'
|
||||||
let g:airline_powerline_fonts=1
|
let g:airline_powerline_fonts=1
|
||||||
let g:airline_extensions=['hunks']
|
let g:airline_extensions=['hunks']
|
||||||
let g:airline_section_z='%3p%% %{g:airline_symbols.linenr}%4l:%3v'
|
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=[ 'svn', 'git', 'fossil' ]
|
||||||
let g:signify_sign_change='~'
|
let g:signify_sign_change='~'
|
||||||
|
|
||||||
" vim-togglemouse options
|
" vim-togglemouse options
|
||||||
nmap <Leader>m <F12>
|
nmap <Leader>m <F12>
|
||||||
|
|
||||||
" easy-align options
|
" easy-align options
|
||||||
xmap <Leader>a <Plug>(EasyAlign)
|
xmap <Leader>a <Plug>(EasyAlign)
|
||||||
nmap <Leader>a <Plug>(EasyAlign)
|
nmap <Leader>a <Plug>(EasyAlign)
|
||||||
|
|
||||||
" neomake
|
" neomake
|
||||||
let g:neomake_error_sign={
|
let g:neomake_error_sign={
|
||||||
\ 'text': '!',
|
\ 'text': '!',
|
||||||
\ 'texthl': 'ErrorMsg',
|
\ 'texthl': 'ErrorMsg',
|
||||||
\ }
|
\ }
|
||||||
let g:neomake_warning_sign={
|
let g:neomake_warning_sign={
|
||||||
\ 'text': '!',
|
\ 'text': '!',
|
||||||
\ 'texthl': 'WarningMsg',
|
\ 'texthl': 'WarningMsg',
|
||||||
\ }
|
\ }
|
||||||
let g:neomake_info_sign={
|
let g:neomake_info_sign={
|
||||||
\ 'text': '!',
|
\ 'text': '!',
|
||||||
\ 'texthl': 'InfoMsg',
|
\ 'texthl': 'InfoMsg',
|
||||||
\ }
|
\ }
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" gvim and colorschemes related stuff
|
" gvim and colorschemes related stuff
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
set guioptions=aegimLl
|
set guioptions=aegimLl
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set guifont=Terminus\ 11
|
set guifont=Terminus\ 11
|
||||||
set novb
|
set novb
|
||||||
set guicursor=a:hor1-Cursor/lCursor "underline cursor by default
|
set guicursor=a:hor1-Cursor/lCursor "underline cursor by default
|
||||||
set guicursor+=i:ver1-Cursor/lCursor "vertical cursor for insert mode
|
set guicursor+=i:ver1-Cursor/lCursor "vertical cursor for insert mode
|
||||||
set guicursor+=r:block "block for replace
|
set guicursor+=r:block "block for replace
|
||||||
set guicursor+=a:blinkon0 "and none of them should blink
|
set guicursor+=a:blinkon0 "and none of them should blink
|
||||||
map <S-Insert> <MiddleMouse>
|
map <S-Insert> <MiddleMouse>
|
||||||
map! <S-Insert> <MiddleMouse>
|
map! <S-Insert> <MiddleMouse>
|
||||||
else
|
else
|
||||||
set mouse=
|
set mouse=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:solarized_bold=0
|
let g:solarized_bold=0
|
||||||
let g:solarized_italic=0
|
let g:solarized_italic=0
|
||||||
let g:solarized_visibility='low'
|
let g:solarized_visibility='low'
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
else
|
else
|
||||||
colorscheme default
|
colorscheme default
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
|
|
Loading…
Reference in a new issue